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))
Release files for qass-tools-analyzer 2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qass_tools_analyzer-2.7.tar.gz | 59.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qass_tools_analyzer-2.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 126.9 kB
Release files / qass_tools_analyzer-2.7.tar.gz
| Download URL | qass_tools_analyzer-2.7.tar.gz |
|---|---|
| Size | 59.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3c599540acc1be353328dd38be3949ad6f0c19570076730625201fcdad4d83a
|
|
BLAKE2b-256 checksum How to use checksums |
e7196e654427dbbc479bb4e316e1df0740b287dfd51d43d170aebda934759080
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / qass_tools_analyzer-2.7-py3-none-any.whl
| Download URL | qass_tools_analyzer-2.7-py3-none-any.whl |
|---|---|
| Size | 67.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41b3333294468ca627c4363ba6b64eb58d67ecd1faf3aec0a8f4f2c5c6045fa8
|
|
BLAKE2b-256 checksum How to use checksums |
37114cda4ac741c472f17b64b7b08eca2f4198efdea1e25c198c67ea7959da54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|