Skip to content

Commit fe38f80

Browse files
committed
Typo fix.
1 parent 0c386bf commit fe38f80

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎photonField.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ def __init__(self, which='best'):
463463

464464
energy, photonDensity = self.load_density(fname)
465465
self.data = self.load_data(fname)
466-
self.photonDensity = energy
467-
self.energy = photonDensity
466+
self.photonDensity = photonDensity
467+
self.energy = energy
468468
elif which == 'upper':
469469
fname = 'EBL_Saldana_2021/ebl_saldana21_comoving.txt'
470470
fname_err = 'EBL_Saldana_2021/eblerr_saldana21_comoving.txt'
@@ -487,8 +487,8 @@ def __init__(self, which='best'):
487487
}
488488

489489
self.data = data
490-
self.photonDensity = energy
491-
self.energy = photonDensity
490+
self.photonDensity = photonDensity
491+
self.energy = energy
492492
elif which == 'lower':
493493
fname = 'EBL_Saldana_2021/ebl_saldana21_comoving.txt'
494494
fname_err = 'EBL_Saldana_2021/eblerr_saldana21_comoving.txt'
@@ -511,8 +511,8 @@ def __init__(self, which='best'):
511511
}
512512

513513
self.data = data
514-
self.photonDensity = energy
515-
self.energy = photonDensity
514+
self.photonDensity = photonDensity
515+
self.energy = energy
516516
else:
517517
raise ValueError('EBL_Saldana21 only provides "best", "upper" and "lower" models')
518518

0 commit comments

Comments
 (0)