Skip to content

Commit

Permalink
Support python 3.11 (#76)
Browse files Browse the repository at this point in the history
Tests now works with python 3.11
  • Loading branch information
rhoadesScholar authored Feb 14, 2024
2 parents 3b908a8 + 92cbb95 commit 06bf991
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
python-version: ["3.10","3.11"]

steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 3 additions & 3 deletions dacapo/experiments/trainers/gunpowder_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ def build_batch_provider(self, datasets, model, task, snapshot_container=None):
mask_placeholder,
drop_channels=True,
)
+ gp.Pad(raw_key, None, 0)
+ gp.Pad(gt_key, None, 0)
+ gp.Pad(mask_key, None, 0)
+ gp.Pad(raw_key, None)
+ gp.Pad(gt_key, None)
+ gp.Pad(mask_key, None)
+ gp.RandomLocation(
ensure_nonempty=sample_points_key
if points_source is not None
Expand Down
2 changes: 1 addition & 1 deletion dacapo/utils/affinities.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


def seg_to_affgraph(seg: np.ndarray, neighborhood: List[Coordinate]) -> np.ndarray:
nhood = np.array(neighborhood)
nhood: np.ndarray = np.array(neighborhood)

# constructs an affinity graph from a segmentation
# assume affinity graph is represented as:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
entry_points={"console_scripts": ["dacapo=dacapo.cli:cli"]},
include_package_data=True,
install_requires=[
"numpy==1.22.3",
"numpy",
"pyyaml",
"zarr",
"cattrs",
Expand Down

0 comments on commit 06bf991

Please sign in to comment.