Closed dbenn closed 5 months ago
The initial request for multiple file loading via the Kepler/TESS (and because of common obs retriever code: QLP and Lightkurve) plugin has been implemented, in addition to the general mechanism by which to enable this in other obs source plugins in future. There may not be time to do more of these before the next release.
As the last few commits shows, there's some subtlety in the way multiple file selection in the file chooser has to be set depending upon whether the plugin is selected from a list in the File menu vs file chooser and whether the selection there has changed.
I'm sure there will be the opportunity for further improvements to the approach in future, but it appears to be OK for now.
I was recently asked via email by Santana Basu whether it is possible to load multiple Kepler/TESS FITS files.
It is currently not. It should be possible for N files to be loaded as if they were one, assuming they are all of the same type. Otherwise, not since we currently require the user to select the observation source type.
The same is true for any observation source where files are loaded.
It is however also true that unless an observation source plugin is explicitly modified to handle multiple files (streams, by the time the plugin sees them), only the first selected file will be handled.
The core code in
NewStarFromObSourcePluginTask
andAdditiveLoadFileOrUrlChooser
will need to be modified to permit multiple files to be selected, returned, and made available to the plugin.