dist-s1-enumerator 1.0.2__tar.gz → 1.0.3__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.
Files changed (54) hide show
  1. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/CHANGELOG.md +8 -3
  2. {dist_s1_enumerator-1.0.2/src/dist_s1_enumerator.egg-info → dist_s1_enumerator-1.0.3}/PKG-INFO +1 -1
  3. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/src/dist_s1_enumerator/dist_enum.py +4 -5
  4. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/src/dist_s1_enumerator/dist_enum_inputs.py +1 -1
  5. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3/src/dist_s1_enumerator.egg-info}/PKG-INFO +1 -1
  6. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/.github/dependabot.yml +0 -0
  7. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/.github/workflows/bump-tag-for-release.yml +0 -0
  8. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/.github/workflows/changelog-updated.yml +0 -0
  9. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/.github/workflows/github-release.yml +0 -0
  10. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/.github/workflows/labeled-pr.yml +0 -0
  11. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/.github/workflows/nb_tests.yml +0 -0
  12. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/.github/workflows/pypi-release.yml +0 -0
  13. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/.github/workflows/static_analysis.yml +0 -0
  14. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/.github/workflows/tests.yml +0 -0
  15. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/.gitignore +0 -0
  16. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/LICENSE +0 -0
  17. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/README.md +0 -0
  18. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/environment.yml +0 -0
  19. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/notebooks/A__Staging_Inputs_for_One_MGRS_Tile.ipynb +0 -0
  20. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/notebooks/B__Enumerate_MGRS_tile.ipynb +0 -0
  21. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/pyproject.toml +0 -0
  22. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/setup.cfg +0 -0
  23. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/src/dist_s1_enumerator/__init__.py +0 -0
  24. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/src/dist_s1_enumerator/asf.py +0 -0
  25. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/src/dist_s1_enumerator/data/jpl_burst_geo.parquet +0 -0
  26. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/src/dist_s1_enumerator/data/mgrs.parquet +0 -0
  27. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/src/dist_s1_enumerator/data/mgrs_burst_lookup_table.parquet +0 -0
  28. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/src/dist_s1_enumerator/exceptions.py +0 -0
  29. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/src/dist_s1_enumerator/mgrs_burst_data.py +0 -0
  30. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/src/dist_s1_enumerator/param_models.py +0 -0
  31. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/src/dist_s1_enumerator/py.typed +0 -0
  32. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/src/dist_s1_enumerator/rtc_s1_io.py +0 -0
  33. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/src/dist_s1_enumerator/tabular_models.py +0 -0
  34. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/src/dist_s1_enumerator.egg-info/SOURCES.txt +0 -0
  35. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/src/dist_s1_enumerator.egg-info/dependency_links.txt +0 -0
  36. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/src/dist_s1_enumerator.egg-info/not-zip-safe +0 -0
  37. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/src/dist_s1_enumerator.egg-info/requires.txt +0 -0
  38. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/src/dist_s1_enumerator.egg-info/top_level.txt +0 -0
  39. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/tests/conftest.py +0 -0
  40. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/tests/data/mock_ts_data_for_enum.ipynb +0 -0
  41. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/tests/data/rtc_s1_ts_metadata/chile_19HBD.parquet +0 -0
  42. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/tests/data/rtc_s1_ts_metadata/mgrs01UBT.parquet +0 -0
  43. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/tests/data/rtc_s1_ts_metadata/mgrs11SLT_11SLU_11SMT.parquet +0 -0
  44. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/tests/data/rtc_s1_ts_metadata/mgrs15RXN__track63.parquet +0 -0
  45. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/tests/data/rtc_s1_ts_metadata/mgrs22WFD.parquet +0 -0
  46. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/tests/data/ts_data_for_workflow_inputs.ipynb +0 -0
  47. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/tests/test_asf.py +0 -0
  48. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/tests/test_dist_enum.py +0 -0
  49. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/tests/test_dist_enum_inputs.py +0 -0
  50. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/tests/test_mgrs_burst_data.py +0 -0
  51. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/tests/test_notebooks.py +0 -0
  52. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/tests/test_package.py +0 -0
  53. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/tests/test_param_model.py +0 -0
  54. {dist_s1_enumerator-1.0.2 → dist_s1_enumerator-1.0.3}/tests/test_rtc_s1_io.py +0 -0
@@ -6,15 +6,20 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/)
7
7
  and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
8
 
9
+ ## [1.0.3] - 2025-09-09
10
+
11
+ ### Fixed
12
+ * Defaults for `lookback_delta_days` from 0 to 365 in enumeration of multiple products. Leading to submission of jobs that had no baseline (see Issue: https://github.com/opera-adt/dist-s1-enumerator/issues/44)
13
+ * Renamed variables for easier tracking in `enumerat_dist_s1_products`.
14
+
9
15
  ## [1.0.2] - 2025-09-09
10
16
 
11
- ## Changed
17
+ ### Changed
12
18
  * `backoff` library is removed and we now use `tenacity`
13
19
 
14
- ## Added
20
+ ### Added
15
21
  * Uses sessions and adapters to handle mutiple concurrent requests more reliably.
16
22
 
17
-
18
23
  ## [1.0.1] - 2025-08-07
19
24
 
20
25
  ### Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dist-s1-enumerator
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: Enumeration and ops library for the OPERA DIST-S1 project
5
5
  Author-email: "Richard West, Charlie Marshak, Talib Oliver-Cabrera, and Jungkyo Jung" <charlie.z.marshak@jpl.nasa.gov>
6
6
  License: Apache-2.0
@@ -218,7 +218,7 @@ def enumerate_dist_s1_products(
218
218
  max_pre_imgs_per_burst: int = (5, 5, 5),
219
219
  min_pre_imgs_per_burst: int = 1,
220
220
  tqdm_enabled: bool = True,
221
- delta_lookback_days: int = 0,
221
+ delta_lookback_days: int = 365,
222
222
  delta_window_days: int = 365,
223
223
  ) -> gpd.GeoDataFrame:
224
224
  """
@@ -254,7 +254,7 @@ def enumerate_dist_s1_products(
254
254
  tqdm_enabled : bool, optional
255
255
  Whether to enable tqdm progress bars, by default True.
256
256
  delta_lookback_days : int, optional
257
- When to set the most recent pre-image date. Default is 0.
257
+ When to set the most recent pre-image date. Default is 365.
258
258
  If lookback strategy is 'multi_window', this means the maximum number of days to search for pre-images on each
259
259
  anniversary date where `post_date - n * lookback_days` are the anniversary dates for n = 1,....
260
260
  If lookback strategy is 'immediate_lookback', this must be set to 0.
@@ -332,7 +332,7 @@ def enumerate_dist_s1_products(
332
332
  # Loop over the different lookback days
333
333
  df_rtc_pre_list = []
334
334
  zipped_data = list(zip(params.delta_lookback_days, params.max_pre_imgs_per_burst))
335
- for delta_lookback_day, max_pre_img_per_burst in zipped_data:
335
+ for delta_lookback_day, max_pre_img_per_burst_param in zipped_data:
336
336
  delta_lookback_timedelta = pd.Timedelta(delta_lookback_day, unit='D')
337
337
  delta_window_timedelta = pd.Timedelta(params.delta_window_days, unit='D')
338
338
  window_start = post_date - delta_lookback_timedelta - delta_window_timedelta
@@ -354,7 +354,7 @@ def enumerate_dist_s1_products(
354
354
  df_rtc_pre = df_rtc_pre.sort_values(by='acq_dt', ascending=True).reset_index(drop=True)
355
355
  # Assume the data is sorted by acquisition date
356
356
  df_rtc_pre = (
357
- df_rtc_pre.groupby('jpl_burst_id').tail(max_pre_img_per_burst).reset_index(drop=True)
357
+ df_rtc_pre.groupby('jpl_burst_id').tail(max_pre_img_per_burst_param).reset_index(drop=True)
358
358
  )
359
359
 
360
360
  if df_rtc_pre.empty:
@@ -367,7 +367,6 @@ def enumerate_dist_s1_products(
367
367
  df_rtc_pre_final = (
368
368
  pd.concat(df_rtc_pre_list, ignore_index=True) if df_rtc_pre_list else pd.DataFrame()
369
369
  )
370
- # product and provenance
371
370
  df_rtc_product = pd.concat([df_rtc_pre_final, df_rtc_post]).reset_index(drop=True)
372
371
  df_rtc_product['product_id'] = product_id
373
372
 
@@ -33,7 +33,7 @@ def enumerate_dist_s1_workflow_inputs(
33
33
  lookback_strategy: str = 'multi_window',
34
34
  max_pre_imgs_per_burst: int | list[int] | tuple[int, ...] = (5, 5, 5),
35
35
  min_pre_imgs_per_burst: int = 1,
36
- delta_lookback_days: int | list[int] | tuple[int, ...] = 0,
36
+ delta_lookback_days: int | list[int] | tuple[int, ...] = 365,
37
37
  delta_window_days: int = 365,
38
38
  df_ts: gpd.GeoDataFrame | None = None,
39
39
  ) -> list[dict]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dist-s1-enumerator
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: Enumeration and ops library for the OPERA DIST-S1 project
5
5
  Author-email: "Richard West, Charlie Marshak, Talib Oliver-Cabrera, and Jungkyo Jung" <charlie.z.marshak@jpl.nasa.gov>
6
6
  License: Apache-2.0