❯ find nslsii -name "*.py" | grep -v tests | sed 's/.__init__.py//g' | sed 's/._version//g' | sed 's/__main__.py//g' | sed 's;/;.;g' | sed 's/\.py//g'| sort -u
nslsii
nslsii.ad33
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
from time import sleep | |
import click | |
from tqdm import trange | |
@click.command() | |
@click.option("-c", "--count", default=60, help="Duration in seconds to wait") | |
def timer(count): | |
"""Wait for the specified number of seconds and print the progress bar.""" |
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
#!/bin/bash | |
export GHA_TOKEN="${GITHUB_TOKEN}" | |
repo_name="nsls2-collection" | |
# https://github.com/nsls2-conda-envs/nsls2-collection/suites/11056519298/artifacts/562062216 | |
artifact_id="562062216" | |
envname="2023-1.2-py39" | |
archive_name="${envname}.zip" | |
curl -L -H "Authorization: token ${GHA_TOKEN}" "https://api.github.com/repos/nsls2-conda-envs/${repo_name}/actions/artifacts/${artifact_id}/zip" > ${archive_name} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 datetime | |
import pprint | |
import uuid | |
import cv2 | |
import matplotlib.pyplot as plt | |
from bloptools.gp.utils import get_beam_stats | |
from bluesky_kafka import RemoteDispatcher | |
from bluesky_kafka.consume import BasicConsumer | |
from nslsii.kafka_utils import _read_bluesky_kafka_config_file |
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
from pyOlog.ophyd_tools import _normalize_positioners, _print_pos | |
def log_pos(positioners=None, extra_msg=None, objlen=200): | |
"""Get the current position of Positioners and make a logbook entry. | |
Print to the screen the position of the positioners and make a logbook text | |
entry. This routine also creates session information in the logbook so | |
positions can be recovered. | |
Parameters | |
---------- |
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
[I'm an inline-style link](https://www.somewebsite.com) | |
[I'm an inline-style link with title](https://www.somewebsite.com "somewebsite's Homepage") | |
[I'm a reference-style link][Arbitrary case-insensitive reference text] | |
[I'm a relative reference to a repository file](../blob/master/LICENSE) | |
[You can use numbers for reference-style link definitions][1] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env python | |
import os | |
try: | |
__IPYTHON__ | |
import sys | |
del sys.argv[1:] | |
except: | |
pass | |
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 github import Github | |
token = os.getenv("GITHUB_API_TOKEN", "") | |
g = Github(token) | |
repos = g.get_organization("bluesky").get_repos() | |
repos = [r for r in repos] | |
repos_releases = {} |
NewerOlder