Skip to content

Commit 5041594

Browse files
authored
Merge pull request #736 from janosh/random
Squash a few more issues
2 parents 8fe9f6f + e9b7fb0 commit 5041594

File tree

78 files changed

+331
-376
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+331
-376
lines changed

.circleci/images/py3/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ FROM python:3.6.4
33
RUN apt-get update && apt-get install -y gfortran python-openbabel python-vtk python3-tk
44
RUN wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
55
RUN bash Miniconda3-latest-Linux-x86_64.sh -b
6-
RUN export PATH=$HOME/miniconda3/bin:$PATH
6+
RUN export PATH=$HOME/miniconda3/bin:$PATH

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Summary
22

3-
<Short few sentences, and summary of the major changes in bullet
3+
<Short few sentences, and summary of the major changes in bullet
44
points>
55

66
* Feature 1
@@ -10,7 +10,7 @@ points>
1010

1111
## TODO (if any)
1212

13-
<If this is a work-in-progress, write something about what else needs
13+
<If this is a work-in-progress, write something about what else needs
1414
to be done>
1515

16-
* Feature 1 supports a, but not b.
16+
* Feature 1 supports a, but not b.

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
exclude: ^(docs/|.*test_files/|.*tests/)
2+
13
repos:
24
- repo: https://github.com/myint/autoflake
35
rev: v1.4

CHANGES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
(see changelog in the docs)
1+
(see changelog in the docs)

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ for such Enhancements, then you hereby grant the following license:
4343
a non-exclusive, royalty-free perpetual license to install, use,
4444
modify, prepare derivative works, incorporate into other computer
4545
software, distribute, and sublicense such enhancements or derivative
46-
works thereof, in binary and source code form.
46+
works thereof, in binary and source code form.

atomate/common/firetasks/glue_tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ def setup_copy(
344344
(e.g., rename 'INCAR' to 'INCAR.precondition')
345345
continue_on_missing(bool): Whether to continue copying when a file
346346
in filenames is missing. Defaults to False.
347-
from_path_dict (dict): dict specification of the path. If specified must contain atleast
348-
the key "path" that specifies the path to the from_dir.
347+
from_path_dict (dict): dict specification of the path. If specified must contain at
348+
least the key "path" that specifies the path to the from_dir.
349349
"""
350350
from_path_dict = from_path_dict or {}
351351
from_dir = env_chk(from_dir, fw_spec, strict=False) or from_path_dict.get(

atomate/feff/firetasks/glue_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class CopyFeffOutputs(CopyFiles):
1818
search for the most recent calc_loc with the matching name.
1919
calc_dir (str): path to dir that contains VASP output files.
2020
filesystem (str): remote filesystem. e.g. username@host
21-
exclude_files (list): list fo filenames to be excluded when copying.
21+
exclude_files (list): list of filenames to be excluded when copying.
2222
"""
2323

2424
optional_params = ["calc_loc", "calc_dir", "filesystem", "exclude_files"]

atomate/feff/firetasks/parse_outputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class AddPathsToFilepadTask(FiretaskBase):
103103
Optional_params:
104104
labels (list): list of labels to tag the inserted files. Useful for querying later.
105105
filepad_file (str): path to the filepad connection settings file.
106-
compress (bool): wether or not to compress the file contents before insertion.
106+
compress (bool): Whether or not to compress the file contents before insertion.
107107
metadata (dict): metadata.
108108
"""
109109

atomate/feff/firetasks/tests/test_tasks.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@ def setUp(self):
2727
def test_copy_feff_outputs_task(self):
2828
t = CopyFeffOutputs(calc_dir=os.path.join(module_dir, "..", "..", "test_files"))
2929
t.run_task({})
30-
ans = ["Co2O2.cif", "feff_eels.inp", "feo_781777.json"]
30+
answer = ["Co2O2.cif", "feff_eels.inp", "feo_781777.json"]
3131
files = glob("*")
32-
self.assertEqual(sorted(ans), sorted(files))
32+
self.assertEqual(sorted(answer), sorted(files))
3333

3434
def test_write_paths_task(self):
3535
exafs = MPEXAFSSet(0, self.struct, edge="K", radius=10)
3636
t = WriteEXAFSPaths(feff_input_set=exafs, paths=[[249, 0], [85, 0]])
3737
paths = Paths(exafs.atoms, [[249, 0], [85, 0]])
38-
paths.write_file("paths_ans.dat")
38+
paths.write_file("paths_answer.dat")
3939
t.run_task({})
40-
with open("paths_ans.dat") as ans, open("paths.dat") as tmp:
41-
self.assertEqual(ans.readlines(), tmp.readlines())
40+
with open("paths_answer.dat") as answer, open("paths.dat") as tmp:
41+
self.assertEqual(answer.readlines(), tmp.readlines())
4242

4343

4444
if __name__ == "__main__":

atomate/feff/fireworks/tests/test_fireworks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ def test_exafs_paths_fw(self):
2424
fw = EXAFSPathsFW(0, self.struct, [[249, 0], [85, 0]])
2525
fw_dict = fw.as_dict()
2626
self.assertEqual(len(fw_dict["spec"]["_tasks"]), 5)
27-
ans = [
27+
answer = [
2828
"{{atomate.feff.firetasks.glue_tasks.CopyFeffOutputs}}",
2929
"{{atomate.feff.firetasks.write_inputs.WriteFeffFromIOSet}}",
3030
"{{atomate.feff.firetasks.write_inputs.WriteEXAFSPaths}}",
3131
"{{atomate.feff.firetasks.run_calc.RunFeffDirect}}",
3232
"{{atomate.feff.firetasks.parse_outputs.AddPathsToFilepadTask}}",
3333
]
34-
self.assertEqual(ans, [ft["_fw_name"] for ft in fw_dict["spec"]["_tasks"]])
34+
self.assertEqual(answer, [ft["_fw_name"] for ft in fw_dict["spec"]["_tasks"]])
3535

3636

3737
if __name__ == "__main__":

0 commit comments

Comments
 (0)