def sigproc_test(self, jobs_folder):
    '\n        This is adapted from zest_sigproc_v2_integration\n        '
    profile_folder = (jobs_folder / '_profile')
    profile_folder.delete()
    job_folder = (profile_folder / 'sigproc_test')
    source_folder = (profile_folder / '_synth_field')
    job_folder.mkdir()
    source_folder.mkdir()
    dim = (1024, 1024)
    n_channels = 1
    n_cycles = 10
    n_peaks = 500
    psf_width = 1.5
    bg_mean = 100.0
    bg_std = 30.0
    gain = 5000.0

    def _synth_field(fl_i):
        with synth.Synth(n_channels=n_channels, n_cycles=n_cycles, dim=dim) as s:
            peaks = synth.PeaksModelGaussianCircular(n_peaks=n_peaks).locs_randomize().widths_uniform(psf_width).amps_constant(gain)
            synth.CameraModel(bg_mean=bg_mean, bg_std=bg_std)
            synth.HaloModel()
            synth.IlluminationQuadraticFalloffModel()
        chcy_ims = s.render_chcy(0)
        for ch_i in range(chcy_ims.shape[0]):
            for cy_i in range(chcy_ims.shape[1]):
                np.save(str((source_folder / f'area_{fl_i:03d}_cell_000_{ch_i:03d}nm_{cy_i:03d}.npy')), chcy_ims[(ch_i, cy_i)])
    n_fields = 2
    for fl_i in range(n_fields):
        _synth_field(fl_i)
    run_p([f'gen', f'sigproc_v2', f'--job={job_folder}', f'--sigproc_source={source_folder}', f'--force', f'--self_calib'])
    log_file = (local.path(local.env['PLASTER_ROOT']) / 'plaster.log')
    log_file.delete()
    run_p(['run', job_folder, '--no_progress', '--skip_reports'])
    profile_lines = profile_from_file(log_file)
    with colors.fg.DeepSkyBlue3:
        print()
        print(h_line('--'))
        print('PROFILE RESULTS')
        print(h_line('--'))
    profile_dump(profile_lines)
This is adapted from zest_sigproc_v2_integration
def sigproc_test(self, jobs_folder):
    '\n        \n        '
    profile_folder = (jobs_folder / '_profile')
    profile_folder.delete()
    job_folder = (profile_folder / 'sigproc_test')
    source_folder = (profile_folder / '_synth_field')
    job_folder.mkdir()
    source_folder.mkdir()
    dim = (1024, 1024)
    n_channels = 1
    n_cycles = 10
    n_peaks = 500
    psf_width = 1.5
    bg_mean = 100.0
    bg_std = 30.0
    gain = 5000.0

    def _synth_field(fl_i):
        with synth.Synth(n_channels=n_channels, n_cycles=n_cycles, dim=dim) as s:
            peaks = synth.PeaksModelGaussianCircular(n_peaks=n_peaks).locs_randomize().widths_uniform(psf_width).amps_constant(gain)
            synth.CameraModel(bg_mean=bg_mean, bg_std=bg_std)
            synth.HaloModel()
            synth.IlluminationQuadraticFalloffModel()
        chcy_ims = s.render_chcy(0)
        for ch_i in range(chcy_ims.shape[0]):
            for cy_i in range(chcy_ims.shape[1]):
                np.save(str((source_folder / f'area_{fl_i:03d}_cell_000_{ch_i:03d}nm_{cy_i:03d}.npy')), chcy_ims[(ch_i, cy_i)])
    n_fields = 2
    for fl_i in range(n_fields):
        _synth_field(fl_i)
    run_p([f'gen', f'sigproc_v2', f'--job={job_folder}', f'--sigproc_source={source_folder}', f'--force', f'--self_calib'])
    log_file = (local.path(local.env['PLASTER_ROOT']) / 'plaster.log')
    log_file.delete()
    run_p(['run', job_folder, '--no_progress', '--skip_reports'])
    profile_lines = profile_from_file(log_file)
    with colors.fg.DeepSkyBlue3:
        print()
        print(h_line('--'))
        print('PROFILE RESULTS')
        print(h_line('--'))
    profile_dump(profile_lines)