Skip to content

Commit

Permalink
fix: pipeline.main() and remove commented lines
Browse files Browse the repository at this point in the history
  • Loading branch information
spool committed Sep 25, 2024
1 parent 611c25c commit 35468da
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 380 deletions.
24 changes: 0 additions & 24 deletions python/clim_recal/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,30 +236,18 @@ def __post_init__(self) -> None:
input_paths=self.cpm_input_path,
variables=self.variables,
runs=self.runs,
# resample_paths=self.resample_cpm_path,
output_paths=self.resample_cpm_path,
# crop_paths=self.crops_path,
start_index=self.resample_start_index,
stop_index=self.resample_stop_index,
# resample_start_index=self.resample_start_index,
# resample_stop_index=self.resample_stop_index,
# crop_start_index=self.crop_start_index,
# crop_stop_index=self.crop_stop_index,
**self.cpm_kwargs,
)
self.set_cpm_for_coord_alignment()
self.hads_manager = HADsResamplerManager(
input_paths=self.hads_input_path,
variables=self.variables,
# resample_paths=self.resample_hads_path,
output_paths=self.resample_hads_path,
# crop_paths=self.crops_path,
start_index=self.resample_start_index,
stop_index=self.resample_stop_index,
# resample_start_index=self.resample_start_index,
# resample_stop_index=self.resample_stop_index,
# crop_start_index=self.crop_start_index,
# crop_stop_index=self.crop_stop_index,
cpm_for_coord_alignment=self.cpm_for_coord_alignment,
cpm_for_coord_alignment_path_converted=self.cpm_for_coord_alignment_path_converted,
**self.hads_kwargs,
Expand All @@ -268,30 +256,18 @@ def __post_init__(self) -> None:
input_paths=self.cpm_output_folder,
variables=self.variables,
runs=self.runs,
# resample_paths=self.resample_cpm_path,
output_paths=self.cropped_cpm_path,
# crop_paths=self.crops_path,
start_index=self.crop_start_index,
stop_index=self.crop_stop_index,
# resample_start_index=self.resample_start_index,
# resample_stop_index=self.resample_stop_index,
# crop_start_index=self.crop_start_index,
# crop_stop_index=self.crop_stop_index,
check_input_paths_exist=False,
**self.cpm_crop_kwargs,
)
self.hads_crops_manager = HADsRegionCropManager(
input_paths=self.hads_output_folder,
variables=self.variables,
# resample_paths=self.resample_cpm_path,
output_paths=self.cropped_hads_path,
# crop_paths=self.crops_path,
start_index=self.crop_start_index,
stop_index=self.crop_stop_index,
# resample_start_index=self.resample_start_index,
# resample_stop_index=self.resample_stop_index,
# crop_start_index=self.crop_start_index,
# crop_stop_index=self.crop_stop_index,
check_input_paths_exist=False,
**self.hads_crop_kwargs,
)
Expand Down
Loading

0 comments on commit 35468da

Please sign in to comment.