Skip to content

Commit

Permalink
Merge pull request #27 from thewtex/published-ngff-schema
Browse files Browse the repository at this point in the history
ENH: Used published ngff schema
  • Loading branch information
thewtex authored May 3, 2022
2 parents 4c1d51a + 445e3c3 commit 8e85143
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/test_ngff_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ def load_schema(version: str = "0.4", strict: bool = False) -> Dict:
strict_str = ""
if strict:
strict_str = "strict_"
# Needs: https://github.com/ome/ngff/pull/113
# with urllib.request.urlopen(f"https://ngff.openmicroscopy.org/{version}/schemas/{strict_str}image.schema") as url:
with urllib.request.urlopen(
f"https://raw.githubusercontent.com/ome/ngff/main/{version}/schemas/{strict_str}image.schema"
) as url:
with urllib.request.urlopen(f"https://ngff.openmicroscopy.org/{version}/schemas/{strict_str}image.schema") as url:
schema = json.loads(url.read().decode())
return schema

Expand Down

0 comments on commit 8e85143

Please sign in to comment.