|
|
**INFO**
|
|
|
|
|
|
For testing the normalized **prototypes classification** one shall run `classify4m_prototypes.py` code and give as an argument formula of the interest.
|
|
|
|
|
|
The program classifies the material on the basis of **prototypes** (stored in `structure_types.py` that can be imported from nomadcore in python-common). The output of the code for examplar cases is presented below:
|
|
|
|
|
|
command:
|
|
|
|
|
|
`python classify4me_prototypes.py < example.inp`
|
|
|
|
|
|
INPUT:
|
|
|
```
|
|
|
{
|
|
|
"type": "nomad_section_2_0",
|
|
|
"name": "section_system",
|
|
|
"gIndex": 0,
|
|
|
"uri": "nmd://NcC8TDWGWCtQLhWeB2a1N8y9Q7y4r/Cx_ur73_FOgMaVin27w-dT6nh3dvN/section_run/0c/section_system/0c",
|
|
|
"atom_labels": [{"flatData":["In"],"shape":[1]}],
|
|
|
"atom_positions": [{"flatData":[0.0,0.0,0.0],"shape":[1,3]}],
|
|
|
"configuration_periodic_dimensions": [{"flatData":[true,true,true],"shape":[3]}],
|
|
|
"simulation_cell": {"flatData":[-1.83172656E-10,1.83172656E-10,1.83172656E-10,1.83172656E-10,-1.83172656E-10,1.83172656E-10,1.83172656E-10,1.83172656E-10,-1.83172656E-10],"shape":[3,3]}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
OUTPUT:
|
|
|
```
|
|
|
{
|
|
|
"event":"openContext",
|
|
|
"nomadUri":"nmd://NcC8TDWGWCtQLhWeB2a1N8y9Q7y4r/Cx_ur73_FOgMaVin27w-dT6nh3dvN/section_run/0c/section_system/0c"
|
|
|
}, {
|
|
|
"event":"addValue",
|
|
|
"gIndex":-1,
|
|
|
"metaName":"prototype_label",
|
|
|
"value":"229-W-cI2"
|
|
|
}, {
|
|
|
"event":"closeContext",
|
|
|
"nomadUri":"nmd://NcC8TDWGWCtQLhWeB2a1N8y9Q7y4r/Cx_ur73_FOgMaVin27w-dT6nh3dvN/section_run/0c/section_system/0c"
|
|
|
}
|
|
|
``` |
|
|
\ No newline at end of file |