Parser for *.cubex files
Project description
Parser for cubex
files
cubex
file format
anchor.xml
- contains
cnodes
metrics
regions
system_tree_nodes
locationgroups
locations
- contains
index.0
- the
0
stands for the metric ID - contains
- a header
- "1"
- a "1" encoded as a
- endianness
- the number of
cnodes
in thedata.0
file
- "1"
- a list of
cnode
indicescnode_indices = [c1, c2, ...]
- a header
- the
data.0
- contains
- a header
- data for each
cnode_id
incnode_indices
- contains metric values for all
locations
- to retrieve the value of a particular
cnode
withcnode_id
, and a specificlocation_id
- get index of
cnode_index
incnode_indices
- = the position of the
cnode_id
incnode_indices
- = the position of the
- offset in
data.0
:cnode_index * num_locations + location_id
- the
locations
all have incrementinglocation_ids
- the
- get index of
- Important: the list is sorted!
- not in the order of the XML
- contains metric values for all
- contains
Notes
- Requires at least Python version 3.5
- Contains
typings
as defined in PEP 484
- Contains
- The
cubex
files aretar
archives- :warning: ... when extracting them and parsing the extracted
0.data
files using the low-levelIndexParser
/DataParser
directly, they will create strange behaviour- in the most cases, parsing succeeds but some edge-cases (related to endianness?) create problems
- :warning: ... when extracting them and parsing the extracted
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycube-parser-0.0.1.tar.gz
(10.2 kB
view hashes)
Built Distribution
Close
Hashes for pycube_parser-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61c475ad413875415013f7b07e4bad475c03a1a69080ba42065598fd41267f41 |
|
MD5 | 74ddaf9245f9941a509e0bda63e369f6 |
|
BLAKE2b-256 | 2ccc8e912585cdc60ed37f735390e6e0d0375be3db61675b6fd94a6d396defa0 |