Skip to content

Commit

Permalink
got rid of a few 'is's where there should be ==
Browse files Browse the repository at this point in the history
  • Loading branch information
mirochaj committed Aug 28, 2023
1 parent 547d1e9 commit fe225bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ares/simulations/MultiPhaseMedium.py
Expand Up @@ -528,8 +528,8 @@ def _insert_inits(self):
snapshot['he_3'] = 1e-10

snapshot['rho'] = self.parcel_igm.grid.cosm.MeanBaryonDensity(red)
snapshot['n'] = \
self.parcel_igm.grid.particle_density(snapshot.copy(), red)
n = self.parcel_igm.grid.particle_density(snapshot.copy(), red)
snapshot['n'] = float(n)

# Need to keep the cell number dimension for consistency
for element in snapshot:
Expand Down
4 changes: 2 additions & 2 deletions ares/solvers/UniformBackground.py
Expand Up @@ -582,9 +582,9 @@ def _set_tau(self, z, E, pop):
if tau is None:
no_tau_table(self)

if self.pf['tau_approx'] is 'neutral':
if self.pf['tau_approx'] == 'neutral':
tau_solver.ionization_history = lambda z: 0.0
elif self.pf['tau_approx'] is 'post_EoR':
elif self.pf['tau_approx'] == 'post_EoR':
tau_solver.ionization_history = lambda z: 1.0
elif type(self.pf['tau_approx']) is types.FunctionType:
tau_solver.ionization_history = self.pf['tau_approx']
Expand Down
2 changes: 1 addition & 1 deletion ares/util/ParameterBundles.py
Expand Up @@ -797,7 +797,7 @@ def pqids(self):

pqs.append(par)

if pqid is 'None':
if pqid == 'None':
pqids.append(None)
else:
pqids.append(pqid)
Expand Down

0 comments on commit fe225bc

Please sign in to comment.