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

Release sage 2.0.0 #418

Merged
merged 11 commits into from
Dec 18, 2024
Git LFS file not shown
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@

import numpy as np
import requests
import logging
logging.getLogger("openff").setLevel(logging.ERROR)

from openff.qcsubmit.results import OptimizationResultCollection
from openff.qcsubmit.datasets import OptimizationDataset
from openff.qcsubmit.factories import OptimizationDatasetFactory
from openff.qcsubmit.common_structures import MoleculeAttributes
import numpy as np

from openff.toolkit.utils import OpenEyeToolkitWrapper, ToolkitRegistry
from openff.units import unit
import logging
logging.getLogger("openff").setLevel(logging.ERROR)

filtered_and_combined = OptimizationResultCollection.parse_file(
"/Users/jennifer.clark/bin/openff-sage/data-set-curation/quantum-chemical/data-sets/1-2-0-opt-set-v3.json",
# "/Users/jennifer.clark/bin/openff-sage/data-set-curation/quantum-chemical/data-sets/1-2-0-td-set.json",
)
file = requests.get("https://raw.githubusercontent.com/openforcefield/openff-sage/refs/heads/main/data-set-curation/quantum-chemical/data-sets/1-2-0-opt-set-v3.json")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to super, super pedantic, you can use the GitHub permalink: https://raw.githubusercontent.com/openforcefield/openff-sage/37a36e7eeaf6cdca795847089a288bdff168c08a/data-set-curation/quantum-chemical/data-sets/1-2-0-opt-set-v3.json. It's kinda annoying to get this (click the ... in the upper right, copy permalink, then click raw for the raw file at the permalink), but it should always point to this exact file version instead of whatever main happens to be. This is especially unlikely to matter here because this repo is basically an archive anyway, though.

filtered_and_combined = OptimizationResultCollection.parse_raw(file.content)
rec_and_mol = filtered_and_combined.to_records()

print('Number of results: ',filtered_and_combined.n_results,flush=True)
Expand Down
Loading