Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supplying numbers to init_args #119

Open
gipert opened this issue Feb 24, 2025 · 0 comments
Open

Supplying numbers to init_args #119

gipert opened this issue Feb 24, 2025 · 0 comments

Comments

@gipert
Copy link
Member

gipert commented Feb 24, 2025

passing numbers to init_args, as in

processors:
  wf_gaus:
    description: Gaussian-filtered raw waveform
    function: gaussian_filter1d
    module: dspeed.processors
    args:
      - waveform_bit_drop
      - wf_gaus(
        len(waveform_bit_drop),
        period=waveform_bit_drop.period,
        offset=waveform_bit_drop.offset
        )
    init_args:
      - 2
      - 4
    unit: ADC

produces this error

  File "/data1/shared/l200-p13/prodenv/prod-orig/dev-v0.0.2/.snakemake/legend-dataflow/venv/lib/python3.12/site-packages/dspeed/processing_chain.py", line 2367, in build_processing_chain
    for db_var in db_parser.findall(arg):
                  ^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'int'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant