Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, '3.10', '3.11']
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions orsopy/_dataclasses.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

from dataclasses import dataclass, field, fields
22 changes: 0 additions & 22 deletions orsopy/dataclasses.py

This file was deleted.

14 changes: 13 additions & 1 deletion orsopy/fileio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,22 @@
Implementation of the Orso class that defined the header.
"""

import sys

from .base import (Column, ComplexValue, ErrorColumn, File, Header, Person, Value, ValueRange, ValueVector,
_read_header_data, _validate_header_data)
_read_header_data, _validate_header_data, ORSO_DATACLASSES)
from .data_source import DataSource, Experiment, InstrumentSettings, Measurement, Polarization, Sample
from .orso import ORSO_VERSION, Orso, OrsoDataset, load_orso, save_orso, load_nexus, save_nexus
from .reduction import Reduction, Software

this_module = sys.modules[__name__]

for _o in dir(this_module):
cls = getattr(this_module, _o)
try:
if issubclass(cls, Header):
ORSO_DATACLASSES[_o] = cls
except Exception:
pass

__all__ = [s for s in dir() if not s.startswith("_")]
Loading