Skip to content

fixed 'reference before assignment error' which occurs - #96

Merged
agramfort merged 2 commits into
mne-tools:masterfrom
dengemann:fix_ctf
Sep 18, 2012
Merged

agramfort merged 2 commits into
mne-tools:masterfrom
dengemann:fix_ctf

Conversation

@dengemann

Copy link
Copy Markdown
Member

as the user tries to read in already compensated data
from ctf or 4D.

The fix may be a bit nasty, but also this issue is...
Wdyt?

as the user tries to read in already compensated data
from ctf or 4D.
Comment thread mne/fiff/ctf.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'd prefet an row_cals + col_cals init to None and then

if row_cals is not None:
   del row_cals
if col_cals is not None:
   del col_cals

@dengemann

Copy link
Copy Markdown
Member Author

The other question is why the ctf.py is used. Shouldn't this be specific to ctf data? Or is this just a naming convention..?

@agramfort

Copy link
Copy Markdown
Member

The other question is why the ctf.py is used. Shouldn't this be specific to ctf data? Or is this just a naming convention..?

I guess it should. Feel free to investigate if it can be avoided.

@mshamalainen

Copy link
Copy Markdown
Member

On Sep 13, 2012, at 7:57 AM, Alexandre Gramfort wrote:

The other question is why the ctf.py is used. Shouldn't this be specific to ctf data? Or is this just a naming convention..?

I guess it should. Feel free to investigate if it can be avoided.

The same compensation stuff applies to the 4D data as well if everything is properly defined in the fif file.

  • Matti

The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

@dengemann

Copy link
Copy Markdown
Member Author

Ok, good to know.

2012/9/13 mshamalainen [email protected]

On Sep 13, 2012, at 7:57 AM, Alexandre Gramfort wrote:

The other question is why the ctf.py is used. Shouldn't this be
specific to ctf data? Or is this just a naming convention..?

I guess it should. Feel free to investigate if it can be avoided.

The same compensation stuff applies to the 4D data as well if everything
is properly defined in the fif file.

  • Matti

The information in this e-mail is intended only for the person to whom it
is
addressed. If you believe this e-mail was sent to you in error and the
e-mail
contains patient information, please contact the Partners Compliance
HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in
error
but does not contain patient information, please contact the sender and
properly
dispose of the e-mail.

—
Reply to this email directly or view it on GitHubhttps://github.com//pull/96#issuecomment-8525999.

@agramfort

Copy link
Copy Markdown
Member

Thx Matti

@dengemann

Copy link
Copy Markdown
Member Author

...so this probably means we can leave it like that.

@dengemann

Copy link
Copy Markdown
Member Author

So is anything missing here? Do we need more for a merge?

agramfort added a commit that referenced this pull request Sep 18, 2012
fixed 'reference before assignment error' which occurs
@agramfort
agramfort merged commit b00d0f8 into mne-tools:master Sep 18, 2012
@agramfort

Copy link
Copy Markdown
Member

merged thanks !

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants