From 0112a006d959838374c39251c58a1e0445a7e390 Mon Sep 17 00:00:00 2001 From: Fanwang Meng Date: Sat, 5 Oct 2024 11:22:14 -0400 Subject: [PATCH] Refactor the `compile` function as it's built in function --- atomdb/__init__.py | 4 ++-- atomdb/__main__.py | 6 +++--- atomdb/species.py | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/atomdb/__init__.py b/atomdb/__init__.py index d4e5db69..d0c07a05 100644 --- a/atomdb/__init__.py +++ b/atomdb/__init__.py @@ -26,7 +26,7 @@ from atomdb.periodic import element_number, element_symbol, element_name -from atomdb.species import compile, load, dump, raw_datafile +from atomdb.species import compile_species, load, dump, raw_datafile from atomdb.promolecule import make_promolecule @@ -38,7 +38,7 @@ "element_number", "element_symbol", "element_name", - "compile", + "compile_species", "load", "dump", "raw_datafile", diff --git a/atomdb/__main__.py b/atomdb/__main__.py index 729cd21a..77413a7a 100644 --- a/atomdb/__main__.py +++ b/atomdb/__main__.py @@ -17,7 +17,7 @@ from argparse import ArgumentParser -from atomdb import compile, load +from atomdb import compile_species, load # Initialize command line argument parser @@ -31,7 +31,7 @@ command_group = command.add_mutually_exclusive_group(required=True) command_group.add_argument( - "-c", "--compile", action="store_true", help="compile a species into the database" + "-c", "--compile_species", action="store_true", help="compile_species a species into the database" ) command_group.add_argument( @@ -60,7 +60,7 @@ if args.compile: - compile(args.elem, args.charge, args.mult, args.exc, args.dataset) + compile_species(args.elem, args.charge, args.mult, args.exc, args.dataset) elif args.query: diff --git a/atomdb/species.py b/atomdb/species.py index c74f3692..1c3daad8 100644 --- a/atomdb/species.py +++ b/atomdb/species.py @@ -47,7 +47,7 @@ __all__ = [ "Species", - "compile", + "compile_species", "dump", "load", "raw_datafile", @@ -712,7 +712,7 @@ def ked_func(self): pass -def compile( +def compile_species( elem, charge, mult,