Skip to content

Commit

Permalink
fix(dataset): additional missing str cast
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrasser committed Aug 26, 2024
1 parent 6f08424 commit 657b024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cryosparc/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ def load(

@classmethod
def _load_numpy_header(cls, file: Union[str, PurePath]) -> DatasetHeader:
indata = n.load(file, mmap_mode="r", allow_pickle=False)
indata = n.load(str(file), mmap_mode="r", allow_pickle=False)
fields = [normalize_field(f[0], fielddtype(f)) for f in indata.dtype.descr]
return DatasetHeader(length=len(indata), dtype=fields, compression=None, compressed_fields=[])

Expand Down

0 comments on commit 657b024

Please sign in to comment.