Skip to content

Commit

Permalink
Ignore type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
orionarcher committed Mar 29, 2024
1 parent 59c12c0 commit dffb92c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions emmet-core/emmet/core/openmm/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from pathlib import Path
from typing import Optional, Union

import pandas as pd
from emmet.core.vasp.task_valid import TaskState
import pandas as pd # type: ignore[import-untyped]
from emmet.core.vasp.task_valid import TaskState # type: ignore[import-untyped]
from pydantic import BaseModel, Field

from atomate2.classical_md.schemas import ClassicalMDTaskDocument
Expand Down Expand Up @@ -160,11 +160,11 @@ def from_directory(
attributes = data.to_dict(orient="list")
else:
attributes = {name: None for name in column_name_map.values()}
state_file_name = None
state_file_name = None # type: ignore[assignment]

dcd_file = Path(dir_name) / dcd_file_name
dcd_is_not_empty = dcd_file.exists() and dcd_file.stat().st_size > 0
dcd_file_name = dcd_file_name if dcd_is_not_empty else None
dcd_file_name = dcd_file_name if dcd_is_not_empty else None # type: ignore

return CalculationOutput(
dir_name=str(dir_name),
Expand Down

0 comments on commit dffb92c

Please sign in to comment.