@mat3ra/made 2024.11.16-0 → 2024.11.19-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mat3ra/made",
3
- "version": "2024.11.16-0",
3
+ "version": "2024.11.19-0",
4
4
  "description": "MAterials DEsign library",
5
5
  "scripts": {
6
6
  "lint": "eslint --cache src/js tests/js && prettier --write src/js tests/js",
@@ -452,7 +452,8 @@ class DefectPairBuilder(DefectBuilder):
452
452
  """
453
453
  primary_material = self.create_isolated_defect(primary_defect_configuration)
454
454
  # Remove metadata to allow for independent defect creation
455
- primary_material.metadata["build"] = primary_defect_configuration.crystal.metadata["build"]
455
+ if hasattr(primary_defect_configuration.crystal.metadata, "build"):
456
+ primary_material.metadata["build"] = primary_defect_configuration.crystal.metadata["build"]
456
457
  primary_material.name = primary_defect_configuration.crystal.name
457
458
  secondary_defect_configuration.crystal = primary_material
458
459
  secondary_material = self.create_isolated_defect(secondary_defect_configuration)