more use(less,ful) comments
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user