Closed musoke closed 1 year ago
If I'm understanding this right, you'd like to be able to pass a dictionary instead of a yaml file in the configuration.
Right now, I don't think that feature is supported. Out of curiosity, is there a reason you'd like to do this instead of working directly with the yaml file?
Yes, I was attempting to pass in a dict containing a configuration to work around https://github.com/deepskies/deeplenstronomy/issues/117
As it is, the doc string claims that this is possible: https://github.com/deepskies/deeplenstronomy/blob/00abf490c362e2e8e948924d2fad84d3ce856912/deeplenstronomy/deeplenstronomy.py#L275
I suspect that this is only meant to be used with the regenerate
method you mentioned in the other issue?
The config item in deeplenstronomy currently only supports taking a yaml file path, rather than a dictionary. Not really enough requests to work on this added feature right now. Docstrings will be changed to present input more accurately
I have found that it is possible to generate an unbound local error in
deeplenstronomy.deeplenstronomy.make_dataset
by passing in a configuration of an unexpected type.In particular, if
config
is a dict anddataset
has its default value, thenparser
is not initialized in this section https://github.com/deepskies/deeplenstronomy/blob/00abf490c362e2e8e948924d2fad84d3ce856912/deeplenstronomy/deeplenstronomy.py#L298-L319MWE:
output