Skip to content

Commit

Permalink
Merge pull request #5 from molssi-seamm/bugfixes
Browse files Browse the repository at this point in the history
Fixed small typos and bugs.
  • Loading branch information
paulsaxe authored Oct 13, 2021
2 parents de52dcf + 9a96838 commit ad02b34
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/BranchCI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
light-ci:
name: Lint ubuntu-latest Py3.8
name: Lint ubuntu-latest Py3.9
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -20,7 +20,7 @@ jobs:
# More info on options: https://github.com/conda-incubator/setup-miniconda
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.8
python-version: 3.9
environment-file: devtools/conda-envs/test_env.yaml
activate-environment: test
auto-update-conda: false
Expand All @@ -46,5 +46,5 @@ jobs:
with:
file: ./coverage.xml
flags: unittests
name: codecov-ubuntu-latest-py3.8
name: codecov-ubuntu-latest-py3.9

6 changes: 3 additions & 3 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

jobs:
lint:
name: Lint ubuntu-latest Py3.8
name: Lint ubuntu-latest Py3.9
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -31,7 +31,7 @@ jobs:
# More info on options: https://github.com/conda-incubator/setup-miniconda
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.8
python-version: 3.9
environment-file: devtools/conda-envs/test_env.yaml
activate-environment: test
auto-update-conda: false
Expand All @@ -56,7 +56,7 @@ jobs:
strategy:
matrix:
os: [macOS-latest, ubuntu-latest, windows-latest]
python-version: [3.7, 3.8]
python-version: [3.8, 3.9]
steps:
- uses: actions/checkout@v1
- name: Additional info about the build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: push

jobs:
docs:
name: Docs ubuntu-latest Py3.8
name: Docs ubuntu-latest Py3.9
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -20,7 +20,7 @@ jobs:
# More info on options: https://github.com/conda-incubator/setup-miniconda
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.8
python-version: 3.9
environment-file: devtools/conda-envs/test_env.yaml
activate-environment: test
auto-update-conda: false
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/Release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
lint:
name: Lint ubuntu-latest Py3.8
name: Lint ubuntu-latest Py3.9
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -21,7 +21,7 @@ jobs:
# More info on options: https://github.com/conda-incubator/setup-miniconda
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.8
python-version: 3.9
environment-file: devtools/conda-envs/test_env.yaml
activate-environment: test
auto-update-conda: false
Expand All @@ -46,7 +46,7 @@ jobs:
strategy:
matrix:
os: [macOS-latest, ubuntu-latest, windows-latest]
python-version: [3.7, 3.8]
python-version: [3.8, 3.9]
steps:
- uses: actions/checkout@v1
- name: Additional info about the build
Expand Down Expand Up @@ -80,18 +80,18 @@ jobs:
name: codecov-${{ matrix.os }}-py${{ matrix.python-version }}

deploy:
name: PyPi ubuntu-latest Py3.8
name: PyPi ubuntu-latest Py3.9
# Run only for tagged releases publishing development or release candidates
# only to test.pypi, otherwise to both it and the main pypi.
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
needs: [lint, test]
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: 3.9
- name: Install package
shell: bash -l {0}
run: |
Expand Down
3 changes: 1 addition & 2 deletions devtools/conda-envs/test_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:

# molsystem requires, and only available via Conda.
- openbabel
- seamm

# Testing
- black
Expand All @@ -18,8 +19,6 @@ dependencies:

# Pip-only installs
- pip:
- seamm

# Documentation
- rinohtype
- pygments
Expand Down
12 changes: 9 additions & 3 deletions dftbplus_step/choose_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,24 +100,30 @@ def get_input(self):
if P["subset"] == "none":
subset = None
else:
subset = dataset[P["subset"]]
subset = datasets[P["subset"]]
subpairs = subset["potential pairs"]

# Broadcast to the parent so that other substesp can use
# Broadcast to the parent so that other substeps can use
self.parent._dataset = dataset
self.parent._subset = subset

for el1 in elements:
for el2 in elements:
key = f"{el1}-{el2}"
# Not sure if flipping the key is valid....
key2 = f"{el2}-{el1}"
if subset is not None and key in subpairs:
md5sum = subpairs[key]["md5sum"]
elif key in pairs:
md5sum = pairs[key]["md5sum"]
elif subset is not None and key2 in subpairs:
md5sum = subpairs[key2]["md5sum"]
elif key2 in pairs:
md5sum = pairs[key2]["md5sum"]
else:
raise RuntimeError(
f"Could not find the Slater-Koster file for {key} "
"for dataset {P['dataset']}, subset {P['subset']}."
f"for dataset {P['dataset']}, subset {P['subset']}."
)
parameters[key] = str(slako_dir / potentials[md5sum]["filename"])

Expand Down
4 changes: 2 additions & 2 deletions dftbplus_step/energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ def get_input(self):
damping = P["Damping Exponent"]
block["Exponent"] = damping
else:
dftb["HCorrection"] = "No"
PP["HCorrection"] = "No"
dftb["HCorrection"] = "None {}"
PP["HCorrection"] = "None {}"
else:
dftb["HCorrection"] = hcorrection
if hcorrection == "Damping":
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
entry_points={
'console_scripts': [
Expand Down

0 comments on commit ad02b34

Please sign in to comment.