Created
April 24, 2023 19:12
-
-
Save IAlibay/d2189a92101e434b9752e8198e8065ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from pprint import pprint | |
from alchemiscale import AlchemiscaleClient, Scope, ScopedKey | |
user_id = os.environ['ALCHEMISCALE_ID'] | |
user_key = os.environ['ALCHEMISCALE_KEY'] | |
asc = AlchemiscaleClient('https://api.alchemiscale.org', user_id, user_key) | |
scope = Scope('openfe', 'v0_7_3', 'tyk2_off2_0') | |
with open('scoped-key.dat', 'r') as f: | |
network = asc.get_network(f.read()) | |
transformation_sks = [] | |
for transform in network.edges: | |
transformation_sks.append(asc.get_scoped_key(transform, scope)) | |
failures = [] | |
for sk in transformation_sks: | |
tasks = asc.get_transformation_tasks(sk) | |
for task in tasks: | |
status = asc.get_tasks_status(task)[0] | |
if status.value == 'error': | |
print(task) | |
print(asc.get_task_failures(task)[0].protocol_unit_failures[0].traceback) | |
#failures.append(asc.get_task_failures(task)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment