diff --git a/src/nomad_simulations/schema_packages/physical_property.py b/src/nomad_simulations/schema_packages/physical_property.py index 5bb728bc..28553c54 100644 --- a/src/nomad_simulations/schema_packages/physical_property.py +++ b/src/nomad_simulations/schema_packages/physical_property.py @@ -202,7 +202,7 @@ def variables_shape(self) -> Optional[list]: return [] @property - def full_shape(self) -> list: + def full_shape(self) -> list: # TODO: add support for N-dim variables """ Full shape of the physical property. This quantity is calculated as a concatenation of the `variables_shape` and `rank`: @@ -252,13 +252,6 @@ def __init__( 'The used property is not defined in the FAIRmat taxonomy (https://fairmat-nfdi.github.io/fairmat-taxonomy/). You can contribute there if you want to extend the list of available materials properties.' ) - # Checking if the quantities `n_` are defined, as this are used to calculate `rank` - for quantity, _ in self.m_def.all_quantities.items(): - if quantity.startswith('n_') and getattr(self, quantity) is None: - raise ValueError( - f'`{quantity}` is not defined during initialization of the class.' - ) - def __setattr__(self, name: str, val: Any) -> None: # For the special case of `value`, its `shape` needs to be defined from `_full_shape` if name == 'value':