Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Cannot reshape array" error when deconvolving data from SAA7131 capture card #56

Closed
ZXByteman opened this issue Sep 15, 2020 · 0 comments

Comments

@ZXByteman
Copy link
Contributor

Hi,

I'm getting error "cannot reshape array" when doing deconvolve process on any data from SAA7131 capture card. I've tried to recover some of my old captures, but no success.

Here is tracelog:

Traceback (most recent call last):
File "/usr/local/bin/teletext", line 11, in
load_entry_point('teletext==3.1.99', 'console_scripts', 'teletext')()
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/teletext/clihelpers.py", line 235, in cmd
return f(
_args, **_kwargs)
File "/usr/local/lib/python3.6/dist-packages/teletext/clihelpers.py", line 62, in wrapper
return f(config=config, *args,**kwargs)
File "/usr/local/lib/python3.6/dist-packages/teletext/clihelpers.py", line 198, in wrapper
for p in packets:
File "/usr/local/lib/python3.6/dist-packages/teletext/pipeline.py", line 81, in to_file
for p in packets:
File "/usr/local/lib/python3.6/dist-packages/teletext/stats.py", line 48, in iter
for p in self._packets:
File "/usr/local/lib/python3.6/dist-packages/teletext/cli.py", line 324, in
packets = (p for p in packets if isinstance(p, Packet))
File "/usr/local/lib/python3.6/dist-packages/teletext/stats.py", line 74, in iter
for l in self._lines:
File "/usr/local/lib/python3.6/dist-packages/teletext/mp.py", line 264, in itermap
yield from pool.apply(iterable)
File "/usr/local/lib/python3.6/dist-packages/teletext/mp.py", line 212, in apply
yield next(self._proc)
File "/usr/local/lib/python3.6/dist-packages/teletext/vbi/line.py", line 291, in process_lines
yield getattr(Line(chunk, number), mode)(mags, rows)
File "/usr/local/lib/python3.6/dist-packages/teletext/vbi/line.py", line 231, in deconvolve
bits_array = normalise(self.chop(0, 368))
File "/usr/local/lib/python3.6/dist-packages/teletext/vbi/line.py", line 126, in chop
return np.mean(self.fchop(start, stop).reshape(-1, 8), 1)
ValueError: cannot reshape array of size 2931 into shape (8)

Here is a short VBI sample where error occures.
polsat_crop.zip

Thanks,
Alexander

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant