Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Statistics abstraction pattern #74

Merged
merged 33 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions openqdc/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
from typing_extensions import Annotated

from openqdc import AVAILABLE_DATASETS, AVAILABLE_POTENTIAL_DATASETS
from openqdc.raws.config_factory import DataConfigFactory
from openqdc.raws.fetch import DataDownloader
from openqdc.raws.config_factory import DataConfigFactory, DataDownloader

app = typer.Typer(help="OpenQDC CLI")

Expand Down Expand Up @@ -65,7 +64,7 @@ def datasets():
table = PrettyTable(["Name", "Type of Energy", "Forces", "Level of theory"])
for dataset in AVAILABLE_DATASETS:
empty_dataset = AVAILABLE_DATASETS[dataset].no_init()
has_forces = False if not empty_dataset.__force_methods__ else True
has_forces = False if not empty_dataset.force_mask else True
en_type = "Potential" if dataset in AVAILABLE_POTENTIAL_DATASETS else "Interaction"
table.add_row(
[
Expand Down
Loading
Loading