Skip to content

Commit

Permalink
Merge 807e002 into 5f2c511
Browse files Browse the repository at this point in the history
  • Loading branch information
sohamvg committed Mar 18, 2019
2 parents 5f2c511 + 807e002 commit 12c7f29
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions dust_extinction/parameter_averages.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ def evaluate(in_x, Rv):
ValueError
Input x values outside of defined range
"""

# converts all input to array
in_x = np.atleast_1d(in_x)

x = _get_x_in_wavenumbers(in_x)

# check that the wavenumbers are within the defined range
Expand Down Expand Up @@ -215,6 +219,10 @@ def evaluate(in_x, Rv):
ValueError
Input x values outside of defined range
"""

# converts all input to array
in_x = np.atleast_1d(in_x)

x = _get_x_in_wavenumbers(in_x)

# check that the wavenumbers are within the defined range
Expand Down Expand Up @@ -606,6 +614,10 @@ def evaluate(self, in_x, Rv):
ValueError
Input x values outside of defined range
"""

# converts all input to array
in_x = np.atleast_1d(in_x)

x = _get_x_in_wavenumbers(in_x)

# check that the wavenumbers are within the defined range
Expand Down Expand Up @@ -811,6 +823,10 @@ def evaluate(in_x, RvA, fA):
ValueError
Input x values outside of defined range
"""

# converts all input to array
in_x = np.atleast_1d(in_x)

x = _get_x_in_wavenumbers(in_x)

# check that the wavenumbers are within the defined range
Expand Down

0 comments on commit 12c7f29

Please sign in to comment.