We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We would like to be able to configure mappings as follows:
mapping1 = client.create_mapping( mappingType="triples", prefixes={ "emmo": EMMO, "map": MAP, "cif": CIF, "structure": STRUCTURE, "energy": ENERGY, "forces": FORCES, }, triples = [ (STRUCTURE.positions, MAP.mapsTo, EMMO.PositionVector), (STRUCTURE.symbols, MAP.mapsTo, EMMO.Symbol), (STRUCTURE.cell, MAP.mapsTo, CIF.cell), ] )
where EMMO, MAP, ... are tripper namespaces. However, the MappingConfig pydantic model requires us to write
EMMO
MAP
mapping1 = client.create_mapping( mappingType="triples", prefixes={ "emmo": str(EMMO), "map": str(MAP), "cif": str(CIF), "structure": str(STRUCTURE), "energy": str(ENERGY), "forces": str(FORCES), }, triples = [ (STRUCTURE.positions, MAP.mapsTo, EMMO.PositionVector), (STRUCTURE.symbols, MAP.mapsTo, EMMO.Symbol), (STRUCTURE.cell, MAP.mapsTo, CIF.cell), ] )
which is not that nice.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We would like to be able to configure mappings as follows:
where
EMMO
,MAP
, ... are tripper namespaces. However, the MappingConfig pydantic model requires us to writewhich is not that nice.
The text was updated successfully, but these errors were encountered: