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.1.tar.gz (19.7 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.1-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gds_analysis-0.1.1.tar.gz
  • Upload date:
  • Size: 19.7 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.1.tar.gz
Algorithm Hash digest
SHA256 8ea57e5e94bb17c7036bdd3b7af83312a463053ffdcd811c519498fd3caad076
MD5 dc6f9a6a3aad3e14b3e6a43bffb615b8
BLAKE2b-256 90c1709e2f23cd96dd1fa1f3fd65b7979b53fcfada9c68c63b684ac78521a3e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gds_analysis-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 722f3d732872507a0dff31f175d7bc22891ebeac5706228474463fda8d1f3b9e
MD5 e2c03af8a372fd3b5e8b16957c7966d3
BLAKE2b-256 2502b2f191b3b75e658e5ed6b7f38dfd6e0bf30e664cc7882c789ff10db5f787

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