You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function DataObject.from_fits_file() returns a cls(array) object containing data that was pulled out of a fits file. The columns should appear as attributes somewhere, but they are not listed when we run dir().
EXAMPLE:
In test_cluster.py in the setUp() function, we run:
we see that 'z' doesn't appear on the list, even though on the very next line we see that 'z' is an attribute of members. This makes things difficult to debug because there is no easy way to find attributes spit out by fits files. I do not believe this is the intended behavior.
The text was updated successfully, but these errors were encountered:
You know, I never used the dir() command. Anyway, looking at the python documentation https://docs.python.org/2/library/functions.html#dir when you have custom __getattrribute__() you also need to set a custom __dir__(). So that needs to happen.
The function DataObject.from_fits_file() returns a cls(array) object containing data that was pulled out of a fits file. The columns should appear as attributes somewhere, but they are not listed when we run dir().
EXAMPLE:
In test_cluster.py in the setUp() function, we run:
If we immediately write
we see that 'z' doesn't appear on the list, even though on the very next line we see that 'z' is an attribute of members. This makes things difficult to debug because there is no easy way to find attributes spit out by fits files. I do not believe this is the intended behavior.
The text was updated successfully, but these errors were encountered: