In notebook with SD analysis and circular ROI:
nx, ny = ds.shape.nav
roi = masks.circular(centerX=22.367344631814362, centerY=75.2197918337658, imageSizeX=nx, imageSizeY=ny, radius=11.25)
sd_udf = StdDevUDF()
sd_result = ctx.run_udf(dataset=ds, udf=sd_udf)
The ROI is generated correctly, but not used when running the UDF.
Edit: It should be sd_result = ctx.run_udf(dataset=ds, udf=sd_udf, roi=roi)
Probably one should check other analyses that use the ROI as well, namely sum.
why random_hdf5 has np.ones((5, 5, 16, 16)) as data ?
why
random_hdf5hasnp.ones((5, 5, 16, 16))as data ?
My guess: it's a copy/paste error. Good catch! If you change it to generate random data instead, do any of the tests break?
No, tests are working fine.
Fixed in #857