Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Plot error when changing the background colour

Offen
#517 2 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@salvadord arbeitet bereits daran.

Seit 22.11.2022.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

bug

When changing the background colour to white, an error appears related to the plots

  • "'TypeError' object has no attribute 'plotName'"
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
~/git/netpyne-ui/netpyne_ui/netpyne_geppetto.py in getPlot(self, plotName, LFPflavour, theme)
    777                 else:
--> 778                     fig_data = getattr(analysis, plotName)(**args)
    779                     if isinstance(fig_data, tuple):

~/git/netpyne-ui/src/netpyne/netpyne/analysis/dipole.py in plotDipole(showCell, showPop, timeRange, dpi, figSize, showFig, saveFig)
     40 
---> 41     p = p/1000.0 # convert from nA to uA
     42 

TypeError: unsupported operand type(s) for /: 'Dict' and 'float'

During handling of the above exception, another exception occurred:

AttributeError                            Traceback (most recent call last)
/tmp/ipykernel_212837/2246607073.py in <module>
----> 1 netpyne_geppetto.getPlot(utils.convertToPython('"plotDipole"'),utils.convertToPython('false'),utils.convertToPython('"guiBlack"'))

~/git/netpyne-ui/netpyne_ui/netpyne_geppetto.py in getPlot(self, plotName, LFPflavour, theme)
    798                           return fig_data
    799         except Exception as e:
--> 800             err = "There was an exception in %s():" % (e.plotName)
    801             logging.exception(("%s \n %s \n%s" % (err, e, sys.exc_info())))
    802 

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

https://images.zenhubusercontent.com/122103040/dd5cf97f-e3c7-4b37-997c-e9a21346517f/video.mov

Vorherrschende Sprache
JavaScript
Sterne
23
Forks
10
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

  • Enthält ein Dockerfile oder eine Docker-Compose-Datei
  • Keine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus MetaCell/NetPyNE-UI

Alle Issues in MetaCell/NetPyNE-UI

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.