Skip to content

v0.9.0a1

Pre-release
Pre-release
Compare
Choose a tag to compare
@coretl coretl released this 09 Dec 11:37
· 20 commits to main since this release
f7126df

Changes

mock_puts_blocked is now sync rather than async

# old
async with mock_puts_blocked(sig):
    ...
# old
with mock_puts_blocked(sig):
    ...

All enums are now uppercase, and StrictEnum and SubsetEnum subclasses enforce this.

# old
trigger_mode = DetectorTrigger.internal
image_mode = adcore.ImageMode.multiple
# new
trigger_mode = DetectorTrigger.INTERNAL
image_mode = adcore.ImageMode.MULTIPLE

Testing utils moved to ophyd_async.testing

The following have moved to ophyd_async.testing and should be imported from there:
- assert_configuration
- assert_emitted
- assert_reading
- assert_value
- callback_on_mock_put
- get_mock
- get_mock_put
- mock_puts_blocked
- reset_mock_put_calls
- set_mock_put_proceeds
- set_mock_value
- set_mock_values
- wait_for_pending_wakeups

# old
from ophyd_async.core import set_mock_value
# new
from ophyd_async.testing import set_mock_value

What's Changed

  • Make mock_puts_blocked a sync contextmanager as it doesn't do any async things by @coretl in #672
  • Update all Enums to UPPER_CASE across the code base by @jennmald in #673
  • Add a hint to PandA if we can't find a block by @coretl in #668
  • Make name separator configurable by @coretl in #675
  • Prevent issues with writing data with software scans by @DiamondJoseph in #685
  • Add new timeout for observe_value by @coretl in #650
  • Ensure motors can be stopped by @Tom-Willemsen in #688
  • adjusted tests to avoid pytest.approx bool comparison by @evalott100 in #689
  • Remove mailmap by @coretl in #690
  • Allow for fields w/ epics_signal_rw_rbv, also support long strings/waveforms with PVA backend. by @jwlodek in #682
  • Add Python 3.12 to CI now that p4p is updated by @OCopping in #655
  • fixed bad logic introducted to test_observe by @evalott100 in #692
  • Fix SimMotor watcher output direction by @coretl in #670
  • Move testing utils from core to testing by @coretl in #695
  • Update copier template to 2.6.0 by @coretl in #698
  • Faster tango tests by @jsouter in #684

New Contributors

Full Changelog: v0.8.0...v0.9.0a1