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

Rename sync-redis to sync-experiment #177

Merged
merged 2 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file added nslsii/sync_experiment/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions nslsii/sync_experiment/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .sync_experiment import main, sync_experiment, validate_proposal
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def should_they_be_here(username, new_data_session, beamline):
class AuthorizationError(Exception): ...


def switch_experiment(proposal_number, beamline, verbose=False, prefix=""):
def sync_experiment(proposal_number, beamline, verbose=False, prefix=""):

redis_client = redis.Redis(host=f"info.{beamline.lower()}.nsls2.bnl.gov")

Expand Down Expand Up @@ -125,7 +125,7 @@ def switch_experiment(proposal_number, beamline, verbose=False, prefix=""):


def main():
# Used by the `sync-redis` command
# Used by the `sync-experiment` command

parser = argparse.ArgumentParser(description="Start or switch beamline experiment and record it in Redis")
parser.add_argument("-b", "--beamline", dest="beamline", type=str, help="Which beamline (e.g. CHX)", required=True)
Expand Down
1 change: 0 additions & 1 deletion nslsii/sync_redis/__init__.py

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
entry_points={
"console_scripts": [
# 'command = some.module:some_function',
"sync-redis = nslsii.sync_redis:main",
"sync-experiment = nslsii.sync_experiment:main",
],
},
)
Loading