ResearchOS / Biomech-Analysis-Platform-MATLAB

A GUI-based operating system framework to facilitate biomechanical data analysis. This platform attempts to manage the non-scientific part of coding without restricting the direction or method of scientific analysis.
MIT License
4 stars 0 forks source link

Better manage switching between logsheets for SpecifyTrials #98

Open mtillman14 opened 2 years ago

mtillman14 commented 2 years ago

Currently, opening the same SpecifyTrials that is based off of a different logsheet messes everything up. I think maybe the best way to handle changing logsheets (that likely have different column names) is to programmatically comment out the now irrelevant columns in the specify trials .m file, and then add the new columns in.

Then, if I want to switch back to the previous logsheet, it will do the same in reverse (uncommenting the now relevant columns in the .m file, and commenting the recently added columns' metadata.

Basically, SpecifyTrials is only reading from the .m file, when it should be writing to it if the logsheet has changed.

mtillman14 commented 2 years ago

Right now, the workaround is to completely recreate (with GUI) or manually edit the .m specify trials file when switching logsheets. Not great!

mtillman14 commented 2 years ago

I believe the settings should be logsheet-specific now, but only within each project because that is stored in the NonFcnSettingsStruct.