https://github.com/cgohlke/qdafile
Read and write QDA files
https://github.com/cgohlke/qdafile
format-reader python
Last synced: about 1 year ago
JSON representation
Read and write QDA files
- Host: GitHub
- URL: https://github.com/cgohlke/qdafile
- Owner: cgohlke
- License: bsd-3-clause
- Created: 2020-02-22T22:36:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-25T17:29:15.000Z (about 2 years ago)
- Last Synced: 2024-10-29T21:30:44.577Z (over 1 year ago)
- Topics: format-reader, python
- Language: Python
- Homepage: https://pypi.org/project/qdafile
- Size: 23.4 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
..
This file is generated by setup.py
Read and write QDA files
========================
Qdafile is a Python library to read and write KaleidaGraph(tm) version 3.x
QDA data files.
KaleidaGraph is a registered trademark of `Abelbeck Software
`_.
Qdafile is no longer being actively developed.
:Author: `Christoph Gohlke `_
:License: BSD 3-Clause
:Version: 2025.1.1
Requirements
------------
This revision was tested with the following requirements and dependencies
(other versions may work):
- `CPython `_ 3.10.11, 3.11.9, 3.12.8, 3.13.1 64-bit
- `NumPy `_ 2.1.3
Revisions
---------
2025.1.1
- Improve type hints.
- Drop support for Python 3.9, support Python 3.13.
2024.5.24
- Support NumPy 2.
- Fix docstring examples not correctly rendered on GitHub.
- Add py.typed marker.
- Drop support for Python 3.8 and numpy < 1.22 (NEP29).
2022.9.28
- Return headers as str, not bytes (breaking).
- Add type hints.
- Convert to Google style docstrings.
- Drop support for Python 3.7 and numpy < 1.19 (NEP29).
2021.6.6
- Support os.PathLike file names.
- Drop support for Python 3.6 (NEP 29).
2020.1.1
- Drop support for Python 2.7 and 3.5.
Examples
--------
.. code-block:: python
>>> from qdafile import QDAfile
>>> QDAfile().write('_empty.qda')
>>> QDAfile(
... [[1.0, 2.0, 0.0], [3.0, 4.0, 5.0], [6.0, 7.0, 0.0]],
... rows=[2, 3, '2'],
... headers=['X', 'Y', 'Z'],
... dtypes=['>f8', '>i4', '>f4'],
... ).write('_test.qda')
>>> qda = QDAfile('_test.qda')
>>> print(qda)
file id: 12
columns: 3
rows: [2, 3, 2]
headers: ['X', 'Y', 'Z']
dtypes: ['>f8', '>i4', '>f4']
>>> qda.headers[2]
'Z'
>>> qda[2, : qda.rows[2]]
array([6., 7.])