Skip to content

Commit

Permalink
Optional energy_type
Browse files Browse the repository at this point in the history
  • Loading branch information
FNTwin committed Jun 5, 2024
1 parent d52353a commit fa14d5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openqdc/datasets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(
energy_unit: Optional[str] = None,
distance_unit: Optional[str] = None,
array_format: str = "numpy",
energy_type: str = "formation",
energy_type: Optional[str] = "formation",
overwrite_local_cache: bool = False,
cache_dir: Optional[str] = None,
recompute_statistics: bool = False,
Expand All @@ -112,7 +112,7 @@ def __init__(
Format to return arrays in. Supported formats: ["numpy", "torch", "jax"]
energy_type
Type of isolated atom energy to use for the dataset. Default: "formation"
Supported types: ["formation", "regression", "null"]
Supported types: ["formation", "regression", "null", None]
overwrite_local_cache
Whether to overwrite the locally cached dataset.
cache_dir
Expand All @@ -133,7 +133,7 @@ def __init__(
self.recompute_statistics = recompute_statistics
self.regressor_kwargs = regressor_kwargs
self.transform = transform
self.energy_type = energy_type
self.energy_type = energy_type if energy_type is not None else "null"
self.refit_e0s = recompute_statistics or overwrite_local_cache
if not self.is_preprocessed():
raise DatasetNotAvailableError(self.__name__)
Expand Down

0 comments on commit fa14d5e

Please sign in to comment.