Skip to content

Commit b545df6

Browse files
Merge pull request #81 from CYHSM/fix-union
Fix union to work with python versions <3.10, essentially reneging on #79
2 parents 6ef335a + 7ce63b3 commit b545df6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ratinabox/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import warnings
88
from datetime import datetime
99
from scipy import stats as stats
10+
from typing import Union
1011
import ratinabox
1112

1213
"""OTHER USEFUL FUNCTIONS"""
@@ -1076,7 +1077,7 @@ def create_diverging_radial_assembly(distance_range: list = [0.01, 0.2],
10761077

10771078

10781079
def create_random_assembly(distance_distribution: str = "uniform",
1079-
distance_distribution_params: list| tuple = [0.0, 0.3],
1080+
distance_distribution_params: Union[list, tuple] = [0.0, 0.3],
10801081
angle_spread_degrees: float = 15,
10811082
beta: float = 12,
10821083
xi: float = 0.08,

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = ratinabox
3-
version = 1.9.2
3+
version = 1.9.3
44
author = Tom George
55
author_email = tomgeorge1@btinternet.com
66
project_urls =
@@ -25,7 +25,7 @@ install_requires =
2525
matplotlib
2626
scipy
2727
shapely
28-
python_requires = >=3.10
28+
python_requires = >=3.7
2929
include_package_data = False
3030

3131
[options.extras_require]

0 commit comments

Comments
 (0)