From da30919f445f592b960e21b59739c1dcfc971ecd Mon Sep 17 00:00:00 2001 From: Sarath Date: Tue, 25 Jun 2024 14:05:46 +0200 Subject: [PATCH] rename SlipVector --- atomrdf/structure.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/atomrdf/structure.py b/atomrdf/structure.py index 6b0f0eb..737330f 100644 --- a/atomrdf/structure.py +++ b/atomrdf/structure.py @@ -343,7 +343,7 @@ def _make_dislocation( disl_dict = { 'BurgersVector': burgers_vector, 'SlipPlane': slip_plane, - 'SlipVector': slip_direction, + 'SlipDirection': slip_direction, 'DislocationLine': dislocation_line, 'DislocationCharacter': angle_deg, } @@ -1994,9 +1994,9 @@ def add_dislocation(self, disl_dict): self.graph.add((line_defect, LDO.hasBurgersVector, burgers_vector)) slip_direction = self.graph.create_node(f"{self._name}_DislocationSlipDirection", LDO.SlipDirection) - self.graph.add((slip_direction, CMSO.hasComponent_x, Literal(disl_dict['SlipVector'][0], datatype=XSD.float))) - self.graph.add((slip_direction, CMSO.hasComponent_y, Literal(disl_dict['SlipVector'][1], datatype=XSD.float))) - self.graph.add((slip_direction, CMSO.hasComponent_z, Literal(disl_dict['SlipVector'][2], datatype=XSD.float))) + self.graph.add((slip_direction, CMSO.hasComponent_x, Literal(disl_dict['SlipDirection'][0], datatype=XSD.float))) + self.graph.add((slip_direction, CMSO.hasComponent_y, Literal(disl_dict['SlipDirection'][1], datatype=XSD.float))) + self.graph.add((slip_direction, CMSO.hasComponent_z, Literal(disl_dict['SlipDirection'][2], datatype=XSD.float))) slip_plane = self.graph.create_node(f"{self._name}_DislocationSlipPlane", LDO.NormalVector) self.graph.add((slip_plane, CMSO.hasComponent_x, Literal(disl_dict['SlipPlane'][0], datatype=XSD.float)))