Skip to content

Commit

Permalink
Add `ArchiveSection via diamond inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Daelman committed Nov 18, 2024
1 parent 25f371a commit 5ef5714
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nomad_simulations/schema_packages/properties/band_gap.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
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:
from nomad.datamodel.datamodel import EntryArchive
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',
Expand Down

0 comments on commit 5ef5714

Please sign in to comment.