Skip to content

Commit

Permalink
Force int64 to python int
Browse files Browse the repository at this point in the history
  • Loading branch information
asistradition committed Oct 17, 2023
1 parent 5714cd9 commit ec18685
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions supirfactor_dynamical/_utils/_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
4: 'tanh'
}

_FORCE_UNIT = {
'decay_k': int
}


def read(
file_name,
Expand Down Expand Up @@ -103,6 +107,10 @@ def read(
for k in _state_args
}

for k, func in _FORCE_UNIT.items():
if k in kwargs:
kwargs[k] = func(kwargs[k])

# Get the prior and pop out the prior
# size variables
try:
Expand Down

0 comments on commit ec18685

Please sign in to comment.