Skip to content
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

Trigger pictures improvement #153

Merged
merged 32 commits into from
Mar 17, 2020
Merged

Trigger pictures improvement #153

merged 32 commits into from
Mar 17, 2020

Conversation

vinferrer
Copy link
Collaborator

Closes #15

Proposed Changes

  • title shows tvs filename
  • second plot in second row is plotted based on the index of the last point that exceeds the treshold
  • add a third subplot in the second row, that shows the last trigger
  • rescale differently the Y axis in the first row, maybe the higher between twice the max value in the trigger array and three times the threshold?

@vinferrer vinferrer requested a review from smoia February 28, 2020 13:48
@codecov
Copy link

codecov bot commented Feb 28, 2020

Codecov Report

Merging #153 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #153   +/-   ##
=======================================
  Coverage   94.15%   94.15%           
=======================================
  Files           7        7           
  Lines         565      565           
=======================================
  Hits          532      532           
  Misses         33       33           

@vinferrer
Copy link
Collaborator Author

image
plot as it is right now

@vinferrer
Copy link
Collaborator Author

image
Current state of the plot

@vinferrer
Copy link
Collaborator Author

vinferrer commented Mar 6, 2020

@smoia this is how the plot looks like now if you put the wrong threshold:
image

@vinferrer
Copy link
Collaborator Author

If you put it right:
image

@vinferrer
Copy link
Collaborator Author

this is for the Test_belt_multifreq.txt

@vinferrer
Copy link
Collaborator Author

However for the plots to be correct you have to input more parameters, look what happens for file
Test2_time_trigger_CO2_O2_pulse_1000Hz_534TRs:
image

@vinferrer
Copy link
Collaborator Author

The threshold is fine but nevertheless the second plots are wrong, I don't know if this could confuse the user

@smoia
Copy link
Member

smoia commented Mar 6, 2020

Can you present it during the meeting next week? We can ask feedbacks then!

@vinferrer
Copy link
Collaborator Author

Sure

@smoia
Copy link
Member

smoia commented Mar 13, 2020

@vinferrer good! You might also want to change the description of the picture in this file:
https://github.com/physiopy/phys2bids/blob/master/docs/howto.rst

@smoia
Copy link
Member

smoia commented Mar 13, 2020

@RayStick , can I ask you to have a look at the changes in the documentation once it's ready?

@vinferrer
Copy link
Collaborator Author

Sure, so we still have to make the creation of the file only when -tr or -ntp are inputed and then, change the docs

@vinferrer
Copy link
Collaborator Author

but wait, default tr is 1. ¿could that be problematic? my idea was that if the values are not the default then plot

@eurunuela
Copy link
Collaborator

Is the default TR used somewhere else in the code?

phys2bids/phys2bids.py Outdated Show resolved Hide resolved
@RayStick
Copy link
Member

@smoia yep! But it may be Sunday or Monday that I can review

Copy link
Collaborator

@eurunuela eurunuela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that the default TR = 0, this looks good to me!

@vinferrer
Copy link
Collaborator Author

changes to docfile done, you can start the review

@vinferrer vinferrer marked this pull request as ready for review March 15, 2020 11:01
@vinferrer
Copy link
Collaborator Author

@RayStick, @smoia

Copy link
Member

@RayStick RayStick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. I tested it with the tutorial file, with a few different argument iterations, and seems to work as intended.

Apart from the minor in-line comments I gave, just one other thing -

I really like the addition of the TR x-axes at the top of the plots. However, I didn't see it at first! Is there a way to make it stand out a bit more?

phys2bids/phys2bids.py Outdated Show resolved Hide resolved
docs/howto.rst Outdated Show resolved Hide resolved
phys2bids/viz.py Outdated Show resolved Hide resolved
phys2bids/viz.py Outdated Show resolved Hide resolved
@vinferrer vinferrer requested a review from RayStick March 17, 2020 13:59
@vinferrer
Copy link
Collaborator Author

@RayStick Changes done, you can check them and if there is no more changes, approve the request.

Cheers

@vinferrer vinferrer merged commit 0655403 into physiopy:master Mar 17, 2020
@vinferrer vinferrer deleted the trig_pic branch March 17, 2020 15:26
This was referenced Mar 26, 2020
@smoia smoia added Enhancement New feature or request Minormod This PR generally closes an `Enhancement` issue. It increments the minor version (0.+1.0) labels Mar 27, 2020
@smoia smoia added the released This issue/pull request has been released. label Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Minormod This PR generally closes an `Enhancement` issue. It increments the minor version (0.+1.0) released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improving trigger pictures.
4 participants