Skip to content

Commit

Permalink
Update cdci_data_analysis/analysis/parameters.py
Browse files Browse the repository at this point in the history
Co-authored-by: Gabriele Barni <[email protected]>
  • Loading branch information
dsavchenko and burnout87 authored Nov 15, 2024
1 parent 53f52fa commit c7d6c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdci_data_analysis/analysis/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ def __init__(self, *args, **kwargs):
kwargs['allowed_types'] = [int, float]

if kwargs.get('default_type') is None:
val = kwargs['value'] if 'value' in kwargs.keys() else args[0]
val = kwargs.get('value', args[0])
if type(val) in kwargs['allowed_types']:
kwargs['default_type'] = type(val)
else:
Expand Down

0 comments on commit c7d6c70

Please sign in to comment.