aamutils 0.0.2__tar.gz → 0.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aamutils-0.0.2 → aamutils-0.0.3}/PKG-INFO +1 -1
- {aamutils-0.0.2 → aamutils-0.0.3}/benchmark.py +12 -2
- {aamutils-0.0.2 → aamutils-0.0.3}/pyproject.toml +1 -1
- {aamutils-0.0.2 → aamutils-0.0.3}/.github/workflows/publish-package.yml +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/.github/workflows/test-and-lint.yml +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/.gitignore +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/LICENSE +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/Makefile +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/README.md +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/aamutils/__init__.py +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/aamutils/__main__.py +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/aamutils/algorithm/__init__.py +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/aamutils/algorithm/aaming.py +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/aamutils/algorithm/ilp.py +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/aamutils/cmd/__init__.py +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/aamutils/cmd/expanding.py +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/aamutils/utils.py +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/conf.py +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/data/test_dataset.json +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/doc/getting_started.rst +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/doc/reference.rst +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/index.rst +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/lint.sh +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/make.bat +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/requirements.txt +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/test/__init__.py +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/test/algorithm/__init__.py +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/test/algorithm/test_aaming.py +0 -0
- {aamutils-0.0.2 → aamutils-0.0.3}/test/algorithm/test_ilp.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: aamutils
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.3
|
|
4
4
|
Summary: Collection of atom-atom-mapping utility functions.
|
|
5
5
|
Project-URL: homepage, https://github.com/klausweinbauer/AAMUtils
|
|
6
6
|
Project-URL: source, https://github.com/klausweinbauer/AAMUtils
|
|
@@ -50,7 +50,9 @@ def load_data():
|
|
|
50
50
|
return data
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
def run(n, remove_mode, remove_ratio):
|
|
53
|
+
def run(n, remove_mode, remove_ratio, seed=None):
|
|
54
|
+
if seed is not None:
|
|
55
|
+
random.seed(seed)
|
|
54
56
|
data = load_data()
|
|
55
57
|
testcase_cnt = 0
|
|
56
58
|
success_cnt = 0
|
|
@@ -136,6 +138,7 @@ if __name__ == "__main__":
|
|
|
136
138
|
default_rm_mode = "rc"
|
|
137
139
|
default_rm_ratio = 0.5
|
|
138
140
|
default_n = 1000
|
|
141
|
+
default_seed = None
|
|
139
142
|
|
|
140
143
|
parser = argparse.ArgumentParser(
|
|
141
144
|
prog="benchmarks.py",
|
|
@@ -171,6 +174,13 @@ if __name__ == "__main__":
|
|
|
171
174
|
+ " Default: {}"
|
|
172
175
|
).format(default_rm_ratio),
|
|
173
176
|
)
|
|
177
|
+
parser.add_argument(
|
|
178
|
+
"--seed",
|
|
179
|
+
default=default_seed,
|
|
180
|
+
help=(
|
|
181
|
+
"The seed used to initialize random number generation. " + "Default: {}"
|
|
182
|
+
).format(default_seed),
|
|
183
|
+
)
|
|
174
184
|
|
|
175
185
|
args = parser.parse_args()
|
|
176
|
-
run(args.n, args.remove_mode, args.remove_ratio)
|
|
186
|
+
run(args.n, args.remove_mode, args.remove_ratio, args.seed)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|