-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataQuery matches against all unmodified DataIDs #1806
Comments
Adding this to the reader yaml fixes it: wavelength:
type: !!python/name:satpy.dataset.dataid.WavelengthRange What are your thoughts @mraspaud? It would seem every reader with a custom DataID needs this defined. |
That's not good, and not the way I envisioned this being used. The wavelength should not be needed for custom DataIDs to work. |
I'm pretty sure that's because the wavelength is being hardcoded somewhere in the DataID comparisons, but unfortunately I don't have time to look a this before the week end |
I'll see if I can figure it out. Now looking at it it isn't quite clear to me why adding |
Describe the bug
I'm working on the nucaps reader and am getting exceptions of "TooManyResults". This happens when the DependencyTree is trying to load composite dependencies so it searches for the wavelength for one composite in the reader datasets. The DataID matching is matching against all DataIDs even though none of them actually match because it is only using the
modifiers
key set to an empty tuple.To Reproduce
Expected behavior
No match and just ignore the composite when checking if it can be loaded.
Actual results
See above. When loading the actual Scene I see:
Additional context
The
nucaps
reader does not definewavelength
in its DataID. I'm going to try and define it and see if that fixes this.The text was updated successfully, but these errors were encountered: