Analyzer package for qass_tools
Project description
Analyzer package for Qass Tools
This package contains python modules that can be used to interact with the Analyzer4D software or with the data it produces.
It provides:
- A parser for the files containing the measurement data by the Analyzer4D
- An index to query for measurement data
- A database abstraction for the Analyzer4D
- Abstractions for modules available in the operator network of the Analyzer4D
Check out the documentation!
Installation
Just install using pypi.
pip install qass-tools-analyzer
Or install as a developer. Having the working directory of your terminal in the repository folder:
pip install -e .
Examples
Read Buffer files
In the example we provide the path to a buffer file to the Buffer class and use the with-statement to open it to read the process number.
from qass.tools.analyzer.buffer_parser import Buffer
buffer_file = "path/to/my/buffer_file"
with Buffer(buffer_file) as buff:
print(buff.process)
data = buff.get_data() # this is a numpy array
Query Buffer files
In this example we create an instance of the cache and synchronize it with the directory my/directory.
We then create a template BufferMetadata object and use it with the cache to query for all buffers with a compression_frq = 8.
You can use all properties that are in BufferMetadata.properties. The BufferMetadataCache.get_matching_buffers() method
returns a list of Buffer objects that are in this case sorted by their process number (as specified in the sort_key).
from qass.tools.analyzer.buffer_metadata_cache import BufferMetadataCache as BMC, BufferMetadata as BM, select
cache = BMC()
cache.synchronize_directory("my/directory")
results = cache.get_matching_buffers(query=select(BM).filter(BM.compression_frq==8).order_by(BM.process))
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qass_tools_analyzer-2.7.tar.gz.
File metadata
- Download URL: qass_tools_analyzer-2.7.tar.gz
- Upload date:
- Size: 59.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3c599540acc1be353328dd38be3949ad6f0c19570076730625201fcdad4d83a
|
|
| MD5 |
d963f40d1433564bbf229e0f7e6db705
|
|
| BLAKE2b-256 |
e7196e654427dbbc479bb4e316e1df0740b287dfd51d43d170aebda934759080
|
File details
Details for the file qass_tools_analyzer-2.7-py3-none-any.whl.
File metadata
- Download URL: qass_tools_analyzer-2.7-py3-none-any.whl
- Upload date:
- Size: 67.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41b3333294468ca627c4363ba6b64eb58d67ecd1faf3aec0a8f4f2c5c6045fa8
|
|
| MD5 |
d14b35be79faf7706c45c7c2776aae3f
|
|
| BLAKE2b-256 |
37114cda4ac741c472f17b64b7b08eca2f4198efdea1e25c198c67ea7959da54
|