oss-slu / Mouser

GNU General Public License v3.0
1 stars 7 forks source link

Followup Enchancements to #224 #236

Closed moshernoah closed 1 month ago

moshernoah commented 1 month ago

Fixes #224

What was changed?

Comments were left on the other branch implementing fixes for issue #224 that are addressed here. Now, the user can select a folder location the same as if they were saving a file during experiment creation before exporting all saved data to .csv format.

Why was it changed?

This was changed as there were concerns moving forward about having the project save files to an internal folder that may not exist when the .exe changes are complete. This allows for portability with the data after it is no longer being launched from the command line.

How was it changed?

The user is prompted within the data_analysis_ui.py file to select where they would like the exported data to be saved. Inside the experiment_database.py file the export_data_to_csv method has been edited to require a selected folder as an input argument. Should the user exit out of the folder selection method, the function is returned and the program continues to function as if the button was never pressed. If a folder was selected, it will create a subfolder holding the name of the experiment, with all exported files within it.