Skip to content

Commit d2c531b

Browse files
committed
Make all float columns float64s to workaround pandas bug
Rolling operations along rows in DataFrames containing columns of floats remove/ignore float16 and float32 columns. See [this issue](pandas-dev/pandas#41779 (comment))
1 parent f72707a commit d2c531b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beach_dune_formatter/beach_dune_formatter_throughtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def read_mask_csvs(path_to_dir):
4545
STATE = np.uint8(29)
4646
INPUT_COLUMNS = ["LINE_ID", "FIRST_DIST", "FIRST_Z", "FIRST_RR"]
4747
OUTPUT_COLUMNS = ["profile", "x", "y", "rr"]
48-
DTYPES = dict(zip(INPUT_COLUMNS, [np.uint16, np.float32, np.float32]))
48+
DTYPES = dict(zip(INPUT_COLUMNS, [np.uint16, np.float64, np.float64, np.float64]))
4949

5050
if not path_to_dir.endswith("\\"):
5151
path_to_dir += "\\"

0 commit comments

Comments
 (0)