ValueError while generate_videos on the jupyter notebook #173
-
Hi, I was going through the jupyter notebook and got a ValueError almost at the end. How could I fix this error? (By the way, I can see the final results at the next step using CNMFViewer.) The code block is this:
And this is the error message I received:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I figured this out! In a previous step, I subsetted my video to drop the first frame using this: "varr.sel(frame=slice(1, None))". While I was trying to drop the first frame, I set the subset variable as something else (which is not a dictionary). Thus, I was able to solve the ValueError by using "varr.sel(frame=slice(1, None))" instead of "varr.sel(subset)". |
Beta Was this translation helpful? Give feedback.
I figured this out! In a previous step, I subsetted my video to drop the first frame using this: "varr.sel(frame=slice(1, None))". While I was trying to drop the first frame, I set the subset variable as something else (which is not a dictionary). Thus, I was able to solve the ValueError by using "varr.sel(frame=slice(1, None))" instead of "varr.sel(subset)".