Skip to content

Commit

Permalink
chore: revert some lines
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Oct 22, 2024
1 parent d0d4655 commit 2554ce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/py/mat3ra/made/tools/build/defect/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@ def create_material_with_additional_layers_int(self, material: Material, added_t

new_material = material.clone()
termination = Termination.from_string(new_material.metadata.get("build").get("termination"))
build_config = new_material.metadata.get("build").get("configuration").copy()
build_config = new_material.metadata.get("build").get("configuration")

if build_config["type"] != "SlabConfiguration":
raise ValueError("Material is not a slab.")
build_config.pop("type")
build_config["thickness"] += added_thickness
build_config["thickness"] = build_config["thickness"] + added_thickness

new_slab_config = SlabConfiguration(**build_config)
material_with_additional_layers = create_slab(new_slab_config, termination)
Expand Down

0 comments on commit 2554ce8

Please sign in to comment.