rashdf 0.7.0__tar.gz → 0.7.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: rashdf
3
- Version: 0.7.0
3
+ Version: 0.7.2
4
4
  Summary: Read data from HEC-RAS HDF files.
5
5
  Project-URL: repository, https://github.com/fema-ffrd/rashdf
6
6
  Classifier: Development Status :: 4 - Beta
@@ -23,7 +23,7 @@ Requires-Dist: ruff; extra == "dev"
23
23
  Requires-Dist: pytest; extra == "dev"
24
24
  Requires-Dist: pytest-cov; extra == "dev"
25
25
  Requires-Dist: kerchunk; extra == "dev"
26
- Requires-Dist: zarr; extra == "dev"
26
+ Requires-Dist: zarr==2.18.2; extra == "dev"
27
27
  Requires-Dist: dask; extra == "dev"
28
28
  Requires-Dist: fsspec; extra == "dev"
29
29
  Requires-Dist: s3fs; extra == "dev"
@@ -12,11 +12,11 @@ classifiers = [
12
12
  "Programming Language :: Python :: 3.11",
13
13
  "Programming Language :: Python :: 3.12",
14
14
  ]
15
- version = "0.7.0"
15
+ version = "0.7.2"
16
16
  dependencies = ["h5py", "geopandas>=1.0,<2.0", "pyarrow", "xarray"]
17
17
 
18
18
  [project.optional-dependencies]
19
- dev = ["pre-commit", "ruff", "pytest", "pytest-cov", "kerchunk", "zarr", "dask", "fsspec", "s3fs", "fiona==1.9.6"]
19
+ dev = ["pre-commit", "ruff", "pytest", "pytest-cov", "kerchunk", "zarr==2.18.2", "dask", "fsspec", "s3fs", "fiona==1.9.6"]
20
20
  docs = ["sphinx", "numpydoc", "sphinx_rtd_theme"]
21
21
 
22
22
  [project.urls]
@@ -160,7 +160,7 @@ class RasPlanHdf(RasGeomHdf):
160
160
  OBS_DATA_PATH = "Event Conditions/Observed Data"
161
161
  RESULTS_UNSTEADY_PATH = "Results/Unsteady"
162
162
  RESULTS_UNSTEADY_SUMMARY_PATH = f"{RESULTS_UNSTEADY_PATH}/Summary"
163
- VOLUME_ACCOUNTING_PATH = f"{RESULTS_UNSTEADY_PATH}/Volume Accounting"
163
+ VOLUME_ACCOUNTING_PATH = f"{RESULTS_UNSTEADY_SUMMARY_PATH}/Volume Accounting"
164
164
  BASE_OUTPUT_PATH = f"{RESULTS_UNSTEADY_PATH}/Output/Output Blocks/Base Output"
165
165
  SUMMARY_OUTPUT_2D_FLOW_AREAS_PATH = (
166
166
  f"{BASE_OUTPUT_PATH}/Summary Output/2D Flow Areas"
@@ -1121,7 +1121,7 @@ class RasPlanHdf(RasGeomHdf):
1121
1121
  """
1122
1122
  return self.reference_timeseries_output(reftype="lines")
1123
1123
 
1124
- def observed_timeseries_input(self, vartype: str = "Flow") -> dict:
1124
+ def observed_timeseries_input(self, vartype: str = "Flow") -> xr.DataArray:
1125
1125
  """Return observed timeseries input data for reference lines and points from a HEC-RAS HDF plan file.
1126
1126
 
1127
1127
  Parameters
@@ -1132,8 +1132,8 @@ class RasPlanHdf(RasGeomHdf):
1132
1132
 
1133
1133
  Returns
1134
1134
  -------
1135
- xr.Dataset
1136
- An xarray Dataset with observed timeseries input data for both reference lines and reference points.
1135
+ xr.DataArray
1136
+ An xarray DataArray with observed timeseries input data for reference lines or reference points.
1137
1137
  """
1138
1138
  if vartype == "Flow":
1139
1139
  output_path = self.OBS_FLOW_OUTPUT_PATH
@@ -1511,7 +1511,7 @@ class RasPlanHdf(RasGeomHdf):
1511
1511
  def _zmeta(self, ds: xr.Dataset) -> Dict:
1512
1512
  """Given a xarray Dataset, return kerchunk-style zarr reference metadata."""
1513
1513
  from kerchunk.hdf import SingleHdf5ToZarr
1514
- import zarr
1514
+ from zarr.storage import MemoryStore
1515
1515
  import base64
1516
1516
 
1517
1517
  encoding = {}
@@ -1546,7 +1546,7 @@ class RasPlanHdf(RasGeomHdf):
1546
1546
  chunk_meta[chunk_key] = [str(self._loc), value["offset"], value["size"]]
1547
1547
  # "Write" the Dataset to a temporary in-memory zarr store (which
1548
1548
  # is the same a Python dictionary)
1549
- zarr_tmp = zarr.MemoryStore()
1549
+ zarr_tmp = MemoryStore()
1550
1550
  # Use compute=False here because we don't _actually_ want to write
1551
1551
  # the data to the zarr store, we just want to generate the metadata.
1552
1552
  ds.to_zarr(zarr_tmp, mode="w", compute=False, encoding=encoding)
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: rashdf
3
- Version: 0.7.0
3
+ Version: 0.7.2
4
4
  Summary: Read data from HEC-RAS HDF files.
5
5
  Project-URL: repository, https://github.com/fema-ffrd/rashdf
6
6
  Classifier: Development Status :: 4 - Beta
@@ -23,7 +23,7 @@ Requires-Dist: ruff; extra == "dev"
23
23
  Requires-Dist: pytest; extra == "dev"
24
24
  Requires-Dist: pytest-cov; extra == "dev"
25
25
  Requires-Dist: kerchunk; extra == "dev"
26
- Requires-Dist: zarr; extra == "dev"
26
+ Requires-Dist: zarr==2.18.2; extra == "dev"
27
27
  Requires-Dist: dask; extra == "dev"
28
28
  Requires-Dist: fsspec; extra == "dev"
29
29
  Requires-Dist: s3fs; extra == "dev"
@@ -9,7 +9,7 @@ ruff
9
9
  pytest
10
10
  pytest-cov
11
11
  kerchunk
12
- zarr
12
+ zarr==2.18.2
13
13
  dask
14
14
  fsspec
15
15
  s3fs
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes