Skip to content

Commit

Permalink
Added ability to invert noise regressor
Browse files Browse the repository at this point in the history
  • Loading branch information
bbfrederick committed Oct 31, 2023
1 parent af081e1 commit 6598d3c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions rapidtide/workflows/rapidtide.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,8 @@ def rapidtide_main(argparsingfunc):
dummy,
dummy,
) = tide_io.readvectorsfromtextfile(optiondict["noisetimecoursespec"], onecol=True)
if optiondict["noiseinvert"]:
noisevec *= -1.0
noisefreq = optiondict["noisefreq"]
noisestarttime = optiondict["noisestarttime"]
if noisefreq is None:
Expand Down
9 changes: 8 additions & 1 deletion rapidtide/workflows/rapidtide_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1189,6 +1189,7 @@ def _get_parser():
help=("Attempt to detect and remove respiratory signal that strays into " "the LFO band."),
default=False,
)

experimental.add_argument(
"--noisetimecourse",
dest="noisetimecoursespec",
Expand Down Expand Up @@ -1229,7 +1230,6 @@ def _get_parser():
),
default="auto",
)

experimental.add_argument(
"--noisestart",
dest="noisestarttime",
Expand All @@ -1243,6 +1243,13 @@ def _get_parser():
),
default=0.0,
)
experimental.add_argument(
"--noiseinvert",
dest="noiseinvert",
action="store_true",
help=("Invert noise regressor prior to alignment."),
default=False,
)

experimental.add_argument(
"--acfix",
Expand Down

0 comments on commit 6598d3c

Please sign in to comment.