Skip to content

Commit

Permalink
add comment of 32-bit int, float in _particle_dtypes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishavlin authored Sep 24, 2024
1 parent 641e590 commit e6315d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt/utilities/io_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _particle_dtypes(self) -> defaultdict[FieldKey, type]:
# field (or its alias if it exists), which is set as int64. Important
# to note that the data type will only be preserved for direct reads
# and any operations will either implicity (via unyt) or explicitly
# convert to float64.
# convert to float64. Furthermore, float32 and int32 are not supported.
dtypes: defaultdict[FieldKey, type] = defaultdict(lambda: np.float64)
for ptype in self.ds.particle_types:
p_index = (ptype, "particle_index")
Expand Down

0 comments on commit e6315d7

Please sign in to comment.