Skip to content

Commit

Permalink
rename SlipVector
Browse files Browse the repository at this point in the history
  • Loading branch information
srmnitc committed Jun 25, 2024
1 parent 6e02377 commit da30919
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions atomrdf/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down Expand Up @@ -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)))
Expand Down

0 comments on commit da30919

Please sign in to comment.