Skip to content

Commit

Permalink
Merge pull request #49 from molssi-seamm/dev
Browse files Browse the repository at this point in the history
Starting switch to standard structure handling
  • Loading branch information
seamm authored Nov 2, 2023
2 parents 444e31a + c386fce commit 5951119
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions read_structure_step/read_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ def create_parser(self):
# Remember if the parser exists ... this type of step may have been
# found before
parser_exists = parser.exists(parser_name)
print(f"{parser_exists=}")

# Create the standard options, e.g. log-level
result = super().create_parser(name=parser_name)
Expand Down Expand Up @@ -212,9 +211,7 @@ def run(self):

# Read the file into the system
system_db = self.get_variable("_system_db")
system, configuration = self.get_system_configuration(
P, structure_handling=True
)
system, configuration = self.get_system_configuration(P, same_as=None)

configurations = read(
filename,
Expand Down Expand Up @@ -327,7 +324,7 @@ def read_tarfile(self, tarfile_path, P):
# Read the file into the system
system_db = self.get_variable("_system_db")
system, configuration = self.get_system_configuration(
P, structure_handling=True
P, same_as=None
)

read(
Expand Down
2 changes: 1 addition & 1 deletion read_structure_step/write_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def run(self):

# Write the file into the system
system_db = self.get_variable("_system_db")
system, configuration = self.get_system_configuration(P)
system, configuration = self.get_system_configuration()

structures = P["structures"]
configs = P["configurations"]
Expand Down
4 changes: 2 additions & 2 deletions versioneer.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,9 @@ def get_config_from_root(root):
# configparser.NoOptionError (if it lacks "VCS="). See the docstring at
# the top of versioneer.py for instructions on writing your setup.cfg .
setup_cfg = os.path.join(root, "setup.cfg")
parser = configparser.SafeConfigParser()
parser = configparser.ConfigParser()
with open(setup_cfg, "r") as f:
parser.readfp(f)
parser.read_file(f)
VCS = parser.get("versioneer", "VCS") # mandatory

def get(parser, name):
Expand Down

0 comments on commit 5951119

Please sign in to comment.