more use(less,ful) comments

This commit is contained in:
2026-02-10 14:46:57 +01:00
parent c49aa23aea
commit 5aa7527cca
3 changed files with 9 additions and 4 deletions

View File

@@ -44,6 +44,8 @@ if __name__=="__main__":
elif data.get("category_title") in ["PLD Target", "Substrate"]:
item = Material(data)
print(item.get_compound_formula(apikey))
else:
raise Exception("The selected item or experiment is not in one of the following categories: [Sample, PLD Target, Substrate, PLD Deposition].")
result = item.__dict__
result.pop("extra")
print(result)