size attribute from galaxies returns an integer

Bug #1323893 reported by nefinia
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ORCA
Incomplete
Undecided
David Murphy

Bug Description

Size attribute from galaxies returns an integer, so most probably size=0

Revision history for this message
David Murphy (dnamurphy) wrote :

galaxy objects do not have a .size variable:

In [3]: g = cl.galaxies[0]

In [4]: g.size
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-4-b41815e8ddad> in <module>()
----> 1 g.size

AttributeError: galaxy instance has no attribute 'size'

...clusters however do:

In [5]: cl = det.clusters[0]

In [6]: cl.size
Out[6]: 0

But size isn't really defined or used. It could be used to represent r200 for example, but it is not implemented - therefore it could be removed until needed (by updating the class definition of a cluster object).

For angular size of a cluster, use:

In [7]: cl.extent
Out[7]: 0.00085929510147658163

Or re-calculate it with:

In [8]: cl.max_radius()
Out[8]: 0.00085929510147658163

Changed in orca:
status: New → Incomplete
David Murphy (dnamurphy)
Changed in orca:
assignee: nobody → David Murphy (dnamurphy)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.