From 39650234a834c5c819ccbe140275cc1cab094b13 Mon Sep 17 00:00:00 2001 From: Andreas Pedersen Date: Tue, 5 Nov 2024 06:34:14 +0100 Subject: [PATCH] index to zero rather than none --- src/easyreflectometry/project.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/easyreflectometry/project.py b/src/easyreflectometry/project.py index ae969f66..97d221c2 100644 --- a/src/easyreflectometry/project.py +++ b/src/easyreflectometry/project.py @@ -49,10 +49,10 @@ def __init__(self): self._q_min: float = None self._q_max: float = None self._q_resolution: int = None - self._current_material_index: int = None - self._current_model_index: int = None - self._current_assembly_index: int = None - self._current_layer_index: int = None + self._current_material_index = 0 + self._current_model_index = 0 + self._current_assembly_index = 0 + self._current_layer_index = 0 # Project flags self._created = False