Skip to content

Commit b635a2f

Browse files
committed
move requires_particle_data to a static class variable
1 parent 14b6866 commit b635a2f

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

properties.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -480,15 +480,12 @@ def __init__(self, simulation, band, sats=0, sblimit=28, type='hlr', smooth=0):
480480
self.sblimit=sblimit
481481
self.sats=sats
482482
self.smooth=smooth
483+
self.requires_particle_data = False
483484
if smooth==0:
484485
self.smooth=1
485486

486487
names="half_light","sersic_m0", "sersic_n", "sersic_r0"
487488

488-
@classmethod
489-
def requires_particle_data(self):
490-
return False
491-
492489
def requires_property(self):
493490
return ["u_surface_brightness", "g_surface_brightness", "r_surface_brightness", "i_surface_brightness", "z_surface_brightness", "U_surface_brightness", "V_surface_brightness", "J_surface_brightness", 'max_radius', 'shrink_center']
494491

0 commit comments

Comments
 (0)