Created
June 30, 2016 18:07
-
-
Save thomasaarholt/4ca2451ac729afa9e0f8f24a7023247f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------------------------------------------- | |
ValueError Traceback (most recent call last) | |
<ipython-input-8-d6ad06492590> in <module>() | |
----> 1 bss_spectra[0].plot() | |
/Users/thomas/Dropbox/0_Git/GitHub Desktop/hyperspy/hyperspy/signal.py in plot(self, navigator, axes_manager, **kwargs) | |
2029 | |
2030 self._plot.plot(**kwargs) | |
-> 2031 self.events.data_changed.connect(self.update_plot, []) | |
2032 if self._plot.signal_plot: | |
2033 self._plot.signal_plot.events.closed.connect( | |
/Users/thomas/Dropbox/0_Git/GitHub Desktop/hyperspy/hyperspy/events.py in connect(self, function, kwargs) | |
307 if function in self.connected: | |
308 raise ValueError("Function %s already connected to %s." % | |
--> 309 (function, self)) | |
310 if kwargs == 'auto': | |
311 spec = inspect.signature(function) | |
ValueError: Function <bound method BaseSignal.update_plot of <EELSSpectrum, title: 45-day ZIRLO, 0eV Energy Loss with ICA, dimensions: (484, 349|1581)>> already connected to <hyperspy.events.Event: Event that triggers when the data has changed: {<bound method Interactive.update of <hyperspy.interactive.Interactive object at 0x1296cac50>>, <bound method BaseSignal.update_plot of <EELSSpectrum, title: 45-day ZIRLO, 0eV Energy Loss with ICA, dimensions: (484, 349|1581)>>, <bound method Interactive.update of <hyperspy.interactive.Interactive object at 0x12880cdd8>>}>. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment