From 5ef5714fc8b304f7a089aac3c436fa8cf82d453c Mon Sep 17 00:00:00 2001 From: Nathan Daelman Date: Mon, 18 Nov 2024 14:56:47 +0100 Subject: [PATCH] Add `ArchiveSection via diamond inheritance --- src/nomad_simulations/schema_packages/properties/band_gap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nomad_simulations/schema_packages/properties/band_gap.py b/src/nomad_simulations/schema_packages/properties/band_gap.py index 20ccb7a0..c149924c 100644 --- a/src/nomad_simulations/schema_packages/properties/band_gap.py +++ b/src/nomad_simulations/schema_packages/properties/band_gap.py @@ -5,6 +5,7 @@ from nomad.metainfo import MEnum, Quantity from nomad.metainfo.dataset import MDataset from nomad.datamodel.metainfo.physical_properties import PhysicalProperty +from nomad.datamodel.data import ArchiveSection from ..variables import SpinChannel, MomentumTransfer if TYPE_CHECKING: @@ -12,7 +13,7 @@ from structlog.stdlib import BoundLogger -class ElectronicBandGap(MDataset): # ? add optical band gap +class ElectronicBandGap(MDataset, ArchiveSection): # ? add optical band gap m_def = PhysicalProperty( type=np.float64, unit='joule',