LectureFireSimulation icon indicating copy to clipboard operation
LectureFireSimulation copied to clipboard

fdsreader Module, DEVC data and meta information

Open gjaeger opened this issue 4 years ago • 0 comments

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}")

gjaeger avatar Jun 23 '21 05:06 gjaeger