-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue 503 --- pspm_sf relevant functions #502
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is one question; I also left this question in the other pull request.
Apparently all changes were already commited with another merge request. Can the request be closed? |
Yes I will do now. |
Introduction
Issue #486: Users reported an issue when loading data and running SF analysis.
This pull request attempts to fix the issue #503 for
pspm_sf
and its relevant functions. Users have reported thatpspm_sf
will report errors when processing data whosetime_unit
is defined asmarker
. A series of issues are also discovered and marked during investigating this issue. The results are function-specifically listed below for discussing.Method
pspm_sf
should be updated in line with the last update, i.e.pspm_sf_dcm
should acceptmodel
andoptions
.Results
GUI
SF model
should allowmissing epochs
as an optional field. Now it looks like below.In this window,
missing epochs
is an optional field to add. Users can add missing epochs if they need and ignore missing epochs as default if they do not need to. This part is done by updating the functionspspm_cfg_sf
andpspm_cfg_run_sf
.src/pspm_cfg/pspm_cfg_run_sf.m
src/pspm_cfg/pspm_cfg_sf.m
marker_chan_num
is set to1
.src/pspm_options.m
-- Line 582:
int
should include 0 as some values need to include 0 as an acceptable value. Further refinement can be done for some parameters by adding more field checking code in the corresponding functions.src/pspm_overwrite.m
pspm_overwrite
is not expected to be a void function.src/pspm_sf.m
iSn
is replaced byiFile
as it denotes the number of datafile..overwrite
in the code.options.marker_chan_num
has been updated.model.datafile
is now loaded from the corresponding sessioniFile
events
will be loaded based on the loadedndata
.epochs
has been updated to the correspondingiFile
session.src/pspm_sf_auc.m
pspm_sf_auc
should be in line withpspm_sf_dcm
in terms of its input.src/pspm_sf_mp.m
pspm_sf_mp
should be in line withpspm_sf_dcm
in terms of its input.a
,asp
andind
have been set up.src/pspm_sf_scl.m
pspm_sf_scl
should be in line withpspm_sf_dcm
in terms of its input.