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)