Skip to content

mne.viz.plot_trans failed #4206

Closed
Closed

Description

@romquentin

Hi mne-python experts

I have an issue running:

plot_trans(epochs.info, trans=None, subject=freesurf_subject, dig=True, meg_sensors=True, subjects_dir=subjects_dir, brain=True)

it gives me this error:

/Applications/anaconda/lib/python2.7/site-packages/mne-python/mne/viz/3d.pyc in fiducial_coords(points, coord_frame)
52 points
= dict((p['ident'], p) for p in points if
53 p['kind'] == FIFF.FIFFV_POINT_CARDINAL)
---> 54 return np.array([points
[i]['r'] for i in FIDUCIAL_ORDER])
55
56

KeyError: 1

I am running on macOS X El capitan and with mne.0.15dev.
The error seems to be not present on mne.0.13stable.

Thank you

Romain

Activity

  1. larsoner commented on Apr 18, 2017

    @larsoner
    Member

    We should add a check for this.

    But you have strange data -- you have digitization points but no fiducials?

  2. romquentin commented on Apr 18, 2017

    @romquentin
    Author

    I have 3 digitization points corresponding to the fiducials in surface_MRI coordinate system.

  3. larsoner commented on Apr 18, 2017

    @larsoner
    Member

    Ahh yes, this problem again :) Okay we can make plot_trans work in the short term and make it actually plot those properly in the long term.

  4. added this to the 0.15 milestone on Apr 18, 2017
  5. romquentin commented on Apr 18, 2017

    @romquentin
    Author

    Yes :)
    Ok. Thank you!

  6. larsoner commented on Apr 18, 2017

    @larsoner
    Member

    Can you try #4069 to see if it fixes your problem?

  7. romquentin commented on Apr 18, 2017

    @romquentin
    Author

    It fixed it! Thank you!

  8. larsoner commented on Apr 20, 2017

    @larsoner
    Member

    Should be fixed in master now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions