-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated import method to mimic other package styles
- Loading branch information
Showing
23 changed files
with
113 additions
and
127 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,110 @@ | ||
from .checkpointer import Checkpointer, NullCheckpointer, SnapshotCheckpointer | ||
from .comm import ( | ||
from .buffer import Buffer | ||
from .checkpointer.base import Checkpointer | ||
from .checkpointer.null import NullCheckpointer | ||
from .checkpointer.snapshots import SnapshotCheckpointer, _Snapshots | ||
from .checkpointer.thresholds import ( | ||
InsufficientTrialsError, | ||
SavepointThresholds, | ||
Threshold, | ||
ThresholdCalibrationCheckpointer, | ||
) | ||
from .checkpointer.validation import ValidationCheckpointer | ||
from .comm.boundary import Boundary, SimpleBoundary | ||
from .comm.caching_comm import ( | ||
CachingCommData, | ||
CachingCommReader, | ||
CachingCommWriter, | ||
Comm, | ||
Communicator, | ||
ConcurrencyError, | ||
CubedSphereCommunicator, | ||
CubedSpherePartitioner, | ||
LocalComm, | ||
MPIComm, | ||
NullComm, | ||
TileCommunicator, | ||
TilePartitioner, | ||
) | ||
from .dsl import ( | ||
CachingRequestReader, | ||
CachingRequestWriter, | ||
NullRequest, | ||
) | ||
from .comm.comm_abc import Comm, Request | ||
from .comm.communicator import Communicator, CubedSphereCommunicator, TileCommunicator | ||
from .comm.local_comm import AsyncResult, ConcurrencyError, LocalComm | ||
from .comm.mpi import MPIComm | ||
from .comm.null_comm import NullAsyncResult, NullComm | ||
from .comm.partitioner import CubedSpherePartitioner, Partitioner, TilePartitioner | ||
from .constants import ConstantVersions | ||
from .dsl.caches.codepath import FV3CodePath | ||
from .dsl.dace.dace_config import DaceConfig, DaCeOrchestration, FrozenCompiledSDFG | ||
from .dsl.dace.orchestration import orchestrate, orchestrate_function | ||
from .dsl.dace.utils import ( | ||
ArrayReport, | ||
DaCeProgress, | ||
MaxBandwithBenchmarkProgram, | ||
StorageReport, | ||
) | ||
from .dsl.dace.wrapped_halo_exchange import WrappedHaloUpdater | ||
from .dsl.stencil import ( | ||
CompareToNumpyStencil, | ||
CompilationConfig, | ||
DaceConfig, | ||
DaCeOrchestration, | ||
FrozenStencil, | ||
GridIndexing, | ||
RunMode, | ||
StencilConfig, | ||
StencilFactory, | ||
WrappedHaloUpdater, | ||
TimingCollector, | ||
) | ||
from .dsl.stencil_config import CompilationConfig, RunMode, StencilConfig | ||
from .exceptions import OutOfBoundsError | ||
from .halo import HaloDataTransformer, HaloExchangeSpec, HaloUpdater | ||
from .initialization import GridSizer, QuantityFactory, SubtileGridSizer | ||
from .grid.eta import HybridPressureCoefficients | ||
from .grid.generation import GridDefinition, GridDefinitions, MetricTerms | ||
from .grid.helper import ( | ||
AngleGridData, | ||
ContravariantGridData, | ||
DampingCoefficients, | ||
DriverGridData, | ||
GridData, | ||
HorizontalGridData, | ||
VerticalGridData, | ||
) | ||
from .halo.data_transformer import ( | ||
HaloDataTransformer, | ||
HaloDataTransformerCPU, | ||
HaloDataTransformerGPU, | ||
HaloExchangeSpec, | ||
) | ||
from .halo.updater import HaloUpdater, HaloUpdateRequest, VectorInterfaceHaloUpdater | ||
from .initialization.allocator import QuantityFactory, StorageNumpy | ||
from .initialization.sizer import GridSizer, SubtileGridSizer | ||
from .logging import ndsl_log | ||
from .monitor import NetCDFMonitor, ZarrMonitor | ||
from .performance import NullTimer, PerformanceCollector, Timer | ||
from .quantity import Quantity, QuantityHaloSpec | ||
from .stencils import ( | ||
CubedToLatLon, | ||
Grid, | ||
from .monitor.netcdf_monitor import NetCDFMonitor | ||
from .monitor.protocol import Protocol | ||
from .monitor.zarr_monitor import ZarrMonitor | ||
from .namelist import Namelist | ||
from .optional_imports import RaiseWhenAccessed | ||
from .performance.collector import ( | ||
AbstractPerformanceCollector, | ||
NullPerformanceCollector, | ||
PerformanceCollector, | ||
) | ||
from .performance.config import PerformanceConfig | ||
from .performance.profiler import NullProfiler, Profiler | ||
from .performance.report import Experiment, Report, TimeReport | ||
from .performance.timer import NullTimer, Timer | ||
from .quantity import ( | ||
BoundaryArrayView, | ||
BoundedArrayView, | ||
Quantity, | ||
QuantityHaloSpec, | ||
QuantityMetadata, | ||
) | ||
from .stencils.c2l_ord import CubedToLatLon | ||
from .stencils.corners import CopyCorners, CopyCornersXY, FillCornersBGrid | ||
from .stencils.testing.grid import Grid # type: ignore | ||
from .stencils.testing.parallel_translate import ( | ||
ParallelTranslate, | ||
ParallelTranslate2Py, | ||
ParallelTranslate2PyState, | ||
ParallelTranslateBaseSlicing, | ||
ParallelTranslateGrid, | ||
) | ||
from .stencils.testing.savepoint import SavepointCase, Translate, dataset_to_dict | ||
from .stencils.testing.temporaries import assert_same_temporaries, copy_temporaries | ||
from .stencils.testing.translate import ( | ||
TranslateFortranData2Py, | ||
TranslateGrid, | ||
pad_field_in_j, | ||
read_serialized_data, | ||
) | ||
from .testing import DummyComm | ||
from .testing.dummy_comm import DummyComm | ||
from .types import Allocator, AsyncRequest, NumpyModule | ||
from .units import UnitsError | ||
from .utils import MetaEnumStr |
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,3 +0,0 @@ | ||
from .base import Checkpointer | ||
from .null import NullCheckpointer | ||
from .snapshots import SnapshotCheckpointer | ||
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,7 +0,0 @@ | ||
from .caching_comm import CachingCommReader, CachingCommWriter | ||
from .comm_abc import Comm | ||
from .communicator import Communicator, CubedSphereCommunicator, TileCommunicator | ||
from .local_comm import ConcurrencyError, LocalComm | ||
from .mpi import MPIComm | ||
from .null_comm import NullComm | ||
from .partitioner import CubedSpherePartitioner, TilePartitioner | ||
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,3 +0,0 @@ | ||
from .dace_config import DaceConfig, DaCeOrchestration | ||
from .orchestration import orchestrate, orchestrate_function | ||
from .wrapped_halo_exchange import WrappedHaloUpdater | ||
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,13 +0,0 @@ | ||
# flake8: noqa: F401 | ||
|
||
from .eta import set_hybrid_pressure_coefficients | ||
from .gnomonic import ( | ||
great_circle_distance_along_axis, | ||
great_circle_distance_lon_lat, | ||
lon_lat_corner_to_cell_center, | ||
lon_lat_midpoint, | ||
lon_lat_to_xyz, | ||
xyz_midpoint, | ||
xyz_to_lon_lat, | ||
) | ||
from .stretch_transformation import direct_transform | ||
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,2 +0,0 @@ | ||
from .data_transformer import HaloDataTransformer, HaloExchangeSpec | ||
from .updater import HaloUpdater | ||
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,2 +0,0 @@ | ||
from .allocator import QuantityFactory | ||
from .sizer import GridSizer, SubtileGridSizer | ||
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,2 +0,0 @@ | ||
from .netcdf_monitor import NetCDFMonitor | ||
from .zarr_monitor import ZarrMonitor | ||
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,2 +0,0 @@ | ||
from .collector import PerformanceCollector | ||
from .timer import NullTimer, Timer | ||
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,14 +1 @@ | ||
from .c2l_ord import CubedToLatLon | ||
from .testing import ( | ||
Grid, | ||
ParallelTranslate, | ||
ParallelTranslate2Py, | ||
ParallelTranslate2PyState, | ||
ParallelTranslateBaseSlicing, | ||
ParallelTranslateGrid, | ||
TranslateFortranData2Py, | ||
TranslateGrid, | ||
) | ||
|
||
|
||
__version__ = "0.2.0" |
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,17 +0,0 @@ | ||
from . import parallel_translate, translate | ||
from .grid import Grid # type: ignore | ||
from .parallel_translate import ( | ||
ParallelTranslate, | ||
ParallelTranslate2Py, | ||
ParallelTranslate2PyState, | ||
ParallelTranslateBaseSlicing, | ||
ParallelTranslateGrid, | ||
) | ||
from .savepoint import dataset_to_dict | ||
from .temporaries import assert_same_temporaries, copy_temporaries | ||
from .translate import ( | ||
TranslateFortranData2Py, | ||
TranslateGrid, | ||
pad_field_in_j, | ||
read_serialized_data, | ||
) | ||
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,3 +0,0 @@ | ||
from .comparison import compare_arr, compare_scalar, success, success_array | ||
from .dummy_comm import ConcurrencyError, DummyComm | ||
from .perturbation import perturb | ||
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,2 +1 @@ | ||
from ndsl.comm.local_comm import ConcurrencyError # noqa | ||
from ndsl.comm.local_comm import LocalComm as DummyComm # noqa |
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