:241: RuntimeWarning: numpy.ndarray size changed, may indicate binary incompatibility. Expected 16 from C header, got 96 from PyObject
[ ] tests/test_batch.py: 6 warnings
tests/test_parsers.py: 42 warnings
/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/xarray/coding/times.py:618: RuntimeWarning: invalid value encountered in cast
int_num = np.asarray(num, dtype=np.int64)
[ ] tests/test_file_registry.py::FileRegistryTests::test_update
/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/batch/registry.py:176: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '['dec9cc2c13d887d65993a6dbd506a50e9686ded72488e22a2b04f4b8140c582e', 'a667f1642c27081c53595a616e2f18cb9bb949d6838c75230f1c433bdea5f7c3', 'ac6bc2089a366a885c99dd35ea9d9d4caaa37f19a72f582113126480a1446f74', 'd7732321e11972d0acf9779343aac8bda8582c525d8dde23855a59c9f988ab18', 'ff9ff93dfffb2faa0c8eea3f71227c3c54bc5d94e3bc9ce26a9529fa255b4830', 'd946f78739936769b6e1c155353dd5c867189b04b53de8a316481a917f8ccf4b', '393b2f0c1f4fc2d4f79d3dbb09c59f328fc9c8a2b032870fb8fe741fdaaa61e0', 'b390a7ad6fc5ed3c664eb6ac3cee6d1161ba962b3942ba651bcaa5e086be957c']' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.
self.data.loc[sources, "hash"] = list(map(self._get_hash, sources))
[ ] tests/test_file_registry.py::FileRegistryTests::test_update
/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/batch/registry.py:177: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[1693507548.0633626, 1693507548.0713625, 1693507548.0713625, 1693507548.0673625, 1693507548.0513623, 1693507548.0553625, 1693507548.0553625, 1693507548.0513623]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.
self.data.loc[sources, "mtime"] = list(map(self._get_mtime, sources))
[ ] tests/test_file_registry.py::FileRegistryTests::test_update_specific_source
/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/batch/registry.py:176: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '['dec9cc2c13d887d65993a6dbd506a50e9686ded72488e22a2b04f4b8140c582e']' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.
self.data.loc[sources, "hash"] = list(map(self._get_hash, sources))
[ ] tests/test_file_registry.py::FileRegistryTests::test_update_specific_source
/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/batch/registry.py:177: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[1693507548.0633626]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.
self.data.loc[sources, "mtime"] = list(map(self._get_mtime, sources))
[x] tests/test_parsers.py: 12 warnings
/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/parsers/sunburst.py:103: FutureWarning: The behavior of DatetimeProperties.to_pydatetime is deprecated, in a future version this will return a Series containing python datetime objects instead of an ndarray. To retain the old behavior, call np.array on the result
.dt.to_pydatetime()
[x] tests/test_parsers.py: 12 warnings
/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/parsers/sunburst.py:115: FutureWarning: The behavior of DatetimeProperties.to_pydatetime is deprecated, in a future version this will return a Series containing python datetime objects instead of an ndarray. To retain the old behavior, call np.array on the result
.dt.to_pydatetime()
[x] tests/test_parsers.py::TestSunburstParsers::test_sunburst_pCO2_notes_parser[tests/parsers_test_files/sunburst/superCO2/royal_pCO2_notes_07032303.txt]
tests/test_parsers.py::TestSunburstParsers::test_sunburst_pCO2_notes_parser[tests/parsers_test_files/sunburst/superCO2/royal_pCO2_notes_07032306.txt]
/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/parsers/sunburst.py:179: FutureWarning: The behavior of DatetimeProperties.to_pydatetime is deprecated, in a future version this will return a Series containing python datetime objects instead of an ndarray. To retain the old behavior, call np.array on the result
df["time"] = pd.to_datetime(df["time"]).dt.to_pydatetime()
[x] tests/test_parsers.py: 38 warnings
/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/parsers/nmea.py:301: FutureWarning: The behavior of DatetimeProperties.to_pydatetime is deprecated, in a future version this will return a Series containing python datetime objects instead of an ndarray. To retain the old behavior, call np.array on the result
pd.to_datetime(df[col], utc=True).dt.tz_convert(None).dt.to_pydatetime()
[x] tests/test_parsers.py: 45 warnings
/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/parsers/dfo/ios_source/IosObsFile.py:1021: FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead.
.applymap(str.strip)
[x] tests/test_parsers.py: 23 warnings
/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/parsers/dfo/ios_source/IosObsFile.py:1172: PendingDeprecationWarning: dropping variables using drop will be deprecated; using drop_vars is encouraged.
ds = ds.drop([var for var in ds if var in ["Date", "Time"]])
The latest changes are suggesting some deprecation warnings while running pytest:
[x] tests/test_batch.py: 16 warnings tests/test_parsers.py: 8 warnings tests/test_read.py: 3 warnings /opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/parsers/onset.py:214: FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead. df[header["time_variables"]] = df[header["time_variables"]].applymap(
[ ] tests/test_batch.py::TestBatchMode::test_batch_conversion_multiprocessing[1]
[ ] tests/test_batch.py: 6 warnings tests/test_parsers.py: 42 warnings /opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/xarray/coding/times.py:618: RuntimeWarning: invalid value encountered in cast int_num = np.asarray(num, dtype=np.int64)
[ ] tests/test_file_registry.py::FileRegistryTests::test_update /opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/batch/registry.py:176: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '['dec9cc2c13d887d65993a6dbd506a50e9686ded72488e22a2b04f4b8140c582e', 'a667f1642c27081c53595a616e2f18cb9bb949d6838c75230f1c433bdea5f7c3', 'ac6bc2089a366a885c99dd35ea9d9d4caaa37f19a72f582113126480a1446f74', 'd7732321e11972d0acf9779343aac8bda8582c525d8dde23855a59c9f988ab18', 'ff9ff93dfffb2faa0c8eea3f71227c3c54bc5d94e3bc9ce26a9529fa255b4830', 'd946f78739936769b6e1c155353dd5c867189b04b53de8a316481a917f8ccf4b', '393b2f0c1f4fc2d4f79d3dbb09c59f328fc9c8a2b032870fb8fe741fdaaa61e0', 'b390a7ad6fc5ed3c664eb6ac3cee6d1161ba962b3942ba651bcaa5e086be957c']' has dtype incompatible with int64, please explicitly cast to a compatible dtype first. self.data.loc[sources, "hash"] = list(map(self._get_hash, sources))
[ ] tests/test_file_registry.py::FileRegistryTests::test_update /opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/batch/registry.py:177: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[1693507548.0633626, 1693507548.0713625, 1693507548.0713625, 1693507548.0673625, 1693507548.0513623, 1693507548.0553625, 1693507548.0553625, 1693507548.0513623]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first. self.data.loc[sources, "mtime"] = list(map(self._get_mtime, sources))
[ ] tests/test_file_registry.py::FileRegistryTests::test_update_specific_source /opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/batch/registry.py:176: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '['dec9cc2c13d887d65993a6dbd506a50e9686ded72488e22a2b04f4b8140c582e']' has dtype incompatible with int64, please explicitly cast to a compatible dtype first. self.data.loc[sources, "hash"] = list(map(self._get_hash, sources))
[ ] tests/test_file_registry.py::FileRegistryTests::test_update_specific_source /opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/batch/registry.py:177: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[1693507548.0633626]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first. self.data.loc[sources, "mtime"] = list(map(self._get_mtime, sources))
[x] tests/test_parsers.py: 12 warnings /opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/parsers/sunburst.py:103: FutureWarning: The behavior of DatetimeProperties.to_pydatetime is deprecated, in a future version this will return a Series containing python datetime objects instead of an ndarray. To retain the old behavior, call
np.array
on the result .dt.to_pydatetime()[x] tests/test_parsers.py: 12 warnings /opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/parsers/sunburst.py:115: FutureWarning: The behavior of DatetimeProperties.to_pydatetime is deprecated, in a future version this will return a Series containing python datetime objects instead of an ndarray. To retain the old behavior, call
np.array
on the result .dt.to_pydatetime()[x] tests/test_parsers.py::TestSunburstParsers::test_sunburst_pCO2_notes_parser[tests/parsers_test_files/sunburst/superCO2/royal_pCO2_notes_07032303.txt] tests/test_parsers.py::TestSunburstParsers::test_sunburst_pCO2_notes_parser[tests/parsers_test_files/sunburst/superCO2/royal_pCO2_notes_07032306.txt] /opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/parsers/sunburst.py:179: FutureWarning: The behavior of DatetimeProperties.to_pydatetime is deprecated, in a future version this will return a Series containing python datetime objects instead of an ndarray. To retain the old behavior, call
np.array
on the result df["time"] = pd.to_datetime(df["time"]).dt.to_pydatetime()[x] tests/test_parsers.py: 38 warnings /opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/parsers/nmea.py:301: FutureWarning: The behavior of DatetimeProperties.to_pydatetime is deprecated, in a future version this will return a Series containing python datetime objects instead of an ndarray. To retain the old behavior, call
np.array
on the result pd.to_datetime(df[col], utc=True).dt.tz_convert(None).dt.to_pydatetime()[x] tests/test_parsers.py: 45 warnings /opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/parsers/dfo/ios_source/IosObsFile.py:1021: FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead. .applymap(str.strip)
[x] tests/test_parsers.py: 23 warnings /opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/ocean_data_parser/parsers/dfo/ios_source/IosObsFile.py:1172: PendingDeprecationWarning: dropping variables using
drop
will be deprecated; using drop_vars is encouraged. ds = ds.drop([var for var in ds if var in ["Date", "Time"]])