Skip to content

Commit

Permalink
ObjectId: Purges final Obj/int confusions
Browse files Browse the repository at this point in the history
  • Loading branch information
dgasmith committed May 28, 2019
1 parent 3d6dfa5 commit 54993c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
coverage:
ignore:
- */tests/*
- qcfractal/dashboard/* # early state
- qcfractal/migrations/* # difficult to test
- qcfractal/_version.py
- setup.py
status:
Expand Down
2 changes: 1 addition & 1 deletion qcfractal/interface/models/task_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class PythonComputeSpec(BaseModel):

class TaskRecord(BaseModel):

id: Union[ObjectId, int] = None
id: ObjectId = None

spec: PythonComputeSpec
parser: str
Expand Down
6 changes: 3 additions & 3 deletions qcfractal/interface/models/torsiondrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class TorsionDriveInput(BaseModel):

program: _td_constr = "torsiondrive"
procedure: _td_constr = "torsiondrive"
initial_molecule: List[Union[ObjectId, Molecule, int]]
initial_molecule: List[Union[ObjectId, Molecule]]
keywords: TDKeywords
optimization_spec: OptimizationSpecification
qc_spec: QCSpecification
Expand Down Expand Up @@ -78,15 +78,15 @@ class TorsionDriveRecord(RecordBase):
program: _td_constr = "torsiondrive"

# Input data
initial_molecule: List[Union[ObjectId, int]]
initial_molecule: List[ObjectId]
keywords: TDKeywords
optimization_spec: OptimizationSpecification
qc_spec: QCSpecification

# Output data
final_energy_dict: Dict[str, float]

optimization_history: Dict[str, List[Union[ObjectId, int]]]
optimization_history: Dict[str, List[ObjectId]]
minimum_positions: Dict[str, int]

class Config(RecordBase.Config):
Expand Down

0 comments on commit 54993c5

Please sign in to comment.