Skip to content

Commit

Permalink
Merge branch 'main' into tdrive_task
Browse files Browse the repository at this point in the history
# Conflicts:
#	openff/qcsubmit/common_structures.py
  • Loading branch information
jthorton committed Jul 24, 2023
2 parents 836dbee + c17e96e commit 8326c34
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 60 deletions.
1 change: 1 addition & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Black 23
94875c5bb13a5734b720f99b181e0d6b8639ba39
9c9f44942e6d6164e4a014491134937b36299d1e
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fail-fast: false
matrix:
python-version:
- 3.8
- "3.9"
cfg:
- os: ubuntu-latest
conda-env: basic
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:

- name: Install Package
run: |
python setup.py develop --no-deps
python -m pip install .
- name: Conda Environment Information
run: |
Expand Down
37 changes: 0 additions & 37 deletions .github/workflows/Lint.yaml

This file was deleted.

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,7 @@ ENV/
.mypy_cache/

# PyCharm
.idea
.idea

# macOS
.DS_Store
15 changes: 3 additions & 12 deletions devtools/conda-envs/psi4.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: qcsubmit-test-psi4

channels:
- psi4
- conda-forge
- conda-forge/label/libint_dev # needed for psi4/libint2
- openeye
- defaults

dependencies:

Expand All @@ -25,26 +24,18 @@ dependencies:

- openeye-toolkits

# Psi4 dependencies
- psi4 =1.5
- libint2=*=hc9558a2_9
- intel-openmp!=2019.5
- gau2grid >=2.0
- psi4 =1.8

### Core dependencies.

- openff-toolkit-base >= 0.11.3
# argcomplete (brought in via BSE) pulls down totally incorrect builds of `importlib_metadata`,
- importlib_metadata >=4
- importlib-metadata >=4
- rdkit
- pydantic
- pydantic =1
- pyyaml
- qcportal>=0.15.7
- torsiondrive
- basis_set_exchange
- typing-extensions
- cachetools
- h5py>=3.6.0

# Optional
Expand Down
26 changes: 23 additions & 3 deletions openff/qcsubmit/common_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,19 @@
import re
from datetime import date, datetime
from enum import Enum
from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Optional, Set, Tuple, Union
from typing import (
TYPE_CHECKING,
AbstractSet,
Any,
ClassVar,
Dict,
List,
Mapping,
Optional,
Set,
Tuple,
Union,
)

import numpy as np
import qcportal as ptl
Expand Down Expand Up @@ -35,6 +47,14 @@
)
from openff.qcsubmit.utils.smirnoff import split_openff_molecule

if TYPE_CHECKING:
DictStrAny = Dict[str, Any]
IntStr = Union[int, str]
AbstractSetIntStr = AbstractSet[IntStr]
DictIntStrAny = Dict[IntStr, Any]
MappingIntStrAny = Mapping[IntStr, Any]


if TYPE_CHECKING:
from pydantic import AbstractSetIntStr

Expand Down Expand Up @@ -766,14 +786,14 @@ class Metadata(DatasetConfig):
None,
description="The name that will be given to the collection once it is put into QCArchive, this is updated when attached to a dataset.",
)
short_description: Optional[constr(min_length=8, regex="[a-zA-Z]")] = Field(
short_description: Optional[constr(min_length=8, regex="[a-zA-Z]")] = Field( # noqa
None, description="A short informative description of the dataset."
)
long_description_url: Optional[HttpUrl] = Field(
None,
description="The url which links to more information about the submission normally a github repo with scripts showing how the dataset was created.",
)
long_description: Optional[constr(min_length=8, regex="[a-zA-Z]")] = Field(
long_description: Optional[constr(min_length=8, regex="[a-zA-Z]")] = Field( # noqa
None,
description="A long description of the purpose of the dataset and the molecules within.",
)
Expand Down
4 changes: 2 additions & 2 deletions openff/qcsubmit/datasets/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ class _BaseDataset(abc.ABC, CommonBase):
...,
description="The name of the dataset, this will be the name given to the collection in QCArchive.",
)
dataset_tagline: constr(min_length=8, regex="[a-zA-Z]") = Field(
dataset_tagline: constr(min_length=8, regex="[a-zA-Z]") = Field( # noqa
...,
description="The tagline should be a short description of the dataset which will be displayed by the QCArchive client when the collections are listed.",
)
type: Literal["_BaseDataset"] = Field(
"_BaseDataset",
description="The dataset type corresponds to the type of collection that will be made in QCArchive.",
)
description: constr(min_length=8, regex="[a-zA-Z]") = Field(
description: constr(min_length=8, regex="[a-zA-Z]") = Field( # noqa
...,
description="A long description of the datasets purpose and details about the molecules within.",
)
Expand Down
4 changes: 2 additions & 2 deletions openff/qcsubmit/tests/test_submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,8 +783,8 @@ def test_optimization_submissions(fractal_compute_server, specification):
# if we used psi4 make sure the properties were captured
if program == "psi4":
result = record.get_trajectory()[0]
assert "CURRENT DIPOLE X" in result.extras["qcvars"].keys()
assert "SCF QUADRUPOLE XX" in result.extras["qcvars"].keys()
assert "SCF DIPOLE" in result.extras["qcvars"].keys()
assert "SCF QUADRUPOLE" in result.extras["qcvars"].keys()


def test_optimization_submissions_with_pcm(fractal_compute_server):
Expand Down
1 change: 0 additions & 1 deletion openff/qcsubmit/tests/utils/test_smirnoff.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import networkx as nx
import numpy
import pytest

from openff.qcsubmit.utils.smirnoff import (
combine_openff_molecules,
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ exclude_lines =
max-line-length = 88
ignore = E203, E266, E501, W503
select = B,C,E,F,W,T4,B9
per-file-ignores =
openff/qcsubmit/datasets/dataset_utils.py:W605
openff/qcsubmit/datasets/datasets.py:W605

[isort]
multi_line_output=3
Expand Down

0 comments on commit 8326c34

Please sign in to comment.