Skip to main content

SONATA Data Format API

Project description

pySONATA

A python library for the SONATA data format

Installation

$ python setup.py install

More to come

Reading Configuration files

You can parse and validate a config json file using the from_json function in config.py. It will take care of manifest variables, combine links to other parts of the config (simulation.json, circuit.json) and return a completed json in python dictionary.

from config import from_json
cfg = from_json('path/to/config.json')
print(cfg['run']['tstart'])

Note:

  • You can also pass in a jsonschema IValidator object which will check if the json file follows the schema. The AIBS BMTK uses our own custom validators, and if desired I can add the code to this repo.

Reading in Data Files (Nodes and Edges)

Project details


Download files

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

Files for sonata, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size sonata-0.0.2-py3-none-any.whl (70.9 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page