Skip to content

Commit

Permalink
use proper default field in Phi dataclass
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspie committed Feb 2, 2024
1 parent b92182b commit af71977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynxtools/dataconverter/readers/xps/phi/phi_data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ class PhiSpectralRegion(PhiDataclass):
region_hero: str = ""
region_ir: str = ""
n_values: int = 0
energy: np.ndarray = np.array([])
energy: np.ndarray = field(default_factory=lambda: np.zeros(0))


@dataclass
Expand Down

0 comments on commit af71977

Please sign in to comment.