markusro 804996cbd4 fix time_period latent crashes: treat missing time information as None
time_period is list[datetime] | None at runtime (None from old-format
HDF5 files, [] from the constructor), but several sites subscripted
it unguarded and crashed with TypeError/IndexError.

- annotate time_period as list[datetime.datetime] | None
- copy paths (get_accu_by_index, __iadd__ self-empty) use the guarded
  pattern already present in _copy_provenance
- merges in __add__/__iadd__ only combine min/max when both sides carry
  time information; otherwise the result is None (provenance unknown)
- write_to_tecmag raises ValueError when no time information is
  available instead of crashing while writing the header

Clears all remaining time_period pyrefly errors (72 -> 63). Unit tests
reproduce the crashes and pass with the fix.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-18 15:12:57 +02:00
2026-10-16 22:36:08 +02:00
2026-10-02 11:33:02 +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%