swiftest.io.fix_types#
- swiftest.io.fix_types(ds, itype=<class 'numpy.int64'>, ftype=<class 'numpy.float64'>)[source]#
Converts all variables in the dataset to the specified type.
- Parameters:
ds (SwiftestDataset) – Input dataset to convert
itype (numpy type, default np.int64) – Integer type to convert to
ftype (numpy type, default np.float64) – Floating point type to convert to
- Returns:
ds (SwiftestDataset with the types converted)