-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify CLI with hydra instantiate (#230)
* update poetry * more error checking in draw_blends for MR * bug in this line when using basic measure function and MR * catch error related to meas_band_num in metrics * use hydra instantiate and call rather than available_* * update documentation * test MR on main, remove error checking now done by hydra * Revert "update poetry" This reverts commit aad74ea.
- Loading branch information
1 parent
4061998
commit 223650d
Showing
17 changed files
with
109 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
_target_: btk.catalog.CatsimCatalog.from_file | ||
catalog_files: ${paths.data}/sample_input_catalog.fits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
name: btk.catalog.CosmosCatalog.from_file | ||
catalog_files: | ||
- ${paths.data}/cosmos/real_galaxy_catalog_23.5_example.fits | ||
- ${paths.data}/cosmos/real_galaxy_catalog_23.5_example_fits.fits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
name: "CatsimGenerator" | ||
kwargs: | ||
batch_size: ${batch_size} | ||
stamp_size: ${stamp_size} | ||
cpus: ${cpus} | ||
verbose: ${verbose} | ||
add_noise: ${add_noise} | ||
shifts: Null | ||
indexes: Null | ||
channels_last: ${channels_last} | ||
save_path: ${save_path} | ||
_target_: btk.draw_blends.CatsimGenerator | ||
catalog: ${catalog} | ||
sampling_function: ${sampling} | ||
surveys: Null | ||
batch_size: ${batch_size} | ||
stamp_size: ${stamp_size} | ||
cpus: ${cpus} | ||
verbose: ${verbose} | ||
add_noise: ${add_noise} | ||
shifts: Null | ||
indexes: Null | ||
channels_last: ${channels_last} | ||
save_path: ${save_path} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
name: "CosmosGenerator" | ||
kwargs: | ||
batch_size: ${batch_size} | ||
stamp_size: ${stamp_size} | ||
cpus: ${cpus} | ||
verbose: ${verbose} | ||
add_noise: ${add_noise} | ||
shifts: Null | ||
indexes: Null | ||
channels_last: ${channels_last} | ||
save_path: ${save_path} | ||
_target_: btk.draw_blends.CosmosGenerator | ||
catalog: ${catalog} | ||
sampling_function: ${sampling} | ||
surveys: Null | ||
batch_size: ${batch_size} | ||
stamp_size: ${stamp_size} | ||
cpus: ${cpus} | ||
verbose: ${verbose} | ||
add_noise: ${add_noise} | ||
shifts: Null | ||
indexes: Null | ||
channels_last: ${channels_last} | ||
save_path: ${save_path} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
name: "GalsimHubGenerator" | ||
kwargs: | ||
catalog: ${catalog} | ||
surveys: Null | ||
batch_size: ${batch_size} | ||
stamp_size: ${stamp_size} | ||
cpus: ${cpus} | ||
verbose: ${verbose} | ||
add_noise: ${add_noise} | ||
shifts: Null | ||
indexes: Null | ||
channels_last: ${channels_last} | ||
galsim_hub_model: ${galsim_hub_model} | ||
param_names: ${param_names} | ||
save_path: ${save_path} | ||
_target_: btk.draw_blends.GalsimHubGenerator | ||
catalog: ${catalog} | ||
sampling: ${sampling} | ||
surveys: Null | ||
batch_size: ${batch_size} | ||
stamp_size: ${stamp_size} | ||
cpus: ${cpus} | ||
verbose: ${verbose} | ||
add_noise: ${add_noise} | ||
shifts: Null | ||
indexes: Null | ||
channels_last: ${channels_last} | ||
galsim_hub_model: ${galsim_hub_model} | ||
param_names: ${param_names} | ||
save_path: ${save_path} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
name: "DefaultSampling" | ||
kwargs: | ||
max_number: ${max_number} | ||
stamp_size: ${stamp_size} | ||
maxshift: ${max_shift} | ||
_target_: btk.sampling_functions.DefaultSampling | ||
max_number: ${max_number} | ||
stamp_size: ${stamp_size} | ||
maxshift: ${max_shift} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
name: "DefaultSamplingGalsimHub" | ||
kwargs: | ||
max_number: ${max_number} | ||
stamp_size: ${stamp_size} | ||
maxshift: ${max_shift} | ||
_target_: btk.sampling_functions.DefaultSamplingGalsimHub | ||
max_number: ${max_number} | ||
stamp_size: ${stamp_size} | ||
maxshift: ${max_shift} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
name: "GroupSamplingFunction" | ||
kwargs: | ||
max_number: ${max_number} | ||
stamp_size: ${stamp_size} | ||
maxshift: ${max_shift} | ||
wld_catalog_name: ${paths.data}/sample_group_catalog.fits | ||
shift: Null | ||
_target_: btk.sampling_functions.GroupSampling | ||
max_number: ${max_number} | ||
stamp_size: ${stamp_size} | ||
maxshift: ${max_shift} | ||
wld_catalog_name: ${paths.data}/sample_group_catalog.fits | ||
shift: Null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
name: "GroupSamplingFunctionNumbered" | ||
kwargs: | ||
max_number: ${max_number} | ||
stamp_size: ${stamp_size} | ||
maxshift: ${max_shift} | ||
wld_catalog_name: ${paths.data}/sample_group_catalog.fits | ||
shift: Null | ||
_target_: btk.sampling_functions.GroupSamplingNumbered | ||
max_number: ${max_number} | ||
stamp_size: ${stamp_size} | ||
maxshift: ${max_shift} | ||
wld_catalog_name: ${paths.data}/sample_group_catalog.fits | ||
shift: Null |
Oops, something went wrong.