question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ENH: explicit test for Freesurfer & MNE environment variables?

See original GitHub issue

I regularly encounter people who run into highly non explicit subprocess.call() errors due to inexistent environment variable and source (FREESURFER_HOME, 'MNE_ROOT`) or missing Freesurfer licence.

Today, the error was due to the fact that Spyder didn’t have the same env variable as the terminal.

In any case, I think it’d be very helpful if we had a little function that checks i) whether the necessary env variables are present and ii) whether they point to a real path, and throw an error otherwise.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
jasmainakcommented, Feb 4, 2016

I remember it took me a while to figure out what ENH stood for 😉

0reactions
larsonercommented, Apr 4, 2018

I think we have better checks now, feel free to reopen if they are still insufficient

Read more comments on GitHub >

github_iconTop Results From Across the Web

FreeSurfer MRI reconstruction — MNE 1.2.2 documentation
This tutorial covers how to use FreeSurfer alongside MNE-Python, ... First is to define an environment variable FREESURFER_HOME and then run ...
Read more >
A Reproducible MEG/EEG Group Study With the MNE Software
This procedure, called morphing by the MNE software, exploits the FreeSurfer spherical coordinate system defined for each hemisphere (Dale et al ...
Read more >
Group analysis in MNE-Python of evoked - NatMEG
MEG, analysis pipeline, MNE-Python, minimum norm estimate (MNE), ... The experiment was approved by the local ethics committee, ...
Read more >
Group Analysis in MNE-Python of Evoked Responses from a ...
Keywords: MEG, analysis pipeline, MNE-Python, minimum norm estimate (MNE), ... To test experimental factors, one can create contrasting conditions to single ...
Read more >
MNE software User`s Guide - Martinos Center for Biomedical ...
Check the validity of a FreeSurfer surface file. This program simply checks for ... The environment variables relevant to the MNE software are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found