Skip to content

dt-12345/AINB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AINB

Python library for working with AINB files

Install

Requires at least Python 3.10

pip install ainb

Optionally install graphing components with:

pip install ainb[graph]

Graphing requires installation of Graphviz (make sure to add it to your system path)

Usage

Python

import ainb
import ainb.graph

# load an AINB file and save it as JSON
script = ainb.AINB.from_file("AWonderfullyNamedFile.root.ainb")
script.save_json("output_directory")

# graph a file
ainb.graph.graph_all_commands(script, output_format="png", dpi=120.0)

Command Line

# load an AINB file and save it as JSON
ainb AWonderfullyNamedFile.root.ainb

# graph a file
ainb-graph -f png --dpi 120 --all-commands AWonderfullyNamedFile.root.ainb

Documentation

TODO

Building

To build from source:

pip install -e .

License

This software is licensed under GPLv2.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages