The Browser's "Delete Data File" action only removes the first data file #1078
Labels
automation
Procedures, Experiment, and other automated things
discussion-needed
A solution still needs to be determined
GUI
When supplying multiple file names to a
Results
instance and running the experiment with aManagedWindow
, all files are created and filled with the same data. When right-clicking the corresponding browser entry after the experiment finished and selecting the "Delete Data File" action, only the very first data file gets deleted. The other data files remain. Is this an intended behaviour (since the action not in plural and only one file name is shown)?The reason is, that
ManagedWindowBase.delete_experiment_data
unlinksexperiment.data_filename
and does not loop overexperiment.data_filenames
.Code of `ManagedWindowBase.delete_experiment_data`
pymeasure/pymeasure/display/windows/managed_window.py
Lines 365 to 373 in 1c8d1b2
MWE for testing
The text was updated successfully, but these errors were encountered: