Skip to main content

Dynamical analysis for GDS specifications — bridges gds-framework to gds-sim

Project description

gds-analysis

Dynamical analysis for GDS specifications. Bridges gds-framework structural annotations to gds-sim runtime.

Installation

uv add gds-analysis

Quick Start

from gds_analysis import spec_to_model, trajectory_distances
from gds_sim import Simulation

# Build a runnable model from a GDSSpec
model = spec_to_model(
    spec,
    policies={"Sensor": sensor_fn, "Controller": controller_fn},
    sufs={"Heater": heater_fn},
    initial_state={"Room.temperature": 18.0},
)

# Run simulation
sim = Simulation(model=model, timesteps=100)
results = sim.run()

# Compute distances using StateMetric annotations
distances = trajectory_distances(spec, results.to_list())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gds_analysis-0.1.2.tar.gz (41.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gds_analysis-0.1.2-py3-none-any.whl (34.4 kB view details)

Uploaded Python 3

File details

Details for the file gds_analysis-0.1.2.tar.gz.

File metadata

  • Download URL: gds_analysis-0.1.2.tar.gz
  • Upload date:
  • Size: 41.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for gds_analysis-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e9bc00f6416acbc3590205e959d8d23e1b328dc1d304b288991d239caacb34ed
MD5 853ae5567985e7afd6e1ff23d5b87c6b
BLAKE2b-256 025c8f3651949cef168a190ba40445336a8e22a1a09bb96f5536187aa8e9258d

See more details on using hashes here.

File details

Details for the file gds_analysis-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: gds_analysis-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 34.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for gds_analysis-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 307357b9ba41f265f02278ddf809716abbeee17259e8e022a3b2c962283e4e1d
MD5 f07c67dd631d998abe6aaea9b4a2c6f9
BLAKE2b-256 b8cd977073c872ab53cbb81e7e3b6afa0c8a2381cd924f9681509d71a5b56e03

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page