Instrument() does not take dictionaries as input for the glitches keyword
Current behaviour:
Instrument(...,glitches=...,....) accepts only a string (interpreted as a filename) or None
as input:
if isinstance(glitches, str):
...
elif glitches is None:
...
else:
raise ValueError(f"invalid value '{glitches}' for glitches")
Expected behaviour:
Accept also:
- a pre-read HDF file:
<HDF5 file "..." (mode r)>
- pre-filled dictionary with keys as in lisaglitch.INJECTION_POINTS and
-
either values of length
len(physics_t)
-
or a callable which can be called at all points of
physics_t
-
either values of length