Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EEG and Dipole Plot images do not load #696

Closed
SimaoBolota-MetaCell opened this issue Mar 3, 2023 · 8 comments
Closed

EEG and Dipole Plot images do not load #696

SimaoBolota-MetaCell opened this issue Mar 3, 2023 · 8 comments
Assignees
Labels
T: bug Something isn't working
Milestone

Comments

@SimaoBolota-MetaCell
Copy link
Contributor

Describe the bug
In the NetPyNE integration, Dipole plot and EEG plot images do not load

To Reproduce
Steps to reproduce the behavior:

  1. Go to the homepage
  2. Create a NetPyNE workspace
  3. open the workspace with NetPyNE
  4. On NetPyNE, load tutorial 1
  5. Go to Configuration > recording, and check the box for 'record dipole using lfpykit'
  6. Create and simulate network
  7. Click on the EEG and Dipole plots

Note that the EEG and Dipole Plots are images

Expected behavior
The EEG and Dipole Plots should be displayed as in NetPyNE
image

Screenshots

image

@SimaoBolota-MetaCell SimaoBolota-MetaCell added the T: bug Something isn't working label Mar 3, 2023
@filippomc filippomc self-assigned this Mar 14, 2023
filippomc added a commit that referenced this issue Mar 15, 2023
@filippomc
Copy link
Contributor

@pgleeson need to pull the lastest on your branch osbv2-dev.

What are the changes that you've put there? If just about dependencies we can achieve that on osb without using a separate branch, which would help keeping things up to date with the lates

@pgleeson
Copy link
Member

@filippomc Will look into that now...

@pgleeson
Copy link
Member

See #580 (comment). Best to use latest osbv2 branch

@filippomc
Copy link
Contributor

Get the following error currently with the release/1.0.0 branch of netpyne

---------------------------------------------------------------------------
StdinNotImplementedError                  Traceback (most recent call last)
~/netpyne/netpyne_ui/netpyne_geppetto.py in getPlot(self, plotName, LFPflavour, theme)
    885                 else:
--> 886                     fig_data = getattr(analysis, plotName)(**args)
    887                     if isinstance(fig_data, tuple):

/opt/conda/lib/python3.7/site-packages/netpyne/analysis/dipole.py in plotEEG(showCell, showPop, timeRange, dipole_location, dpi, figSize, showFig, saveFig)
     79 
---> 80     nyhead = NYHeadModel()
     81 

/opt/conda/lib/python3.7/site-packages/lfpykit/eegmegcalc.py in __init__(self, nyhead_file)
   1390 
-> 1391         self._load_head_model(nyhead_file)
   1392 

/opt/conda/lib/python3.7/site-packages/lfpykit/eegmegcalc.py in _load_head_model(self, nyhead_file)
   1411             print("New York head-model file not found: %s" % self.head_file)
-> 1412             yn = input(f"Download as {self.head_file} (710 MB)? [y/n]: ")
   1413             if yn == 'y':

/opt/conda/lib/python3.7/site-packages/ipykernel/kernelbase.py in raw_input(self, prompt)
    845             raise StdinNotImplementedError(
--> 846                 "raw_input was called, but this frontend does not support input requests."
    847             )

StdinNotImplementedError: raw_input was called, but this frontend does not support input requests.

During handling of the above exception, another exception occurred:

AttributeError                            Traceback (most recent call last)
<ipython-input-175-e68b490aea47> in <module>
----> 1 netpyne_geppetto.getPlot(utils.convertToPython('"plotEEG"'),utils.convertToPython('false'),utils.convertToPython('"gui"'))

~/netpyne/netpyne_ui/netpyne_geppetto.py in getPlot(self, plotName, LFPflavour, theme)
    906                           return fig_data
    907         except Exception as e:
--> 908             err = "There was an exception in %s():" % (e.plotName)
    909             logging.exception(("%s \n %s \n%s" % (err, e, sys.exc_info())))
    910 

AttributeError: 'StdinNotImplementedError' object has no attribute 'plotName'

@filippomc
Copy link
Contributor

@pgleeson we have a fix on Netpyne, can you please update your branch to include current release/v1.0.4.1?

@filippomc
Copy link
Contributor

@pgleeson cannot build netpyne as pip doesn't like the version name

#31 4.898   Traceback (most recent call last):                                                                                                 
#31 4.898     File "<string>", line 1, in <module>                                                                                             
#31 4.898     File "/tmp/pip-req-build-qsny8tpz/setup.py", line 95, in <module>                                                                
#31 4.898       entry_points={},                                                                                                               
#31 4.898     File "/opt/conda/lib/python3.7/site-packages/setuptools/__init__.py", line 108, in setup                                         
#31 4.898       return distutils.core.setup(**attrs)                                                                                           
#31 4.898     File "/opt/conda/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 147, in setup                                  
#31 4.898       _setup_distribution = dist = klass(attrs)                                                                                      
#31 4.898     File "/opt/conda/lib/python3.7/site-packages/setuptools/dist.py", line 483, in __init__                                          
#31 4.898       self.patch_missing_pkg_info(attrs)                                                                                             
#31 4.898     File "/opt/conda/lib/python3.7/site-packages/setuptools/dist.py", line 472, in patch_missing_pkg_info                            
#31 4.898       dist._version = _normalization.safe_version(str(attrs['version']))                                                             
#31 4.898     File "/opt/conda/lib/python3.7/site-packages/setuptools/_normalization.py", line 65, in safe_version                             
#31 4.898       return str(packaging.version.Version(attempt))                                                                                 
#31 4.898     File "/opt/conda/lib/python3.7/site-packages/setuptools/_vendor/packaging/version.py", line 197, in __init__                     
#31 4.898       raise InvalidVersion(f"Invalid version: '{version}'")                                                                          
#31 4.898   setuptools.extern.packaging.version.InvalidVersion: Invalid version: '1.0.4.1-osbv2'

@pgleeson
Copy link
Member

Strange... as it had an underscore in the version name, and changed it somewhere to a -. I see you changed it to 1.0.4.1+osbv2 now...

filippomc added a commit that referenced this issue Apr 14, 2023
@filippomc
Copy link
Contributor

Yes the new convention uses the + for additional characters in the version name

@pgleeson pgleeson added this to the v0.7.3 milestone May 18, 2023
@pgleeson pgleeson modified the milestones: v0.7.3, v0.7.2.1 May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants