Skip to content

fdsreader Module, DEVC data and meta information #50

@gjaeger

Description

@gjaeger

In the section fdsreader Module, I get the following error message with fdsreader 1.2.1

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-43-88618739c2ea> in <module>
      1 for i in devc:
----> 2     print(f"ID: {devc[i].id},\t quantity: {devc[i].quantity.quantity},\t position: {devc[i].position}")

AttributeError: 'Quantity' object has no attribute 'quantity'

for

for i in devc:
    print(f"ID: {devc[i].id},\t quantity: {devc[i].quantity.quantity},\t position: {devc[i].position}")

Shouldn't it be?

for i in devc:
    print(f"ID: {devc[i].id},\t quantity: {devc[i].quantity.name},\t position: {devc[i].position}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions