Skip to content

fix for periodic flash of None or string None#317

Merged
neuromusic merged 3 commits intomasterfrom
fix/periodic_flash_str_none
Jul 26, 2018
Merged

fix for periodic flash of None or string None#317
neuromusic merged 3 commits intomasterfrom
fix/periodic_flash_str_none

Conversation

@ryyesterday
Copy link
Copy Markdown
Contributor

Similar to my last PR #287 which I think never made it to master, this handles the case where periodic_flash == None or 'None'.

@ryyesterday
Copy link
Copy Markdown
Contributor Author

ryyesterday commented Jul 26, 2018

BTW, an example of a pkl file with string 'None' (odd, right?) is \allen\programs\braintv\production\visualbehavior\prod0\specimen_710324788\behavior_session_724789868\180725134723_397142_5af71be7-559c-4a65-bd31-759052d584e1.pkl

@neuromusic
Copy link
Copy Markdown
Contributor

This is due to a bad parameter in old sessions.

I'm happy to prevent it from crashing, but I don't think we should explicitly support the string "None" as a valid value

@ryyesterday
Copy link
Copy Markdown
Contributor Author

Yeah, it's certainly odd to have a string None. The example I listed was from a session run yesterday, however.

@neuromusic neuromusic merged commit 150a0e4 into master Jul 26, 2018
@neuromusic neuromusic deleted the fix/periodic_flash_str_none branch July 26, 2018 18:51
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.

2 participants