Type mismatch in method normalization
A misuse of typing has snuck into nomad/normalizing/method.py
.
The type Method
is only imported from nomad.datamodel.results
, however, basis_set_type(self, repr_method: Method)
is ingesting a run.Method
, contradicting the declared types.
These mistakes seem more widespread, as hubbard_kanamori_model
most likely also has the wrong typing.
The solution is to introduce both Method
classes, run over the execution, and assign the appropriate type.