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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

sonata-0.0.2-py3-none-any.whl (70.9 kB view details)

Uploaded Python 3

File details

Details for the file sonata-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: sonata-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 70.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for sonata-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 00590f9491bd1e8d3fec8cae1cf34c09ad339a37d1d8817ad2b51516726c0ef3
MD5 63601968613634b4a585c811098d6ab3
BLAKE2b-256 0f506fffb658007fb119c07f648a4cb7358dc6f5f6b15ae983357478b437bec3

See more details on using hashes here.

Supported by

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