Skip to content

AssertionError from APD_devices.setup_lorentzian_swait #259

@prjemian

Description

@prjemian

fails here:

~/Apps/anaconda/envs/db-test/lib/python3.7/site-packages/apstools/synApps/swait.py in _setup_peak_swait_(calc, desc, swait, ref_signal, center, width, scale, noise)
    225     # consider a noisy background, as well (needs a couple calcs)
    226     assert(isinstance(swait, SwaitRecord))
--> 227     assert(isinstance(ref_signal, EpicsSignal))
    228     assert(width > 0)
    229     assert(0.0 <= noise <= 1.0)

from this call:

APS_devices.setup_lorentzian_swait(
    calcs.calc1,
    m1.user_readback,
    center = 2*np.random.random() - 1,
    width = 0.015 * np.random.random(),
    scale = 10000 * (9 + np.random.random()),
    noise=0.05,
)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions