Skip to content

Commit a1dd5bb

Browse files
committed
changed plot return for EEG/dipole as they save the file in the workspace
1 parent 6758a53 commit a1dd5bb

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

netpyne_ui/netpyne_geppetto.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,12 @@ def conns_length(cell) -> int:
778778
else:
779779
return [ui.getSVG(fig)]
780780
else:
781-
return fig_data
781+
if plotName == 'plotEEG':
782+
return self.simConfig.filename + '_EEG.png'
783+
elif plotName == 'plotDipole':
784+
return self.simConfig.filename + '_dipole.png'
785+
else:
786+
return fig_data
782787
except Exception as e:
783788
err = "There was an exception in %s():" % (e.plotName)
784789
logging.exception(("%s \n %s \n%s" % (err, e, sys.exc_info())))

0 commit comments

Comments
 (0)