Skip to content

Commit

Permalink
Merge pull request #17 from als-computing/refactor_nersc_class_sfapi
Browse files Browse the repository at this point in the history
Small modifications to PR #16: Adding .env vars for sfapi credentials, import dependency fix
  • Loading branch information
dylanmcreynolds authored Apr 17, 2024
2 parents fbc221f + 914ceee commit 4a8eb64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions orchestration/flows/bl7012/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,19 @@
from orchestration import globus
from ptycho_nersc import NerscPtychoClient

import os

class Config7012:
def __init__(
self,
path_client_id,
path_priv_key,
) -> None:
config = globus.get_config()
self.endpoints = globus.build_endpoints(config)
self.apps = globus.build_apps(config)
self.tc: TransferClient = globus.init_transfer_client(self.apps["als_transfer"])
self.nersc = NerscPtychoClient(
path_client_id,
path_priv_key,
os.getenv("PATH_NERSC_ID"),
os.getenv("PATH_NERSC_PRI_KEY"),
)
self.nersc7012 = self.endpoints["nersc7012"]
self.data7012 = self.endpoints["data7012"]
2 changes: 1 addition & 1 deletion orchestration/flows/bl7012/ptycho_nersc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from orchestration.ptycho_jobscript import (
from orchestration.flows.bl7012.ptycho_jobscript import (
get_job_script,
cdtool_args_string,
ptychocam_args_string,
Expand Down

0 comments on commit 4a8eb64

Please sign in to comment.