You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The HDF5 file stores config values like log_level_global as a numeric (e.g., numpy.int64). When loading, that integer is passed into VariPEPS_Config. In setattr, the field type for log_level_global is the Enum LogLevel, so integers must be coerced to LogLevel. Your version’s coercion path doesn’t catch your value, so it falls through and raises:
Type mismatch for option 'log_level_global', got '<class numpy.int64>', expected '<enum 'LogLevel'>'.
Why it falls through
The loader passes a numpy integer (or a 0-d/1-d array) instead of a Python int.
The Enum branch in setattr is too strict about the numeric checks, so it doesn’t convert that value into LogLevel.
0 commit comments