Skip to content

Commit

Permalink
few last fixes to reflect change to initialize InitialConditions rath…
Browse files Browse the repository at this point in the history
…er than inherit
  • Loading branch information
mirochaj committed Feb 9, 2022
1 parent 783021f commit bf81dad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ares/physics/Hydrogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ def DifferentialBrightnessTemperature(self, z, xavg, Ts, Tr=0.0):
@property
def inits(self):
if not hasattr(self, '_inits'):
self._inits = self.cosm.get_inits_rec()
self._inits = self.cosm._ics.get_inits_rec()
return self._inits

def saturated_limit(self, z):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_simulations_gs_param_hist.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test():
z = np.linspace(10, 1e3, 500)

# Get CosmoRec recombination history
CR = hydr.cosm.get_inits_rec()
CR = hydr.cosm._ics.get_inits_rec()

# Assume neutral medium for simplicity
Ts_CR = hydr.SpinTemperature(CR['z'], CR['Tk'], 0.0, 0.0, 0.0)
Expand Down

0 comments on commit bf81dad

Please sign in to comment.