Skip to main content

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

qass_tools_analyzer-2.6.tar.gz (68.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qass_tools_analyzer-2.6-py3-none-any.whl (75.7 kB view details)

Uploaded Python 3

File details

Details for the file qass_tools_analyzer-2.6.tar.gz.

File metadata

  • Download URL: qass_tools_analyzer-2.6.tar.gz
  • Upload date:
  • Size: 68.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for qass_tools_analyzer-2.6.tar.gz
Algorithm Hash digest
SHA256 f5d47178b42821937ccbd5824d02fe9266b1d1fc93c55ec6cf57b841d14079d1
MD5 84cc589ed026cd743710f4395bd14330
BLAKE2b-256 ff78aef255e6ffee2e5b82a4d331a9a4f679f393f8a2971d7ead5110fac03126

See more details on using hashes here.

File details

Details for the file qass_tools_analyzer-2.6-py3-none-any.whl.

File metadata

File hashes

Hashes for qass_tools_analyzer-2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 25fc7229b402e7473a0077c0f9db70e894d8dc5d2349402b249ee35324218cb5
MD5 008b416c582157e25da3670a8d75a796
BLAKE2b-256 77739ed9c5fd3654a6ce795c73bbf6969f5ef4a5ea17af3b257f8670ca631509

See more details on using hashes here.

Supported by

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