-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MNT: auto upgrade code base to Python 3.9
- Loading branch information
1 parent
8ec65d1
commit 4cfd370
Showing
71 changed files
with
268 additions
and
338 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
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,31 +1,31 @@ | ||
from typing import List, Optional, Tuple, Union | ||
from typing import Optional, Union | ||
|
||
import unyt as un | ||
from numpy import ndarray | ||
|
||
FieldDescT = Tuple[str, Tuple[str, List[str], Optional[str]]] | ||
KnownFieldsT = Tuple[FieldDescT, ...] | ||
FieldDescT = tuple[str, tuple[str, list[str], Optional[str]]] | ||
KnownFieldsT = tuple[FieldDescT, ...] | ||
|
||
ParticleType = str | ||
FieldType = str | ||
FieldName = str | ||
FieldKey = Tuple[FieldType, FieldName] | ||
FieldKey = tuple[FieldType, FieldName] | ||
ImplicitFieldKey = FieldName | ||
AnyFieldKey = Union[FieldKey, ImplicitFieldKey] | ||
DomainDimensions = Union[Tuple[int, ...], List[int], ndarray] | ||
DomainDimensions = Union[tuple[int, ...], list[int], ndarray] | ||
|
||
ParticleCoordinateTuple = Tuple[ | ||
ParticleCoordinateTuple = tuple[ | ||
str, # particle type | ||
Tuple[ndarray, ndarray, ndarray], # xyz | ||
tuple[ndarray, ndarray, ndarray], # xyz | ||
Union[float, ndarray], # hsml | ||
] | ||
|
||
# Geometry specific types | ||
AxisName = str | ||
AxisOrder = Tuple[AxisName, AxisName, AxisName] | ||
AxisOrder = tuple[AxisName, AxisName, AxisName] | ||
|
||
# types that can be converted to un.Unit | ||
Unit = Union[un.Unit, str] | ||
|
||
# types that can be converted to un.unyt_quantity | ||
Quantity = Union[un.unyt_quantity, Tuple[float, Unit]] | ||
Quantity = Union[un.unyt_quantity, tuple[float, Unit]] |
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
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
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
Oops, something went wrong.