adds non-req. attr. "description" to class Target
This commit is contained in:
@@ -157,6 +157,8 @@ class Target(Material):
|
||||
self.manufacturer = self.extra["Supplier"]["value"]
|
||||
except KeyError as k:
|
||||
raise KeyError(f"The provided dictionary lacks a \"{k}\" key - which is specific for PLD targets. Check the {self.name} target entry on eLabFTW and make sure you used the correct Resource template.")
|
||||
# Non-required attributes:
|
||||
self.description = material_data.get("body") or ""
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user