Skip to content

Commit

Permalink
Improved/fixed functional data
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelRobidas committed Sep 11, 2022
1 parent f2d1669 commit 47802b3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
1 change: 0 additions & 1 deletion ccinput/calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ def __init__(
self.constraints = constraints

if name is None:
print(file)
if file is None:
self.name = "calc"
else:
Expand Down
18 changes: 10 additions & 8 deletions ccinput/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,12 @@ class CalcType(Enum):
"b1lyp": [],
"b3lyp": [],
"bhandhlyp": [],
"camb3lyp ": [],
"camb3lyp": [],
"lcblyp": [],
"o3lyp": [],
"x3lyp": [],
"wb2plyp": [],
"wb2gpplyp ": [],
"wb2gpplyp": [],
"b1p": [],
"b3p": [],
"g1lyp": [],
Expand Down Expand Up @@ -424,13 +424,14 @@ class CalcType(Enum):
"wb97xd3": [],
"wb97xv": [],
"wb97xd3bj": [],
"b98": [],
"tpssh": [],
"tpss0": [],
"b2plyp": [],
"mpw2plyp ": [],
"b2gpplyp ": [],
"b2kplyp ": [],
"b2tplyp ": [],
"mpw2plyp": [],
"b2gpplyp": [],
"b2kplyp": [],
"b2tplyp": [],
"pwpb95": [],
"b3p86": [],
"hse06": ["hse1pbe"],
Expand Down Expand Up @@ -1562,6 +1563,7 @@ class CalcType(Enum):
"wb97": "wB97",
"wb97x": "wB97X",
"wb97xd": "wB97XD", # Gaussian says dispersion model D2, not D3
"b98": "B98",
"camb3lyp": "CAM-B3LYP",
"lcwhpbe": "LC-wHPBE",
"tpssh": "TPSSH",
Expand Down Expand Up @@ -2462,7 +2464,7 @@ class CalcType(Enum):
"ssb", # ?
"b3pw91", # ?
"bmk",
"cam-b3lyp",
"camb3lyp",
"lcwpbe", # ?
"m052x",
"m05",
Expand All @@ -2487,7 +2489,7 @@ class CalcType(Enum):
"bmk",
"bop", # ?
"bpbe", # ?
"cam-b3lyp",
"camb3lyp",
"lcwpbe", # ?
"mpw1b95", # ?
"mpwb1k", # ?
Expand Down
2 changes: 2 additions & 0 deletions ccinput/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ def get_abs_software(software):

def get_abs_method(method):
_method = indexify(method)
print(_method)
for m in SYN_METHODS:
print(m, _method)
if _method in SYN_METHODS[m] or _method == m:
return m
raise InvalidParameter(f"Unknown method: '{method}'")
Expand Down
3 changes: 0 additions & 3 deletions ccinput/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,12 +458,9 @@ def get_input_from_args(args, default_params=None):
xyzs = [parse_xyz_from_file(f) for f in args.file]
files = args.file
if len(args.file) > 1 or args.name is None:
print("A")
names = [os.path.basename(f).split(".")[0] for f in args.file]
else:
print("B")
names = [args.name]
print(names)

if args.output != "":
head, tail = os.path.split(args.output)
Expand Down

0 comments on commit 47802b3

Please sign in to comment.