Libertem: ROI not used in generated template for SD analysis

Created on 24 Jul 2020  路  5Comments  路  Source: LiberTEM/LiberTEM

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)

bug notebooks

All 5 comments

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_hdf5 has np.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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fedorov picture fedorov  路  5Comments

uellue picture uellue  路  7Comments

uellue picture uellue  路  9Comments

sk1p picture sk1p  路  7Comments

unsimulatable picture unsimulatable  路  9Comments