ngiab-data-preprocess 4.6.0__py3-none-any.whl → 4.6.1__py3-none-any.whl

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.
@@ -13,7 +13,6 @@ class FilePaths:
13
13
  hydrofabric_dir = Path("~/.ngiab/hydrofabric/v2.2").expanduser()
14
14
  hydrofabric_download_log = Path("~/.ngiab/hydrofabric/v2.2/download_log.json").expanduser()
15
15
  no_update_hf = Path("~/.ngiab/hydrofabric/v2.2/no_update").expanduser()
16
- cache_dir = Path("~/.ngiab/zarr_cache").expanduser()
17
16
  output_dir = None
18
17
  data_sources = Path(__file__).parent.parent / "data_sources"
19
18
  map_app_static = Path(__file__).parent.parent / "map_app" / "static"
@@ -53,8 +52,6 @@ class FilePaths:
53
52
  self.output_dir = Path(output_dir)
54
53
  self.folder_name = self.output_dir.stem
55
54
 
56
- self.cache_dir.mkdir(parents=True, exist_ok=True)
57
-
58
55
  @classmethod
59
56
  def get_working_dir(cls) -> Path | None:
60
57
  try:
@@ -382,7 +382,7 @@ def compute_zonal_stats(
382
382
 
383
383
  cat_chunks: List[pd.DataFrame] = np.array_split(catchments, num_partitions) # type: ignore
384
384
 
385
- progress_file = FilePaths(output_dir=forcings_dir.parent.stem).forcing_progress_file
385
+ progress_file = FilePaths(output_dir=forcings_dir.parent).forcing_progress_file
386
386
  ex_var_name = list(gridded_data.data_vars)[0]
387
387
  example_time_chunks = get_index_chunks(gridded_data[ex_var_name])
388
388
  all_steps = len(example_time_chunks) * len(gridded_data.data_vars)
@@ -9,6 +9,7 @@ with rich.status.Status("loading") as status:
9
9
  import subprocess
10
10
  import time
11
11
  from multiprocessing import cpu_count
12
+ from pathlib import Path
12
13
 
13
14
  import geopandas as gpd
14
15
  from data_processing.create_realization import create_lstm_realization, create_realization
@@ -143,7 +144,7 @@ def main() -> None:
143
144
 
144
145
  if args.output_root:
145
146
  with open(FilePaths.config_file, "w") as config_file:
146
- config_file.write(args.output_root)
147
+ config_file.write(str(Path(args.output_root).expanduser().absolute()))
147
148
  logging.info(
148
149
  f"Changed default directory where outputs are stored to {args.output_root}"
149
150
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ngiab_data_preprocess
3
- Version: 4.6.0
3
+ Version: 4.6.1
4
4
  Summary: Graphical Tools for creating Next Gen Water model input data.
5
5
  Author-email: Josh Cunningham <jcunningham8@ua.edu>
6
6
  Project-URL: Homepage, https://github.com/CIROH-UA/NGIAB_data_preprocess
@@ -2,8 +2,8 @@ data_processing/create_realization.py,sha256=b1a9Wuld9saJ-zzVDPY_kba3-ZOVbRuobyR
2
2
  data_processing/dask_utils.py,sha256=A2IP94WAz8W9nek3etXKEKTOxGPf0NWSFLh8cZ5S-xU,2454
3
3
  data_processing/dataset_utils.py,sha256=0FhspUlGUs0iJLwYY0dl_1fjt0_zwhe9Hl-jikIgrpk,8312
4
4
  data_processing/datasets.py,sha256=_EJ1uZSWTU1HWpvF7TQSikneJqWZFikTrdo9usCV8A0,4665
5
- data_processing/file_paths.py,sha256=IcDcQ8tdpvhUfB2YSor85dFqGCQWWyd5nY0Gj6OQ6-c,4967
6
- data_processing/forcings.py,sha256=Vy9P6ABBddMbUyCP4Q0aLrt446todgc2f7U6m35trqQ,21532
5
+ data_processing/file_paths.py,sha256=7MpwfIQewLRrDpAw1dxTjTperUwOk3EC_kthmnJSRII,4851
6
+ data_processing/forcings.py,sha256=8WY3w-TrhuCexnvUtvNCaUM9Uu3F5IaSO2qpIsUEtyg,21527
7
7
  data_processing/gpkg_utils.py,sha256=VoQG53zaGcdmkU9M_7kRrk_vygRGJV9E-wX-T48Rzj8,20576
8
8
  data_processing/graph_utils.py,sha256=4D72wMSiCRKCPC7JUz7XCoaISRGLuqDx6wpeO_VP8fk,8301
9
9
  data_processing/s3fs_utils.py,sha256=ki1EmA0ezV0r26re6dRWIGzL5FudGdwF9Qw1eVLR0Bc,2747
@@ -31,13 +31,13 @@ map_app/static/js/main.js,sha256=8vWWO56vc8LEhyp3AeRiJw1tsqebZtkG9IOS65b154w,110
31
31
  map_app/static/resources/loading.gif,sha256=ggdkZf1AD7rSwIpSJwfiIqANgmVV1WHlxGuKxQKv7uY,72191
32
32
  map_app/static/resources/screenshot.jpg,sha256=Ia358aX-OHM9BP4B8lX05cLnguF2fHUIimno9bnFLYw,253730
33
33
  map_app/templates/index.html,sha256=vgcefTU3GmRDNL6P5Xi284nO2vdLxxIW8c5xp3SHsTg,8664
34
- ngiab_data_cli/__main__.py,sha256=SRNt7DTJuPW3nMDk30tmde5rc0kSIyLQ0fMwFeHT9tg,11254
34
+ ngiab_data_cli/__main__.py,sha256=_8IFqL2CGZGMsC71uutqHOIjZpfYBD91yKTk4dvEa3c,11318
35
35
  ngiab_data_cli/arguments.py,sha256=97BFzlj68tt9tRCR3rTPnK6o7zd7dUCdPg8Cypa2aKA,4782
36
36
  ngiab_data_cli/custom_logging.py,sha256=iS2XozaxudcxQj17qAsrCgbVK9LJAYAPmarJuVWJo1k,1280
37
37
  ngiab_data_cli/forcing_cli.py,sha256=eIWRxRWUwPqR16fihFDEIV4VzGlNuvcD6lJW5VYjkPU,3635
38
- ngiab_data_preprocess-4.6.0.dist-info/licenses/LICENSE,sha256=6dMSprwwnsRzEm02mEDbKHD9dUbL8bPIt9Vhrhb0Ulk,1081
39
- ngiab_data_preprocess-4.6.0.dist-info/METADATA,sha256=CHJUKYW6WdXYNGxBLBG5vCNQsDGrPrO3BIXf237EHGo,13344
40
- ngiab_data_preprocess-4.6.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
41
- ngiab_data_preprocess-4.6.0.dist-info/entry_points.txt,sha256=spwlhKEJ3ZnNETQsJGeTjD7Vwy8O_zGHb9GdX8ACCtw,128
42
- ngiab_data_preprocess-4.6.0.dist-info/top_level.txt,sha256=CjhYAUZrdveR2fOK6rxffU09VIN2IuPD7hk4V3l3pV0,52
43
- ngiab_data_preprocess-4.6.0.dist-info/RECORD,,
38
+ ngiab_data_preprocess-4.6.1.dist-info/licenses/LICENSE,sha256=6dMSprwwnsRzEm02mEDbKHD9dUbL8bPIt9Vhrhb0Ulk,1081
39
+ ngiab_data_preprocess-4.6.1.dist-info/METADATA,sha256=QMH8sbF6n8UuQQoyQBg7npu849Gm9VmrrAqm2_PzyYY,13344
40
+ ngiab_data_preprocess-4.6.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
41
+ ngiab_data_preprocess-4.6.1.dist-info/entry_points.txt,sha256=spwlhKEJ3ZnNETQsJGeTjD7Vwy8O_zGHb9GdX8ACCtw,128
42
+ ngiab_data_preprocess-4.6.1.dist-info/top_level.txt,sha256=CjhYAUZrdveR2fOK6rxffU09VIN2IuPD7hk4V3l3pV0,52
43
+ ngiab_data_preprocess-4.6.1.dist-info/RECORD,,