Repository navigation
MRG+1: plot_trans: add MRI fiducials - #3999
Conversation
|
For testing purposes you can just make up a file, right? Use |
|
I think the color is fine. But we should probably try to get in #3991, it already unifies some of these bits of code |
Codecov Report
@@ Coverage Diff @@
## master #3999 +/- ##
==========================================
- Coverage 86.12% 86.04% -0.09%
==========================================
Files 349 349
Lines 62809 62850 +41
Branches 9592 9605 +13
==========================================
- Hits 54097 54081 -16
- Misses 6030 6088 +58
+ Partials 2682 2681 -1Continue to review full report at Codecov.
|
|
Should be ready for rebase now |
|
if @Eric89GXL and Cis are happy I am happy. |
|
|
||
| head_alpha = 1. | ||
| if mri_fiducials: | ||
| from ..coreg import _fiducial_coords # avoid circular import |
There was a problem hiding this comment.
to avoid the circularity, put the helper in here instead
|
@Eric89GXL HPI-color is missing from defaults, is there no previous default? |
|
I didn't transcribe all of them. It looks like it is |
|
that does not seem ideal because it’s the same as the nasion color… do you think we can change it?
… On Feb 20, 2017, at 12:18 PM, Eric Larson ***@***.***> wrote:
I didn't transcribe all of them. It looks like it is (0., 1., 0.).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#3999 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAI5a3rBr5mT078gN0NVuvqENvoVbk36ks5recr1gaJpZM4MDkq8>.
|
|
Yeah I think it's okay |
b4be87d to
bf071f8
Compare
We do use these for sources in source space. But maybe that's okay.
No :( |
|
This is where head alpha comes from: Should I just substitute 1 if len(skull) is 0? |
|
I think the value of |
10dd28a to
aff0e68
Compare
|
I find the doubled yellow a bit distracting. Cyan or magenta are fine by me |
| defaults['extra_scale'], defaults['ecog_scale']] | ||
| for kind, loc in (('dig', car_loc), ('mri', fid_loc)): | ||
| if len(loc) > 0: | ||
| datas.extend(loc[np.newaxis, i, :] for i in range(3)) |
There was a problem hiding this comment.
This is the same as datas.exend(loc[:, np.newaxis])
13a9b27 to
0533320
Compare
|
LGTM, +1 for merge @agramfort or @jaeilepp any opinion? |
| If True, plot the digitization points. | ||
| dig : bool | 'fiducials' | ||
| If True, plot the digitization points. "fiducials" to plot fiducial | ||
| points only. |
There was a problem hiding this comment.
"fiducials" to plot fiducial points only.
->
Use "mri_fiducials" to plot fiducial points only.
There was a problem hiding this comment.
I think it would be Use "fiducials" to ... since fiducials are separate from mri_fiducials
|
arfff ok. +1 for MRG then
|
|
@jaeilepp want to look? If you don't have enough time then we have enough +1 for merge |
| from numpy import dot | ||
|
|
||
| from .io import read_fiducials, write_fiducials | ||
| from .io.constants import FIFF |
There was a problem hiding this comment.
This needs to be removed.
|
I killed Travis because it's been waiting 3 hours for an OSX CI, but we should be okay. Thanks @christianbrodbeck |





@Eric89GXL first component of #3466
I made them smaller but same color as head fiducials to indicate the correspondence, do you think that works? Maybe slightly bigger?
The testing data has no fiducials file, if we would add one (should be very small) we could add a test...