File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\spyder_kernels\customize\spyderpdb.py", line 881, in run
super(SpyderPdb, self).run(cmd, globals, locals)
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\bdb.py", line 580, in run
exec(cmd, globals, locals)
File "c:\users\maria\documents\github\data\twop\main_preprocess.py", line 54, in
fc = process_s2p_directory(
File "C:\Users\maria\Documents\GitHub\Data\TwoP\runners.py", line 289, in process_s2p_directory
results = Parallel(n_jobs=jobnum, verbose=5)(
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\joblib\parallel.py", line 1048, in call
if self.dispatch_one_batch(iterator):
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\joblib\parallel.py", line 864, in dispatch_one_batch
self._dispatch(tasks)
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\joblib\parallel.py", line 782, in _dispatch
job = self._backend.apply_async(batch, callback=cb)
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\joblib_parallel_backends.py", line 208, in apply_async
result = ImmediateResult(func)
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\joblib_parallel_backends.py", line 572, in init
self.results = batch()
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\joblib\parallel.py", line 263, in call
return [func(*args, **kwargs)
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\joblib\parallel.py", line 263, in
return [func(*args, **kwargs)
File "C:\Users\maria\Documents\GitHub\Data\TwoP\runners.py", line 146, in _process_s2p_singlePlane
ax[3].plot(zTrace)
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\matplotlib\axes_axes.py", line 1635, in plot
lines = [self._get_lines(args, data=data, **kwargs)]
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\matplotlib\axes_base.py", line 312, in call
yield from self._plot_args(this, kwargs)
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\matplotlib\axes_base.py", line 459, in _plot_args
raise ValueError("x, y, and format string must not be None")
ValueError: x, y, and format string must not be None
It looks to me like there is some issue when trying to plot the Z traces as the plot that is being produced looks like this:
I am having this error message appear when running the main_preprocess code on these datasets:
Glaucus,2022-08-10 Glaucus,2022-08-18 Glaucus,2022-10-10 Giuseppina,2022-11-16 Giuseppina,2022-10-28 Giuseppina,2022-11-03 Hedes,2022-08-05
Traceback (most recent call last):
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\spyder_kernels\customize\spyderpdb.py", line 881, in run super(SpyderPdb, self).run(cmd, globals, locals)
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\bdb.py", line 580, in run exec(cmd, globals, locals)
File "c:\users\maria\documents\github\data\twop\main_preprocess.py", line 54, in
fc = process_s2p_directory(
File "C:\Users\maria\Documents\GitHub\Data\TwoP\runners.py", line 289, in process_s2p_directory results = Parallel(n_jobs=jobnum, verbose=5)(
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\joblib\parallel.py", line 1048, in call if self.dispatch_one_batch(iterator):
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\joblib\parallel.py", line 864, in dispatch_one_batch self._dispatch(tasks)
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\joblib\parallel.py", line 782, in _dispatch job = self._backend.apply_async(batch, callback=cb)
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\joblib_parallel_backends.py", line 208, in apply_async result = ImmediateResult(func)
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\joblib_parallel_backends.py", line 572, in init self.results = batch()
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\joblib\parallel.py", line 263, in call return [func(*args, **kwargs)
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\joblib\parallel.py", line 263, in
return [func(*args, **kwargs)
File "C:\Users\maria\Documents\GitHub\Data\TwoP\runners.py", line 146, in _process_s2p_singlePlane ax[3].plot(zTrace)
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\matplotlib\axes_axes.py", line 1635, in plot lines = [self._get_lines(args, data=data, **kwargs)]
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\matplotlib\axes_base.py", line 312, in call yield from self._plot_args(this, kwargs)
File "C:\Users\maria\anaconda3\envs\new_Spyder\lib\site-packages\matplotlib\axes_base.py", line 459, in _plot_args raise ValueError("x, y, and format string must not be None")
ValueError: x, y, and format string must not be None
It looks to me like there is some issue when trying to plot the Z traces as the plot that is being produced looks like this: