forked from InsightSoftwareConsortium/ITK-Wasm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request InsightSoftwareConsortium#1134 from thewtex/python…
…-cache-dir feat(python): support ITKWASM_CACHE_DIR for cache directory
- Loading branch information
Showing
40 changed files
with
662 additions
and
390 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from dataclasses import dataclass | ||
from pathlib import PurePosixPath | ||
|
||
|
||
@dataclass | ||
class BinaryFile: | ||
path: PurePosixPath | ||
path: PurePosixPath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from dataclasses import dataclass | ||
|
||
|
||
@dataclass | ||
class BinaryStream: | ||
data: bytes | ||
data: bytes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
from enum import Enum | ||
|
||
|
||
class FloatTypes(str, Enum): | ||
Float32 = 'float32' | ||
Float64 = 'float64' | ||
SpacePrecisionType = 'float64' | ||
Float32 = "float32" | ||
Float64 = "float64" | ||
SpacePrecisionType = "float64" | ||
|
||
def __str__(self): | ||
return str(self.value) | ||
|
||
def __repr__(self): | ||
return f'"{str(self.value)}"' | ||
return f'"{str(self.value)}"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
from enum import Enum | ||
|
||
|
||
class InterfaceTypes(Enum): | ||
TextFile = 'InterfaceTextFile' | ||
BinaryFile = 'InterfaceBinaryFile' | ||
TextStream = 'InterfaceTextStream' | ||
BinaryStream = 'InterfaceBinaryStream' | ||
Image = 'InterfaceImage' | ||
Mesh = 'InterfaceMesh' | ||
PolyData = 'InterfacePolyData' | ||
JsonCompatible = 'InterfaceJsonCompatible' | ||
TextFile = "InterfaceTextFile" | ||
BinaryFile = "InterfaceBinaryFile" | ||
TextStream = "InterfaceTextStream" | ||
BinaryStream = "InterfaceBinaryStream" | ||
Image = "InterfaceImage" | ||
Mesh = "InterfaceMesh" | ||
PolyData = "InterfacePolyData" | ||
JsonCompatible = "InterfaceJsonCompatible" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
from typing import Dict, Union, List | ||
|
||
JsonCompatible = Union[Dict[str, "JsonCompatible"], None, bool, str, int, | ||
float, List["JsonCompatible"]] | ||
JsonCompatible = Union[Dict[str, "JsonCompatible"], None, bool, str, int, float, List["JsonCompatible"]] |
Oops, something went wrong.