Skip to content

Commit

Permalink
py3.7 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
vb64 committed Jan 22, 2022
1 parent 7efb146 commit 1f61864
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
11 changes: 11 additions & 0 deletions history.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
22.01.2022 ver.1.1
------------------

- Исправлена ошибка, не позволявшая задать значения 5 (26 дБ) и 6 (31 дБ) для опции `--atten`.

* Исполняемый файл программы пересобран на основе Python 3.7, что позволяет запускать его под Windows7 без дополнительных настроек.

19.01.2022 ver.1.0
------------------

+ Первоначальная версия программы.
7 changes: 3 additions & 4 deletions source/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

from satis import MAX_START, MAX_END, Rbw, RbwSweep, Attenuation, sweep, read

VERSION = '1.1'


class Command:
"""App commands."""
Expand Down Expand Up @@ -66,11 +68,8 @@ def cmd_sweep(socket, options):
Attenuation.Db31,
]]

VERSION = '1.0'
USAGE = "%prog " + ' '.join(["[{}]".format(i) for i in COMMANDS])

PARSER = OptionParser(
usage=USAGE,
usage="%prog " + ' '.join(["[{}]".format(i) for i in COMMANDS]),
version="%prog version {}".format(VERSION)
)

Expand Down

0 comments on commit 1f61864

Please sign in to comment.