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

bug fix: add int type for rng seed #192

Merged
merged 5 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pytom-match-pick"
version = "0.7.0"
version = "0.7.1"
description = "PyTOM's GPU template matching module as an independent package"
readme = "README.md"
license = {file = "LICENSE"}
Expand Down
1 change: 1 addition & 0 deletions src/pytom_tm/entry_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,7 @@ def match_template(argv=None):
)
additional_group.add_argument(
"--rng-seed",
type=int,
action=LargerThanZero,
default=int.from_bytes(urandom(8)),
required=False,
Expand Down
3 changes: 3 additions & 0 deletions tests/test_entry_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ def start(arg_dict): # simplify run
arguments = defaults.copy()
arguments["-r"] = ""
start(arguments)
# test if we can set the rng seed, see issue #194
arguments["--rng-seed"] = "42"
start(arguments)

# test debug files
arguments = defaults.copy()
Expand Down