Commit 7821601f authored by Médéric Boquien's avatar Médéric Boquien

Use self.redshift and not redshift.

parent bd78f5eb
...@@ -161,7 +161,7 @@ class Redshifting(SedModule): ...@@ -161,7 +161,7 @@ class Redshifting(SedModule):
# not for blue-shifting. # not for blue-shifting.
if self.redshift < 0.: if self.redshift < 0.:
raise Exception("The redshift provided is negative <{}>." raise Exception("The redshift provided is negative <{}>."
.format(redshift)) .format(self.redshift))
self.universe_age = cosmology.age(self.redshift).value * 1000. self.universe_age = cosmology.age(self.redshift).value * 1000.
if self.redshift == 0.: if self.redshift == 0.:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment