diff --git a/src/nomad_simulations/schema_packages/physical_property.py b/src/nomad_simulations/schema_packages/physical_property.py index 5bb728bc..4ce63115 100644 --- a/src/nomad_simulations/schema_packages/physical_property.py +++ b/src/nomad_simulations/schema_packages/physical_property.py @@ -14,7 +14,7 @@ SectionProxy, SubSection, ) -from nomad.metainfo.metainfo import Dimension, DirectQuantity, _placeholder_quantity +from nomad.metainfo.metainfo import Dimension if TYPE_CHECKING: from nomad.datamodel.datamodel import EntryArchive @@ -120,7 +120,7 @@ class PhysicalProperty(ArchiveSection): # ! add more examples in the description to improve the understanding of this quantity ) - rank = DirectQuantity( + rank = Quantity( type=Dimension, shape=['0..*'], default=[], @@ -137,7 +137,7 @@ class PhysicalProperty(ArchiveSection): variables = SubSection(sub_section=Variables.m_def, repeats=True) # * `value` must be overwritten in the derived classes defining its type, unit, and description - value: Quantity = _placeholder_quantity + value: Quantity = None entity_ref = Quantity( type=Entity,