Skip to content

Commit

Permalink
fix(vhs-decode): add matplotlib to dependencies, fix param breaking v…
Browse files Browse the repository at this point in the history
…hs-decode-gui, fix function call breaking filter-tune
  • Loading branch information
oyvindln committed May 13, 2024
1 parent 2b4ac2c commit b77014a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion filter_tune/filter_tune.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@ def update_from_json(self, tape_format, json_data, logger):
def change_format(self, system, tape_format, fs, logger):
self.fs = fs
self.system = system
self.sys_params, self.rf_params = get_format_params(system, tape_format, logger)
# TODO: tape speed
self.sys_params, self.rf_params = get_format_params(system, tape_format, 0, logger)
self.field_lines = max(self.sys_params["field_lines"])
self.field_width = int(np.round(self.sys_params["line_period"] * (fs / 1e6)))

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ classifiers = [
"Topic :: Multimedia :: Video",
]
dependencies = [
"numpy>=1.22","numba>=0.58.1","scipy>=1.10.1","samplerate", "static-ffmpeg", "cython", "soundfile", "sounddevice", "importlib_resources >= 5.0; python_version < '3.10'"
"numpy>=1.22","numba>=0.58.1","scipy>=1.10.1","samplerate", "static-ffmpeg", "cython", "soundfile", "sounddevice", "importlib_resources >= 5.0; python_version < '3.10'", "matplotlib"
]
dynamic = ["version"]
# version = "0.2.1dev0"
Expand Down
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

from setuptools import setup
from Cython.Build import cythonize
import numpy
Expand Down Expand Up @@ -29,9 +28,9 @@
# TODO: should be done in pyproject.toml but did not find any way
# of including without making them modules.
scripts=[
'ld-cut',
'cx-expander',
'decode.py',
"ld-cut",
"cx-expander",
"decode.py",
],
# scripts=[
# 'cx-expander',
Expand Down
2 changes: 1 addition & 1 deletion vhsdecode/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def main(args=None, use_gui=False):
type=str.lower,
dest="tape_speed",
metavar="tape_speed",
default="SP",
default="sp",
choices=TAPE_SPEEDS.keys(),
help="Tape speed selection for adjusting format parameters. SP (default), LP, SLP, EP, and VP. Only supported for some formats. SLP and EP refers to the same speed.",
)
Expand Down

0 comments on commit b77014a

Please sign in to comment.