Skip to content

Commit

Permalink
raise an error if radius and file are provided to equation_coefficients
Browse files Browse the repository at this point in the history
  • Loading branch information
tukss committed Jun 23, 2024
1 parent 86fe38f commit f9b0d47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions post_processing/reference_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class equation_coefficients:

def __init__(self,radius=[], file=None):
if (len(radius) != 0):
if file is not None:
raise RuntimeError("Cannot provide radius and file at the same time.")
nr = len(radius)
self.nr = nr
self.radius = numpy.asarray(radius, dtype='float64')
Expand Down

0 comments on commit f9b0d47

Please sign in to comment.