Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfried (Mac) committed Nov 22, 2023
1 parent 331687e commit e00158a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions misc/cigaleModules.py
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ def spec(self, *args, **kwargs) -> str:

return text

class DUSTATT_MODIFIED_STARBUSTmodule(ATTENUATIONmodule):
class DUSTATT_MODIFIED_STARBURSTmodule(ATTENUATIONmodule):
r'''
.. codeauthor:: Wilfried Mercier - IRAP <[email protected]>
Expand Down Expand Up @@ -1580,7 +1580,7 @@ class DALEmodule(DUSTmodule):
Class implementing Dale et al. 2014 dust emission module.
:param list fracAGN: (**Optional**) AGN fraction. It is not recommended to combine this AGN emission with the of Fritz et al. (2006) models.
:param list fracAGN: (**Optional**) AGN fraction. It is not recommended to combine this AGN emission with the models of Fritz et al. (2006).
:param list alpha: (**Optional**) mid-infrared powerlaw slope
'''

Expand Down
8 changes: 4 additions & 4 deletions misc/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ def check_bounds(value: Any, mini: Any, maxi: Any, func: Callable, msg: str) ->
'''

if mini is not None and value < mini:
raise ValueError('value is {value} but minimum acceptable bound is {mini}.')
raise ValueError(f'value is {value} but minimum acceptable bound is {mini}.')

if maxi is not None and value > maxi:
raise ValueError('value is {value} but maximum acceptable bound is {maxi}.')
raise ValueError(f'value is {value} but maximum acceptable bound is {maxi}.')

if func(value):
raise ValueError(msg)
Expand Down Expand Up @@ -420,10 +420,10 @@ def check_bounds(value: List[Any], mini: Any, maxi: Any, func: Callable, msg: st
'''

if mini is not None and any((i < mini for i in value)):
raise ValueError('value is {value} but minimum acceptable bound is {mini}.')
raise ValueError(f'value is {value} but minimum acceptable bound is {mini}.')

if maxi is not None and any((i > maxi for i in value)):
raise ValueError('value is {value} but maximum acceptable bound is {maxi}.')
raise ValueError(f'value is {value} but maximum acceptable bound is {maxi}.')

if func(value):
raise ValueError(msg)
Expand Down

0 comments on commit e00158a

Please sign in to comment.