Open jservonnat opened 2 months ago
Changing a default behaviour always is risky for users, and would imply warning them by changing the major version number (because of backward compatibility break)
Further, function ds was intended to be a light-weight one, without systematic access to datafiles; it is also the support for methods 'explore', 'light_check', 'glob', which allow to report on existing and missing datafiles
A way forward could be to introduce a global logical variable that would trigger the requested behaviour, but letting each user set it for activating this behaviour
Up to now (if I'm correct), ds() returns a dataset even if the baseFiles() do not cover the requested period. In my case it has been the source of some errors, and I'm sure it impacted other users.
Two options to deal with this behavior:
Both methods return True if the period is covered by the files, and False if not the case.
Example:
Should we switch the default behavior of ds to returning an error (or at least a warning) when the period is not covered by the files?