A light weight package to load Grid Data Model's systems from remote location.
pip install gdmloader
Construct a loader and add a source.
from gdmloader.source import SystemLoader
from from gdmloader.constants import GDM_CASE_SOURCE
loader = SystemLoader()
loader.add_source(GDM_CASE_SOURCE)
Show sources.
loader.show_sources()
Show dataset by sources.
loader.show_dataset_by_source("gdm-cases")
Load dataset.
from gdm import DistributionSystem
loader.load_dataset(
system_type=DistributionSystem,
source_name="gdm-cases",
dataset_name="testcasev1"
)
If you want to force download specific version then you can do this.
from gdm import DistributionSystem
loader.load_dataset(
system_type=DistributionSystem,
source_name="gdm-cases",
dataset_name="testcasev1",
version="1_2_0"
)