markusro 947c4c7f8d normalize list/array handling in data classes
Establish one invariant across the Drawable hierarchy: x is always a
numpy ndarray, y is always a list of per-channel ndarrays, and empty
data is the same types with zero length.

- Drawable: x starts as empty ndarray; min/max helpers return 0 on
  empty data instead of raising; drop contradictory isinstance(self.y,
  list) branches
- ADC_Result/Accumulation: empty constructors build ndarray x; full
  constructors coerce x/y/y_square with numpy.asarray; Accumulation
  get_ydata/get_yerr return empty ndarrays and no longer crash on
  empty statistics-less accumulations
- MeasurementResult: fix get_lineplotdata to return the accumulated
  means (previously the never-populated self.y, so the GUI line plot
  could never draw); remove dead float/int branches in CSV and HDF
  writers
- Error_Result: get_xdata/get_ydata return ndarrays

Add unittest coverage for the invariant, empty-state accessors,
constructor coercion, line plot data, CSV output and HDF round-trip.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-18 16:38:41 +02:00
2026-10-16 22:36:08 +02:00
2026-07-13 17:02:25 +02:00
2026-10-02 11:26:23 +02:00

Installing into private directory
=================================

1. Create a venv and include the system-site packages:
   `python3 -m venv venv --system-site-packages`
2. Active that venv: `. venv/bin/activate`
3. Install an editable package: `pip install --no-deps -e .`

This will use the system packages already installed.

Alternatively you can install withoout the system-site-packages:

    python3 -m venv venv
    . venv/bin/activate
    pip install -e .

This will download newer packages and install them in the venv.


Using uv
========
Dependicies needed: 
    sudo apt install libgirepository1.0-dev pkg-config

Then you can start DAMARIS3:
    uv run DAMARIS3
S
Description
No description provided
Readme GPL-2.0
9.5 MiB
0 Stars 3 Watchers 0 Forks
v0.32
Latest
2026-10-22 15:03:48 +00:00
Languages
Python 98.8%
C++ 0.6%
Shell 0.6%