Skip to content

Releases: pcdshub/hutch-python

v1.22.0 (2024-12-19)

20 Dec 19:44
0828548
Compare
Choose a tag to compare

Features

  • Add pcdscalc.xray to the calc namespace.

  • Add top-level shortcuts to some of the most used calcs, E2lam, lam2E, bragg_angle, darwin_width, and transmission. E2lam is an alias for energy_to_wavelength and lam2E is an alias for wavelength_to_energy to match scientist expectations.

  • Added ability to ignore specific upstream devices when loading hutch-python.

    • UPSTREAM: The hutch's devices, and devices upstream from the requested hutch. If there are multiple paths to the requested hutch, all paths devices are loaded.
    • STANDARD: Devices gathered via UPSTREAM, plus devices that share the "beamline" field in happi with the UPSTREAM devices. (The current standard)
    • ALL: All devices in the happi database. Use this option at your own risk.

Bugfixes

  • Make test_create_arg agnostic to where pytest was invoked from
  • Fix an issue where the user could clobber their own elog object in a way that would allow the ElogPoster utility to load and then fail at scan time.

Maintenance

  • Updates documentation formatting for device load_level, and adds an ascii beamline map to the test suite

Contributors

  • janeliu-slac
  • tangkong
  • vespos
  • zllentz

Full Changelog: v1.21.0...v1.22.0

v1.21.0 (2024-08-20)

26 Aug 21:42
1185e27
Compare
Choose a tag to compare

Features

  • Automatically timeout and closes hutch-python sessions after the user has been
    idle for a certain number of hours. The number of hours can be set in conf.yml
    for each hutch. If no value is set the default timeout duration is 48 hours.

Maintenance

  • Document some first-pass efforts at running hutch-python in jupyter notebooks.
  • Fix an issue where an upstream numpy 2 incompatibilty was breaking the pypi builds.

Contributors

  • janeliu-slac
  • zllentz

v1.20.0 (2024-04-19)

19 Apr 17:26
a2b1b55
Compare
Choose a tag to compare

Features

  • Allow per-session separate ipython histories via --hist-file
    command-line argument. If omitted, default ipython behavior is used.
    When --hist-file is included with no argument, the history file
    will be written a local operator console hard drive, if available.
    An argument can be provided to use any file as the history.sqlite file.

Contributors

v1.19.0 (2024-04-15)

15 Apr 23:08
4e74846
Compare
Choose a tag to compare

Features

  • Updates EpicsArch script, adding several debug/testin flags and ensuring
    information is up-to-date. Includes:

    • update_file: feature that updates EpicsArch based on current questionnaire
    • --softlink: point arch file to new experiment via symbolic link
    • --level: specify a debug level
    • --cds-items: displays questionnaire data for a given run and experiment
    • --link-path: allows user to provide custom filepath for softlinks
  • Adds load_level conf.yaml key for choosing the method used to gather happi devices

Contributors

New Contributors

Full Changelog: v1.18.5...v1.19.0

v1.18.5 (2023-09-14)

14 Sep 21:13
1a82985
Compare
Choose a tag to compare

Maintenance

  • Strips whitespace from PVs gathered during cam_load routine.

Contributors

Full Changelog: v1.18.4...v1.18.5

v1.18.4 (2023-07-26)

26 Jul 18:48
fef6f96
Compare
Choose a tag to compare

Maintenance

  • Unpin strict pyqt pin, we now just require pyqt5 of any flavor.
  • Fix a bug where non-conda installs and non-standard conda installs
    (like mambabuild intermediates) would be unable to use the
    hutch-python --create cookiecutter tool.
  • Add send and recv methods to the fake zmq socket because newer
    versions of the lcls2 daq code are expecting recv.
  • Fix pyproject.toml typo docs -> doc.
  • Update requirements.txt for accuracy now that
    psdaq-control-minimal is available on pypi.
  • Include docs-versions-menu for the sphinx docs builds.

Contributors

v1.18.3 (2023-04-11)

11 Apr 20:51
4a58e06
Compare
Choose a tag to compare

Maintenance

  • Set the package name back to hutch-python for conda builds
    for consistency's sake.

Contributors

v1.18.2 (2023-04-11)

11 Apr 18:16
1aee4e0
Compare
Choose a tag to compare

Maintenance

  • Fix an issue where the test suite would not run with the latest
    lightpath. This was a test-suite only bug, not a runtime
    function bug.
  • Fix an issue where pypi/conda upload builds would not have
    proper authentication.

Contributors

  • zllentz

v1.18.1 (2023-04-04)

04 Apr 22:32
7917557
Compare
Choose a tag to compare

Bugfixes

  • Fix an edge case where all hutch devices may be skipped in the load
    if all of them are missing from lightpath.

Maintenance

  • hutch-python no longer uses Travis CI and has migrated to GitHub Actions for
    continuous integration, testing, and documentation deployment.
  • hutch-python has been migrated to use setuptools-scm, replacing versioneer, as its
    version-string management tool of choice.
  • hutch-python has been migrated to use the modern pyproject.toml, replacing
    setup.py and related files.
  • Older language features and syntax found in the repository have been updated
    to Python 3.9+ standards by way of pyupgrade.
  • Sphinx 6.0 is now supported for documentation building.
    docs-versions-menu replaces doctr-versions-menu and doctr usage
    for documentation deployment on GitHub Actions. The deployment key is now no
    longer required.
  • pyupgrade was used to update annotations, and pycln was used to clean up
    imports.

Contributors

v1.18.0 (2022-10-25)

26 Oct 23:24
b06c514
Compare
Choose a tag to compare

Features

  • Updates database loading to utilize updated lightpath (v1.0.0)
    for loading devices. This makes the newer, reworked version of
    lightpath available in the session instead of the old version.

Maintenance

  • Fix issues with running tests offline on LCLS servers.

Contributors

  • tangkong
  • zllentz

Full Changelog: v1.17.0...v1.18.0