Skip to content

Commit

Permalink
temporarily remove the num_parallel_product config (#208)
Browse files Browse the repository at this point in the history
Co-authored-by: mirzaees <[email protected]>
  • Loading branch information
mirzaees and mirzaees authored Dec 2, 2024
1 parent b9c3b74 commit 4c9ea1b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
3 changes: 0 additions & 3 deletions configs/algorithm_parameters_historical.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,3 @@ spatial_wavelength_cutoff: 25000.0
browse_image_vmin_vmax:
- -0.1
- 0.1
# Number of NetCDF products to create in parallel.
# Type: number.
num_parallel_products: 3
3 changes: 1 addition & 2 deletions src/disp_s1/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def create_products(
near_far_incidence_angles = 30.0, 45.0

logger.info(f"Creating {len(out_paths.timeseries_paths)} outputs in {out_dir}")
algorithm_parameters = AlgorithmParameters.from_yaml(
AlgorithmParameters.from_yaml(
pge_runconfig.dynamic_ancillary_file_group.algorithm_parameters_file
)
# Group all the CSLCs by date to pick out ref/secondaries
Expand All @@ -238,7 +238,6 @@ def create_products(
los_north_file=los_north_file,
near_far_incidence_angles=near_far_incidence_angles,
water_mask=matching_water_binary_mask,
max_workers=algorithm_parameters.num_parallel_products,
)
logger.info("Finished creating output products.")

Expand Down
3 changes: 0 additions & 3 deletions src/disp_s1/pge_runconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,6 @@ class AlgorithmParameters(YamlModel):
" creator."
),
)
num_parallel_products: int = Field(
3, description="Number of NetCDF products to create in parallel."
)

model_config = ConfigDict(extra="forbid")

Expand Down

0 comments on commit 4c9ea1b

Please sign in to comment.