@@ -80,7 +80,7 @@ def update(self, true_cat, est_cat, matching):
80
80
true_red = true_cat ["redshifts" ][i , tcat_matches , :].to (self .device )
81
81
est_red = est_cat ["redshifts" ][i , ecat_matches , :].to (self .device )
82
82
83
- true_mag = true_cat .on_magnitudes (zero_point = 3631 )[i ][..., self .mag_band ][
83
+ true_mag = true_cat .on_magnitudes (zero_point = 3631e9 )[i ][..., self .mag_band ][
84
84
tcat_matches
85
85
].to (self .device )
86
86
bin_indices = torch .bucketize (true_mag , cutoffs )
@@ -254,7 +254,7 @@ def update(self, true_cat, est_cat, matching):
254
254
est_red = est_cat ["redshifts" ][i , ecat_matches , :].to (self .device )
255
255
256
256
if self .bin_type == "ab_mag" :
257
- true_mag = true_cat .on_magnitudes (zero_point = 3631 )[i ][..., self .mag_band ][
257
+ true_mag = true_cat .on_magnitudes (zero_point = 3631e9 )[i ][..., self .mag_band ][
258
258
tcat_matches
259
259
].to (self .device )
260
260
elif self .bin_type == "njy" :
@@ -343,7 +343,7 @@ def update(self, true_cat, est_cat, matching):
343
343
est_red = est_cat ["redshifts" ][i , ecat_matches , :].to (self .device )
344
344
345
345
if self .bin_type == "ab_mag" :
346
- true_mag = true_cat .on_magnitudes (zero_point = 3631 )[i ][..., self .mag_band ][
346
+ true_mag = true_cat .on_magnitudes (zero_point = 3631e9 )[i ][..., self .mag_band ][
347
347
tcat_matches
348
348
].to (self .device )
349
349
elif self .bin_type == "njy" :
@@ -425,7 +425,7 @@ def update(self, true_cat, est_cat, matching):
425
425
est_red = est_cat ["redshifts" ][i , ecat_matches , :].to (self .device )
426
426
427
427
if self .bin_type == "ab_mag" :
428
- true_mag = true_cat .on_magnitudes (zero_point = 3631 )[i ][..., self .mag_band ][
428
+ true_mag = true_cat .on_magnitudes (zero_point = 3631e9 )[i ][..., self .mag_band ][
429
429
tcat_matches
430
430
].to (self .device )
431
431
elif self .bin_type == "njy" :
@@ -523,7 +523,7 @@ def update(self, true_cat, est_cat, matching):
523
523
est_red = est_cat ["redshifts" ][i , ecat_matches , :].to (self .device )
524
524
525
525
if self .bin_type == "ab_mag" :
526
- true_mag = true_cat .on_magnitudes (zero_point = 3631 )[i ][..., self .mag_band ][
526
+ true_mag = true_cat .on_magnitudes (zero_point = 3631e9 )[i ][..., self .mag_band ][
527
527
tcat_matches
528
528
].to (self .device )
529
529
elif self .bin_type == "njy" :
@@ -613,7 +613,7 @@ def update(self, true_cat, est_cat, matching):
613
613
est_red = est_cat ["redshifts" ][i , ecat_matches , :].to (self .device )
614
614
615
615
if self .bin_type == "ab_mag" :
616
- true_mag = true_cat .on_magnitudes (zero_point = 3631 )[i ][..., self .mag_band ][
616
+ true_mag = true_cat .on_magnitudes (zero_point = 3631e9 )[i ][..., self .mag_band ][
617
617
tcat_matches
618
618
].to (self .device )
619
619
elif self .bin_type == "njy" :
0 commit comments