|
|
INFO
|
|
|
|
|
|
For the **Springer Materials** classification you have to run `classify4m_SM` code and as an argument you give the formula of your interest. It classifies your material on basis of our most recent **Springer Materials** database. The output of the code before normalization was given as follows:
|
|
|
command:
|
|
|
|
|
|
`python classify4me_SM_fun.py MgNd`
|
|
|
|
|
|
|
|
|
[example_SM_classification__MgNd.pdf](/uploads/c5b4f21c162eeb396e06993af0faf427/example_SM_classification__MgNd.pdf)
|
|
|
|
|
|
|
|
|
Now after normalization you will get:
|
|
|
|
|
|
`python classify4me_SM_normalizer.py MgNd`
|
|
|
|
|
|
[example_normalized_SM_classification__MgNd.pdf](/uploads/810404ee6e13f21b40aa9ac7bdff94cf/example_normalized_SM_classification__MgNd.pdf)
|
|
|
|
|
|
|
|
|
-----------------------------------------------------------------------------------
|
|
|
For the normalization reasons the backend part given bellow was added in the code:
|
|
|
|
|
|
|
|
|
|
|
|
### NORMALIZATION ###
|
|
|
#For normalization replaced json.dump with loop below
|
|
|
#json.dump({"section_springer_material":list(res.values())}, sys.stdout, indent=2, sort_keys=True, ensure_ascii=False)
|
|
|
for mat in res.values():
|
|
|
matS=backend.openSection("section_springer_material")
|
|
|
for cl in mat.get("section_springer_classification",[]):
|
|
|
clS = backend.openSection("section_springer_classification")
|
|
|
if "springer_classification" in cl:
|
|
|
backend.addValue("springer_classification",cl["springer_classification"])
|
|
|
if "springer_number_of_classification_reference_per_material" in cl:
|
|
|
backend.addValue("springer_number_of_classification_reference_per_material",cl["springer_number_of_classification_reference_per_material"])
|
|
|
backend.closeSection("section_springer_classification",clS)
|
|
|
for cl in mat.get("section_springer_compound_class",[]):
|
|
|
clS = backend.openSection("section_springer_compound_class")
|
|
|
if "springer_compound_class" in cl:
|
|
|
backend.addValue("springer_compound_class",cl["springer_compound_class"])
|
|
|
if "springer_number_of_compound_class_reference_per_material" in cl:
|
|
|
backend.addValue("springer_number_of_compound_class_reference_per_material",cl["springer_number_of_compound_class_reference_per_material"])
|
|
|
backend.closeSection("section_springer_compound_class",clS)
|
|
|
for cl in mat.get("section_springer_id",[]):
|
|
|
clS = backend.openSection("section_springer_id")
|
|
|
if "springer_id" in cl:
|
|
|
backend.addValue("springer_id",cl["springer_id"])
|
|
|
if "springer_url" in cl:
|
|
|
backend.addValue("springer_url",cl["springer_url"])
|
|
|
backend.closeSection("section_springer_id",clS)
|
|
|
for ref in cl.get("section_springer_references",[]):
|
|
|
refS = backend.openSection("section_springer_references")
|
|
|
if "springer_reference" in ref:
|
|
|
backend.addValue("springer_reference",ref["springer_reference"])
|
|
|
backend.closeSection("section_springer_references",refS)
|
|
|
if "springer_formula" in mat:
|
|
|
backend.addValue("springer_formula",mat["springer_formula"])
|
|
|
|
|
|
if "springer_space_group_number" in mat:
|
|
|
backend.addValue("springer_space_group_number",mat["springer_space_group_number"])
|
|
|
|
|
|
|
|
|
backend.closeSection("section_springer_material",matS)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|