Esempio n. 1
0
def test_smoke(lt_ctx):
    """
    just check if the analysis runs without throwing exceptions:
    """
    data = _mk_random(size=(16 * 16, 16, 16), dtype="float32")
    dataset = MemoryDataSet(data=data, tileshape=(1, 16, 16),
                            num_partitions=2, sig_dims=2)
    blobfinder.run_blobfinder(ctx=lt_ctx, dataset=dataset, parameters={
        'num_disks': 1,
        'radius': 4,
        'padding': 0,
        'mask_type': 'radial_gradient',
    })
def test_smoke(lt_ctx):
    """
    just check if the analysis runs without throwing exceptions:
    """
    data = _mk_random(size=(16 * 16, 16, 16), dtype="float32")
    dataset = MemoryDataSet(data=data,
                            tileshape=(1, 16, 16),
                            num_partitions=2,
                            sig_dims=2)
    match_pattern = blobfinder.RadialGradient(radius=4)
    blobfinder.run_blobfinder(ctx=lt_ctx,
                              dataset=dataset,
                              num_peaks=1,
                              match_pattern=match_pattern)