-
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.
Initial version of filter_catalog feature. (#113)
- We can take a fits file as a config - We filter objects_ids out of a big dataset based on it - We also skip filesystem checks if there is enough info in the filter catalog. - Lacks any unit testing - Added the prepare verb, but right now it just gives you the dataset object when run from a notebook.
- Loading branch information
Showing
6 changed files
with
141 additions
and
11 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,21 @@ | ||
import logging | ||
|
||
from fibad.pytorch_ignite import setup_model_and_dataset | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
def run(config): | ||
"""Prepare the dataset for a given model and data loader. | ||
Parameters | ||
---------- | ||
config : dict | ||
The parsed config file as a nested | ||
dict | ||
""" | ||
|
||
_, data_set = setup_model_and_dataset(config, split=config["train"]["split"]) | ||
|
||
logger.info("Finished Prepare") | ||
return data_set |
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