-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebuild a fits manifest from an HSC data directory.
- Added a new verb rebuild_manifest - When run with the HSC dataset class this verb will: 0) Scan the data directory and ingest HSC cutout files 1) Read in the original catalog file configured for download for metadata 2) Write out rebuilt_manifest.fits in the data directory - Fixed up config resolution so that fibad_config.toml in the cwd works again for CLI invocations.
- Loading branch information
Showing
5 changed files
with
202 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import logging | ||
|
||
from fibad.pytorch_ignite import setup_model_and_dataset | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
def run(config): | ||
"""Rebuild a broken download manifest | ||
Parameters | ||
---------- | ||
config : dict | ||
The parsed config file as a nested | ||
dict | ||
""" | ||
|
||
_, data_set = setup_model_and_dataset(config, split=config["train"]["split"]) | ||
|
||
data_set.rebuild_manifest(config) | ||
|
||
logger.info("Finished Prepare") | ||