AddDataSeries
- should ONLY be called during State.Configure.
- should include the AddDataSeries calls any hosted scripts will require.
- should be hardcoded and NOT dependent on run-time variables which cannot be reliably obtained during State.Configure (e.g. Instrument).
Instrument
- should NOT be accessed before State.DataLoaded
Given the above, where a script requires Instrument.FullName to determine which DataSeries to add, how have people approached this? Is the approach complicated when a script hosts other scripts.
Is a potential solution to add a selection of alternate DataSeries (hardcoded) and remove any DataSeries superfluous to requirements during State.DataLoaded
(when Instrument.FullName is known)? How would you remove superfluous DataSeries?
Thanks
Shannon
Comment