Skip to content

Commit

Permalink
Merge pull request #34 from pyscal/add_names
Browse files Browse the repository at this point in the history
turn on names default
  • Loading branch information
srmnitc authored Jun 26, 2023
2 parents 8388a4d + 9549425 commit 802d09c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyscal_rdf/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def add(self, triple):
if str(triple[2].toPython()) != 'None':
self.graph.add(triple)

def add_structure_to_graph(self, structure, names=False, name_index=None, format=None):
def add_structure_to_graph(self, structure, names=True, name_index=None, format=None):
"""
Add a given :py:class:`pyscal.core.System` to the Graph object
Expand Down
8 changes: 4 additions & 4 deletions pyscal_rdf/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, graph_file=None,
self._structure_dict = structures

def create_element(self, element, repetitions=(1,1,1),
noise=0, add_to_graph=True, names=False):
noise=0, add_to_graph=True, names=True):
"""
Create a crystal structure of the given element
Expand Down Expand Up @@ -71,7 +71,7 @@ def create_structure(self, structure,
lattice_constant = 1.00,
repetitions = None, ca_ratio = 1.633,
noise = 0, element=None,
add_to_graph=True, names=False):
add_to_graph=True, names=True):
"""
Create a crystal structure and return it as a System object.
Expand Down Expand Up @@ -122,7 +122,7 @@ def create_structure(self, structure,
return sys

def read_structure(self, filename, format="lammps-dump",
add_to_graph=True, names=False):
add_to_graph=True, names=True):
"""
Read an input file and return it as a System object.
Expand Down Expand Up @@ -162,7 +162,7 @@ def create_grain_boundary(self, axis,
repetitions=(1,1,1),
overlap=0.0,
add_to_graph=True,
names=False):
names=True):
"""
Create a grain boundary structure and return it as a System object.
Expand Down

0 comments on commit 802d09c

Please sign in to comment.