Skip to content

Commit

Permalink
Merge pull request #111 from ssim/logger_fix
Browse files Browse the repository at this point in the history
minor fixed / logger statements
  • Loading branch information
ssim committed Mar 26, 2014
2 parents a2be47d + 234c8c5 commit 8761bcd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
0.9.2 (unreleased)
------------------

- Nothing changed yet.
Bugfixes
^^^^^^^^

- "print" replaced with logger for classical nebular
- logger statement added for coronal approximation
- warning added to documentation since plasma is out of date (temp
solution only) #108


0.9.1 (2014-02-03)
Expand Down
3 changes: 2 additions & 1 deletion docs/plasma.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Plasma
.. currentmodule:: tardis.plasma_array



.. warning::
This information (particularly code examples) is not up-to-date.


This module calculates the ionization balance and level populations in BasePlasma, give a abundance fraction, temperature
Expand Down
3 changes: 2 additions & 1 deletion tardis/plasma_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,12 +533,13 @@ def calculate_nlte_level_populations(self):
if self.nlte_config.get('coronal_approximation', False):
beta_sobolevs = np.ones_like(self.beta_sobolevs)
j_blues = np.zeros_like(self.j_blues)
logger.info('using coronal approximation = setting beta_sobolevs to 1 AND j_blues to 0')
else:
beta_sobolevs = self.beta_sobolevs
j_blues = self.j_blues.values

if self.nlte_config.get('classical_nebular', False):
print "setting classical nebular = True"
logger.info('using Classical Nebular = setting beta_sobolevs to 1')
beta_sobolevs = np.ones_like(self.beta_sobolevs)

for species in self.nlte_config.species:
Expand Down

0 comments on commit 8761bcd

Please sign in to comment.