Skip to content

Commit

Permalink
Explicit Python 3.10 support
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtenbrink committed Oct 7, 2021
1 parent e7738be commit 1b35b33
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 52 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rustfrc"
version = "1.0.1"
version = "1.0.2"
edition = "2018"

[lib]
Expand Down
90 changes: 46 additions & 44 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[project]
name = "rustfrc"
version = "1.0.1"
version = "1.0.2"
description = "Package with some fast Rust functions for use with FRC resolution determination for microscopy. TU Delft BEP 2021-2022."
readme = "README.md"
requires-python = ">=3.7"
requires-python = ">=3.7, <3.11"
license = {text = "Apache-2.0"}
authors = [
{email = "[email protected]"},
Expand All @@ -23,7 +23,7 @@ repository = "https://github.com/tmtenbrink/rustfrc"

[tool.poetry]
name = "rustfrc"
version = "1.0.1"
version = "1.0.2"
description = "Package with some fast Rust functions for use with FRC resolution determination for microscopy. TU Delft BEP 2021-2022."
authors = ["Tip ten Brink <[email protected]>"]
readme = "README.md"
Expand All @@ -39,8 +39,8 @@ license = "Apache-2.0"
"Source Code" = "https://github.com/tmtenbrink/rustfrc"

[tool.poetry.dependencies]
python = "^3.7"
numpy = "^1.18"
python = ">=3.7, <3.11"
numpy = ">=1.18, < 2"

[tool.poetry.dev-dependencies]
maturin = "^0.11.3"
Expand Down
4 changes: 2 additions & 2 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

rng = np.random.default_rng()
x = np.ones((388, 388))*20
x = np.repeat(x[:, :, np.newaxis], 1000, axis=2)
x = np.repeat(x[:, :, np.newaxis], 1000, axis=2).astype(np.int64)
# half_x = np.rint(x/2).astype(int)
# print(half_x)
start = time.time_ns()
a = rng.binomial(x, 0.5)
# a = rng.binomial(x, 0.5)
# a = r.binom_split(x)
b = x - a
# for i in range(100):
Expand Down

0 comments on commit 1b35b33

Please sign in to comment.