Commit 8df58b0b authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Removed non primitive provider specific properties form optimade, because they...

Removed non primitive provider specific properties form optimade, because they cant be encoded without exception.
parent b5042df7
Pipeline #109321 failed with stages
in 26 minutes and 46 seconds
......@@ -15,14 +15,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from typing import Tuple, Generator
from typing import Tuple, Generator, cast
from nomad.metainfo.metainfo import Quantity, Reference
from nomad.metainfo.search_extension import Search
from nomad.search import search_quantities
def provider_specific_fields() -> Generator[Tuple[str, Search], None, None]:
for search_quantity in search_quantities.values():
quantity = cast(Quantity, search_quantity.definition)
if isinstance(quantity.type, Reference):
# we can't yet support those
continue
nmd_name = search_quantity.qualified_name
nmd_name_split = nmd_name.split('.')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment