Skip to content

Commit

Permalink
Fix a bug with undefined repository_path in add_total_power_rate.
Browse files Browse the repository at this point in the history
  • Loading branch information
vsnever committed Aug 8, 2023
1 parent 7d17b1e commit d6e0280
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cherab/atomic/repository/radiated_power.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ def add_total_power_rate(species, rate, repository_path=None):
:param repository_path: Path to the atomic data repository.
"""

repository_path = repository_path or DEFAULT_REPOSITORY_PATH

if not isinstance(species, Element):
raise TypeError('The species must be an Element object.')

Expand Down

0 comments on commit d6e0280

Please sign in to comment.