Skip to content

Commit

Permalink
upload all
Browse files Browse the repository at this point in the history
  • Loading branch information
jcwang587 committed Feb 19, 2024
1 parent 2959f04 commit 3868987
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions xdatbus/fml01_xml2xyz.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ def xml2xyz(xml_dir="./", output_path="./", train_ratio=1.0):
print(f"xdatbus-func | xml2xyz: Processing {xml_file}")
xml_path = os.path.join(xml_dir, xml_file)
xml_set = read(xml_path, index="::")
for atom in xml_set:
if "free_energy" in atom.calc.results:
del atom.calc.results["free_energy"]
data_set.extend(xml_set)

if train_ratio < 1.0:
Expand Down Expand Up @@ -67,12 +70,7 @@ def main():

args = parser.parse_args()

# xml2xyz(args.xml_dir, args.output_path, args.train_ratio)

xml2xyz(
xml_dir="../tests/data/vasprun",
output_path="./",
)
xml2xyz(args.xml_dir, args.output_path, args.train_ratio)


if __name__ == "__main__":
Expand Down

0 comments on commit 3868987

Please sign in to comment.