hyperion-rt / hyperion

Hyperion Radiative Transfer Code
http://www.hyperion-rt.org
BSD 2-Clause "Simplified" License
52 stars 26 forks source link

Fix changing array for Octree #76

Open astrofrog opened 10 years ago

astrofrog commented 10 years ago
octree['density'][0].array *=0.01

does not work:

ERROR: AttributeError: Attribute array does not exist [hyperion.util.functions]
Traceback (most recent call last):
  File "setup.py", line 16, in <module>
    octree['density'][0].array *=0.01
  File "/home/robitaille/usr_hyperion/lib64/python2.7/site-packages/hyperion/util/functions.py", line 97, in __setattr__
    raise AttributeError("Attribute %s does not exist" % key)
AttributeError: Attribute array does not exist