Skip to content

Commit 0d1203d

Browse files
committed
pre-commit run black -a
1 parent d851e35 commit 0d1203d

File tree

27 files changed

+360
-222
lines changed

27 files changed

+360
-222
lines changed

atomate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.1"
1+
__version__ = "1.0.1"

atomate/common/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__author__ = 'Anubhav Jain <[email protected]>'
1+
__author__ = "Anubhav Jain <[email protected]>"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__author__ = 'Anubhav Jain <[email protected]>'
1+
__author__ = "Anubhav Jain <[email protected]>"

atomate/common/firetasks/parse_outputs.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import json
22
import os
33

4-
from fireworks import explicit_serialize, FiretaskBase, FWAction
5-
from fireworks.utilities.fw_serializers import DATETIME_HANDLER
6-
7-
from atomate.utils.utils import env_chk, get_logger, load_class
84
from atomate.common.firetasks.glue_tasks import get_calc_loc
5+
from atomate.utils.utils import env_chk, get_logger, load_class
6+
from fireworks import FiretaskBase, FWAction, explicit_serialize
7+
from fireworks.utilities.fw_serializers import DATETIME_HANDLER
98

109
__author__ = "Shyam Dwaraknath <[email protected]>, Anubhav Jain <[email protected]>"
1110

@@ -53,7 +52,7 @@ def run_task(self, fw_spec):
5352

5453
# parse the calc directory
5554
logger.info(
56-
f"PARSING DIRECTORY: {calc_dir} USING DRONE: {self['drone'].__class__.__name__}".
55+
f"PARSING DIRECTORY: {calc_dir} USING DRONE: {self['drone'].__class__.__name__}"
5756
)
5857
# get the database connection
5958
db_file = env_chk(self.get("db_file"), fw_spec)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__author__ = 'Anubhav Jain <[email protected]>'
1+
__author__ = "Anubhav Jain <[email protected]>"

atomate/lammps/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__author__ = 'Kiran Mathew'
1+
__author__ = "Kiran Mathew"

atomate/qchem/test_files/FF_before_run/orig/test_cust.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@
55
my_input = "test.qin"
66
my_output = "test.qout"
77

8-
myjob = QCJob.opt_with_frequency_flattener(qchem_command="qchem -slurm",multimode="openmp",input_file=my_input,output_file=my_output,max_iterations=10,max_molecule_perturb_scale=0.3,max_cores=12)
9-
myhandler = QChemErrorHandler(input_file=my_input,output_file=my_output)
8+
myjob = QCJob.opt_with_frequency_flattener(
9+
qchem_command="qchem -slurm",
10+
multimode="openmp",
11+
input_file=my_input,
12+
output_file=my_output,
13+
max_iterations=10,
14+
max_molecule_perturb_scale=0.3,
15+
max_cores=12,
16+
)
17+
myhandler = QChemErrorHandler(input_file=my_input, output_file=my_output)
1018

11-
c = Custodian([myhandler],myjob,max_errors_per_job=10,max_errors=10)
19+
c = Custodian([myhandler], myjob, max_errors_per_job=10, max_errors=10)
1220

1321
c.run()
14-

atomate/qchem/test_files/FF_before_run/test_cust.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@
55
my_input = "test.qin"
66
my_output = "test.qout"
77

8-
myjob = QCJob.opt_with_frequency_flattener(qchem_command="qchem -slurm",multimode="openmp",input_file=my_input,output_file=my_output,max_iterations=10,max_molecule_perturb_scale=0.3,max_cores=12)
9-
myhandler = QChemErrorHandler(input_file=my_input,output_file=my_output)
8+
myjob = QCJob.opt_with_frequency_flattener(
9+
qchem_command="qchem -slurm",
10+
multimode="openmp",
11+
input_file=my_input,
12+
output_file=my_output,
13+
max_iterations=10,
14+
max_molecule_perturb_scale=0.3,
15+
max_cores=12,
16+
)
17+
myhandler = QChemErrorHandler(input_file=my_input, output_file=my_output)
1018

11-
c = Custodian([myhandler],myjob,max_errors_per_job=10,max_errors=10)
19+
c = Custodian([myhandler], myjob, max_errors_per_job=10, max_errors=10)
1220

1321
c.run()
14-

atomate/qchem/test_files/FF_working/test_cust.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@
55
my_input = "test.qin"
66
my_output = "test.qout"
77

8-
myjob = QCJob.opt_with_frequency_flattener(qchem_command="qchem -slurm",multimode="openmp",input_file=my_input,output_file=my_output,max_iterations=10,max_molecule_perturb_scale=0.3,max_cores=12)
9-
myhandler = QChemErrorHandler(input_file=my_input,output_file=my_output)
8+
myjob = QCJob.opt_with_frequency_flattener(
9+
qchem_command="qchem -slurm",
10+
multimode="openmp",
11+
input_file=my_input,
12+
output_file=my_output,
13+
max_iterations=10,
14+
max_molecule_perturb_scale=0.3,
15+
max_cores=12,
16+
)
17+
myhandler = QChemErrorHandler(input_file=my_input, output_file=my_output)
1018

11-
c = Custodian([myhandler],myjob,max_errors_per_job=10,max_errors=10)
19+
c = Custodian([myhandler], myjob, max_errors_per_job=10, max_errors=10)
1220

1321
c.run()
14-

atomate/qchem/test_files/real_run/test_cust.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@
55
my_input = "mol.qin"
66
my_output = "mol.qout"
77

8-
myjob = QCJob(qchem_command="qchem -slurm",multimode="openmp",input_file=my_input,output_file=my_output,max_cores=12)
9-
myhandler = QChemErrorHandler(input_file=my_input,output_file=my_output)
8+
myjob = QCJob(
9+
qchem_command="qchem -slurm",
10+
multimode="openmp",
11+
input_file=my_input,
12+
output_file=my_output,
13+
max_cores=12,
14+
)
15+
myhandler = QChemErrorHandler(input_file=my_input, output_file=my_output)
1016

11-
c = Custodian([myhandler],[myjob],max_errors_per_job=10,max_errors=10)
17+
c = Custodian([myhandler], [myjob], max_errors_per_job=10, max_errors=10)
1218

1319
c.run()
14-

0 commit comments

Comments
 (0)