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

Support python 3.11 #76

Merged
merged 8 commits into from
Feb 14, 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 .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",
rhoadesScholar marked this conversation as resolved.
Show resolved Hide resolved
"pyyaml",
"zarr",
"cattrs",
Expand Down
Loading