Tags: BUNPC/Homer3
Tags
Merge branch 'development', v1.87.0 -- Fix bug saving wrong format indicating what folder format is associated with saved dataset. This leads to not finding ANY data files when reloading dataset next time Homer is launched. To reproduce comment out the fix and add ONE "error" snirf file (such as probe.snirf) which will not be loaded AND are in a different folder format than the valid dataset. Exit Homer and restart it. Homer will not find ANY data files when relaunching.
Merge development into master Date: 5/11/2023 3:06:37 PM v1.79.3 -- Add more standalone startup function to setpaths.m to be able to independent of any startup code search paths except current folder -- Chnage default value of config param Load Stim From TSV File from no to yes. * DataTree, v1.14.2 -- Fix events TSV file naming bug. Add TSV file name method TreeNode.GetStimTsvFilename() to use for all events TSV file naming. -- Fixes to setpaths for running DataTree standalone * Utils, v1.6.0 -- Fix some bugs in events TSV stim loading error handling. Add config param "Replace TSV File Tabs with Spaces" to handle events TSV errors when file is a mix of spaces and tabs. -- Add method ConfigFileClass.GetValueOptions for getting all available value options for a param. Date: 5/10/2023 10:52:19 AM v1.79.1 -- Fix Homer3 displaying probe in 3D rather than 2D. (#177) * DataTree, v1.14.0 -- Fix Homer3 displaying probe in 3D rather than 2D. Back out changes that default to 3D in ProbeClass and NirsClass GetSrcPos and GetDetPos for ALL cases. The way it's supposed to work is probe is supposed to use 2D coordinates ONLY when being displayed in Homer3. Rest of the time default to 3D if it exists. Reason for original change is misunderstanding of what the purpose of 2D coord was which is ONLY for display * Utils, v1.5.1 -- Add ability to simulate full dataset (generateSimData.m, simulateDataTimeSeries.m) to be able to eventually do workflow unit and system tests Date: 5/3/2023 12:38:30 PM v1.78.1 -- Fix error when displaying data, remove unnecessary call to get file descriptor: obj.fid = HDF5_GetFileDescriptor(fileobj); (#174) Date: 5/3/2023 10:52:24 AM -- Forgot to include HDF5_GetFileDescriptor.m in v1.78.0 commit. (#173) Date: 5/3/2023 10:13:49 AM v1.78.0 -- Improve saving performance of SNIRF files by using low level HDF5 library. (#172) * DataTree, v1.13.0 -- Comprehensive solution to improving the save performance of SNIRF files by using low-level HDF5 calls and limiting the number of HDF5 open and create calls that are made for file, group and dataset. Date: 4/14/2023 1:59:38 AM 1.77.0 -- Fix stim events TSV issue with conditions names with spaces - we should be able to handle that. (#170) Utils, v1.5.0 -- Fix stim events TSV issue with conditions names with spaces - we should be able to handle that. Change rule to handle spaces and how error reporting is done in readTsv. DataTree, v1.12.1 -- Don't load events TSV files twice - once in SnirfClass and once in AcqDataClass its superclass. Date: 4/11/2023 2:49:33 PM -- Sync setpaths in DataTree with DataTree library
v1.76.0 - Merge squashed commit from development branch of the follow… …ing: commit 1680519 Author: jayd1860 <[email protected]> Date: Tue Apr 11 14:49:33 2023 -0400 -- Sync setpaths in DataTree with DataTree library commit 0f5428e Author: jayd1860 <[email protected]> Date: Tue Apr 4 16:30:29 2023 -0400 v1.76.0 -- Update DataTree shared lib submodule (#168) * v1.75.4 * DataTree, v1.11.1 -- Fix error when loading some probes in NirsClass check that NirsClass.GetChannelsMeanDistance() is error checking size of SrcPos3D and DetPos3D against meas list indices. * Utils, v1.4.4 -- Change font size in MenuBox. -- Adjust button width to slightly wider. * v1.75.5 -- Fix font size for MAC for MenuBox.m and configSettingsGUI.m * v1.75.6 -- Utils, 1.4.6 -- Tweak size of MenuBox text gap. * v1.76.0 -- Update DataTree shared lib submodule * DataTree, 1.12.0 -- Change AcqDataClass GetSrcPos and GetDetPos methods to ignore '2D' and instead automatically try to retrieve 3D optodes if available otherwise it retrieves 2D. This fixes the problem of retrieving non existent or artificially generated 2D optodes that do not agree with the 'LengthUnit' which is a problem when doing image reconstruction and using a non-zero SD separation to exclude channels (possibbly end up exluding ALL chaqnnels if units apply to the wrong optodes). -- Update NirsClass so SDgui matches GrommetRot being changed back to cell array type instead of numeric array. commit 4974adb Author: Meryem Ayşe Yücel <[email protected]> Date: Mon Apr 3 12:02:43 2023 -0400 Dev may2 (#167) * Update ar_fit.m Fixing bug in filename stepwise->stepwisefit, and the relevant extracted output. * Update ar_glm_final.m Reducing the number of max iterations to 10 for the sake of computational time. * Update ar_glm_final.m fix Pmax 10->100 * AR p order Order was hardcoded, changed it be 2 X sampling frequency. commit d0fac4b Author: jayd1860 <[email protected]> Date: Thu Mar 23 02:10:45 2023 -0400 v1.75.6 -- Fix font size in MenuBox on MAC (#166) * v1.75.4 * DataTree, v1.11.1 -- Fix error when loading some probes in NirsClass check that NirsClass.GetChannelsMeanDistance() is error checking size of SrcPos3D and DetPos3D against meas list indices. * Utils, v1.4.4 -- Change font size in MenuBox. -- Adjust button width to slightly wider. * v1.75.5 -- Fix font size for MAC for MenuBox.m and configSettingsGUI.m * v1.75.6 -- Utils, 1.4.6 -- Tweak size of MenuBox text gap. commit f583645 Author: jayd1860 <[email protected]> Date: Tue Mar 21 21:52:42 2023 -0400 v1.75.3 -- Fix issue with setpaths error on MAC when setting file persmissions and logging it global logger not declared. -- Clean up addremove argument to setpaths and add option (addremove=2) to exclusively load only the current repo while excluding search paths for all other similar repos commit d2c3873 Author: jayd1860 <[email protected]> Date: Tue Mar 21 15:31:33 2023 -0400 v1.75.2 -- Sync with shared libraries (submodules). * DataTree, v1.11.0 -- Change NirsClass.ProbeEqual() to consider measurement lists in different orders but same set of SD pairs to be equal. SO SDgui doesn't think edits were made when they weren't. -- Add NirsClass.GetChannelsMeanDistance() method same as in SnirfClass * Utils, v1.4.2 -- Make another tweak in MenuBox - character size doesn't quite equal character units so we compensate by multiplying by scaling factor for button width and height. * Utils, v1.4.1 -- Fix some size and position issues with radiobutton style MenuBox. Another attempt to simplify size and position calculations. commit a44aeed Author: sreekanthkura7 <[email protected]> Date: Tue Mar 21 14:25:14 2023 -0400 Add plotProbe2 display commit 27a642e Author: jayd1860 <[email protected]> Date: Sat Mar 18 00:49:19 2023 -0400 Fix SpatialUnit scaling in SD NirsClass (#165) * v1.75.0 -- In syncSubmodules.m add option to ignore last revision dates of the parent repo and submodules and instead force the direction of copying changes from parent repo to submodules ('parent2submodules') or submodules to parent repo ('submodules2parent'). * DataTree, v1.9.0, v1.8.3 -- Fix wrong probe scaling converting units in SnirfClass.ProbeClass and NirsClass -- Add m (meter) to SpatialUnits NirsClass add appropriate scaling. When changing units in SDgui ask iof fixing incorrect units or simply changing units and associated coordinates. * Utils, v1.4.0, v1.3.5 -- Remove non-class method convert_optodepos_to_circlular_2D_pos.m from ProbeClass to Utils. -- Add missing function pretty_print_struct.m used in DataTree to Utils library -- Fix bug in last commit having to do with the MenuBox radiobutton dialog selction of spatial unit change: either a) correcting them and changing units ONLY or b) changing units and coordinates. -- Add radiobutton selection style option to MenuBox.m -- Fix some issues with MenuBox.m including issue with MenuBox disappearing outside of screen when run standalone with no parent GUI. * v1.75.1 -- DataTree, v1.10.0, Fix error in probe registration loading SD file where anchor points are not copied correctly. commit 4544f60 Author: jayd1860 <[email protected]> Date: Wed Mar 8 13:23:12 2023 -0500 v1.74.3 -- Sync with latest shared libraries * DataTree, v1.8.1 -- Fix error when trying to retrieve ppf param during image recon because dataTree.currElem.procStream.fcalls being empty. This is because of using GroupClass.CompareVersions caused procstream fcalls from groupResults not to load (it was deemed too old) which is clearly not what we want. Removed for now the comparison (CompareVersions for now always returns 0) until we can figure out best way to handle old versions of groupResults. -- Provide ProbeClass.GetScaleFactor() method to retrieve private scaling field -- In ExportProcStreamDependencies get rid of the *_Library_Version suffix next to each library name in the JSON output * FuncRegistry, v1.2.2 -- Fix issue with converting mlACt vector to 2D array with mlAct_Initialize.m during image recon. * Utils, v1.3.2 -- Add ability to versionstr2num to process version arguments in the form of 3 numbers rather than a string for backward compatability with DataTree GroupClass to get old style version. commit 104e17c Author: jayd1860 <[email protected]> Date: Tue Mar 7 11:53:01 2023 -0500 v1.74.1 -- Fix Logger.Write issue when getting cell array of strings input. -- Remove redundant copy of jsonlab library which has been moved to Utils shared library files from jsonlab library. -- Utils, v1.3.1: Remove unnecessary files from jsonlab library. License looks like it allows modification as long as you include the license itself in the distribution. -- FuncRegistry, v1.2.1: Update version number after Meryem's changes to ar_glm_final.m. commit 349a96d Author: jayd1860 <[email protected]> Date: Sun Mar 5 14:41:52 2023 -0500 v1.74.0 -- Move updateVersions and supporting function out of Utils/submodules to Utils/Shared in DataTree standalone mode to update repo versions. -- Move JSON library from Utils to Utils/Shared for use in DataTree standalone mode to write JSON files when expoerting proc stream. * DataTree, v1.8.0 -- Fix issue of DataTree in standalone mode not getting the right value for config parameter "Export Processing Stream Functions". -- Remove reliance on static method TreeNodeClass.ExportProcStreamFunctions to get value of config parameter which tells you if code should export processing stream. Instead switch to getting the value directly from the ConfigFileClass global variable cfg which is automatically updated when changes are made to any config parameters through the configSettingsGUI. * Utils, v1.3.0 -- Add JSON library so that export of procesaswing stream to JSON files can work in DataTree in standalone mode. -- Add repoManagement/updateVersions.m and supporting function so that use can use the script to update versions in DataTree in standalone mode. -- When saving config parameters in configSettingsGUI update global ConfigFileClass variable cfg so that DataTree in standalone mode has immediate access to changes in config params without having to rerun dataTree. commit d86615d Author: Meryem Ayşe Yücel <[email protected]> Date: Sun Mar 5 14:35:03 2023 -0500 Dev may2 (#163) * Update ar_fit.m Fixing bug in filename stepwise->stepwisefit, and the relevant extracted output. * Update ar_glm_final.m Reducing the number of max iterations to 10 for the sake of computational time. * Update ar_glm_final.m fix Pmax 10->100 * AR p order Order was hardcoded, changed it be 2 X sampling frequency. --------- Co-authored-by: jayd1860 <[email protected]> commit c3a2f13 Author: jayd1860 <[email protected]> Date: Sat Mar 4 23:04:36 2023 -0500 v1.73.1 -- Fix issue where you get error in getVernum.m when namespace isn't set. commit 222f6e0 Author: jayd1860 <[email protected]> Date: Sat Mar 4 00:57:24 2023 -0500 v1.73.0 -- Separate ApplicationName into ApplicationName and Version when exporting processing stream to JSON file. -- Change default for config parameter Export Processing Stream Functions from No to Yes. -- Add library version numbers to JSON file generated by export processing stream utility -- Add utility updateVersions.m to Utils/submodules to automatically generate new version numbers for main application and shared library depedencies -- Fix issue with copying probe in NirsClass.CopyProbe when concerting from .nirs to .snirf. Also use NirsClass constructor rather than load() to load .nirs data when converting from .nirs to .snirf. commit 16a3aae Merge: 9991e1d 40bb3ca Author: jayd1860 <[email protected]> Date: Fri Mar 3 00:46:55 2023 -0500 Merge branch 'master' into development commit 9991e1d Author: jayd1860 <[email protected]> Date: Fri Mar 3 00:28:17 2023 -0500 -- Update version numbers for DataTree and FuncRegistry after new fixes commit 592a42f Author: Meryem Ayşe Yücel <[email protected]> Date: Fri Mar 3 00:23:21 2023 -0500 Update ar_fit.m (#161) * Update ar_fit.m Fixing bug in filename stepwise->stepwisefit, and the relevant extracted output. * Update ar_glm_final.m Reducing the number of max iterations to 10 for the sake of computational time. commit a383a3f Author: jayd1860 <[email protected]> Date: Thu Mar 2 23:43:34 2023 -0500 v1.72.0 -- Fix error when exporting processing stream to JSON files because of bug in extracting mlActMan - since it is no longer a vector but a 2D array of sd pairs plus data type. commit bf948c0 Author: jayd1860 <[email protected]> Date: Tue Feb 28 23:28:38 2023 -0500 # Conflicts: # DataTree/AcquiredData/Nirs/NirsClass.m # DataTree/AcquiredData/Snirf/ProbeClass.m # DataTree/GroupClass.m # DataTree/Version.txt # FuncRegistry/UserFunctions/iWLS/ar_glm_final.m # FuncRegistry/Version.txt # Utils/Shared/Version.txt # Utils/Shared/versionstr2num.m # Version.txt
Development (#156) * v1.71.0 -- Add EditStim method to TreeNodeClass to allow editing of events TSV files for the processing element. -- Change menu option "Load Stim from TSV" to "Edit Stim TSV file", so that user doesn't have to go looking for the file in the dataset folder. * -- No need to display MenuBox message after opening events TSV file in editor.
Merge v1.70.1: Fix menu item "Load Stim from TSV" file. (#154) * v1.70.1 -- Fix menu item "Load Stim from TSV" file. -- Fix ProbeClass converting SD probe data to ProbeClass - instead of SD.refpts it should be SD.Landmarks * -- Sync with v1.1.1 Utils library: add some diagnostic data simulation scripts to Utils/Shared library which can add data time course to for instance probe.SD for testing AtlasViewer probe registration
v1.70.0 -- Fix hmrR_PCAFilter mlAct channel order issue; Provide Data… …Tree examples; Fix DataTree standalone issues. (#153) * Update on AR-GLM code (#148) * v1.59.0 -- Fix retrieving inactive channels in hmrR_PCAFilter.m using the new mlAct supporting user functions. -- Update design doc to document new loading and exporting of stim from and to BIDS events TSV files. * Make standalone DataTree work by supplying missing cell2str.m function to shared library * v1.60.0 -- Include startup functions in setpaths to be able initialize search paths for DataTree. -- Add examples folder with runProcessingStream.m on how to download and run processing stream in DataTree standalone. * v1.61.0 -- Add initialization script to run after downloading DataTree which downloads dependencies Utils and FuncRegistry and runs setpaths for ease of standalone operation -- Add submodules .gitmodules file to DataTree library to stream line process of downloading dependencies when running DataTree standalone -- Provide plotting method for TreeNodeClass elements to run from command line -- Fix typos in .gitmodules and add FuncRegistry as a third submodule/library that Homer3 uses -- Provide LoadRunPlotExamples.m example of how to use DataTree from scratch. -- Add missing description of input argument mlAct in hmrR_PCAFilter.m * v1.61.1 -- Fix typo in DataTree/.gitmodules FuncRegistry entry. This was fixed in the parent (Homer3) .gitmodules but not DataTree. -- In syncSubmodules.m add .gitmodules to the list of file types to search for when syncing parent and submodules * v1.62.0 -- Sync with changes in DataTree and Utils shared libraries: DataTree: 1. Rename LoadRunPlotExamples to LoadRunPlotExample1.m and LoadRunPlotExample2.m - LoadRunPlotExample1 uses TreeNodeClass methods to get access to data and time and plot them, while LoadRunPlotExample2.m does the same thing BUT accesses snirf objects directly without any methods and then plots them directly in the script to show user how snirf objects work. Add example data that goes with it Example4_twNI. 2. Add another example EditStimExample.m which shows how to export and edit stim and conditions. Add example data that goes with it SubjDataSample. 3. Fix bugs in StimClass methods for editing stims (adding, deleting, and changing condition of) based on an inclusive time points vector. 4. Fix run/plot examples and remove the download and initialization parts as that is unnecessary and does not quite makes sense since you have to first download the repo before accessing the LoadRunPlotExamples.m script. This part can simply be described in the comments. 5. Simplify initialization by moving downloading of submodules to setpaths and get rid of initialize.m Utils: 1. Add capability to readTsv.m to be able to load TSV file that is separated by spaces instead of tabs if it is can be clearly determined that spaces are separators (instead of say names of conditions). If spaces are detected then the file is written to correctly contain tab separators as is appropriate for the .tsv format. 2. Add namespace DataTreeClass to setGuiFonts.m so that fonts can be set in a figure when DataTree standalone is running 3. Return figure handle of MenuBox.m so that it can be repositioned after calling it * v1.64.0 -- Fix DataTree/setpaths not deleting other DataTree repos from path. -- Change TreeNodeClass.Plot method accept source/detector/datatype instead of single number index vector, and handle multiple plot figures. -- Reorganize and add documentation for TreeNodeClass plotting methods under separate methods section. -- Redo LoadRunPlotExample (rename from LoadRunPlotExample1.m and delete LoadRunPlotExample2.m) to display multiple plot figures. * Remove obsolete example - merge with bunpc missed this for some reason * v1.67.0 -- Sync with shared libraries Add version number files to libaries. Add common functions getVernum.m and parseGitSubmodulesFile.m which can exist as generic non startup Utils functions Add logging to setpaths to setpaths.log (instead of the previous SystemInfo.log) so its clear where the log file came from. Remove extra log files created unintentionally in DataTree like History.log Return missing support functions to downloadDependencies.m -- Add .csd files to list of files in syncSubmodules.m to sync with shared libraries * v1.68.0 -- Sync with DataTree v1.1.0 shared library : Add error checking to TreeNodeClass.Plot() method when there no data. Clean up zombie figure handles from TreeNodeClass.Plot() method so that handles don't accumulate indefinitely in obj.hFig as more plots are displayed. Return single number indices of plotted channels in TreeNodeClass.Plot() Minor change to LoadRunPlotExample1.m to name the function same as file * v1.69.0 -- Fix another exception in setpaths when removing path with setpaths(0), because Logger and printStack is no longer in path but is not empty. -- Update NirsClass.m to be able to at least load .nirs data setpaths.m -- Update archived user functions for .nirs dataset (hmrE_RunAvg_Nirs, hmrS_SessAvg, etc) for the new BIDS data structure (which has sessions) -- Simplify and clean up initial saving of group structure file groupResults.mat also saving the function call chain which did not get saved initially at time of Homer3 launch. Added initsaveflag to GroupClass and moved call to Save out of Load method and into the calling method DataTreeClass.LoadGroup() after proc stream initialization/copying has been completed and after SetConditions has been called. * -- Minor fix to setpaths logging plus added time stamp when setpaths completed. Sync with same fix in DataTree setpaths. * v1.70.0 -- Sync with shared libraries and AtlasViewer v1.24.0: Replace calls to matlab's built-in function menu() with Utils MenuBox() to fix strange issue with direct use of menu where it generates this error in R2017b and R2020b (and maybe other matlab versions): Error using matlab.ui.Figure/set Error setting property 'Position' of class 'Figure': Width and height must be greater than or equal to 0 Error in menu>local_GUImenu (line 239) set( menuFig, 'Position', [winLeftGap bottom winWide winHigh] ); Error in menu (line 51) k = local_GUImenu( xHeader, ArgsIn ); --------- Co-authored-by: Meryem Ayşe Yücel <[email protected]> Co-authored-by: Jay Dubb <[email protected]>
PreviousNext