Non-hacky method to take list of keys as parameter?

2021-07-14 Thread Anton Ottosson
Hi, I'm writing a block for an OOT module and I would like to take a list of keys as one of the parameters. They will be used to select entries in a pmt dictionary. I first tried to use std::vector as the parameter type, but there doesn't seem to exist any corresponding string_vector dtype to

Re: Non-hacky method to take list of keys as parameter?

2021-07-15 Thread Marcus Müller
Just use `dtype: raw` in the YAML file; then anything that's valid python goes! For example `["key1", "key2"]`, but also other things like dicts, `{ "key1": 42, "key2": 1337 }`. Best regards, Marcus On 15.07.21 06:58, Anton Ottosson wrote: > Hi, > > I'm writing a block for an OOT module and I

Re: Non-hacky method to take list of keys as parameter?

2021-07-15 Thread Anton Ottosson
From: Marcus Müller Sent: Thursday, July 15, 2021 11:54:00 PM To: discuss-gnuradio@gnu.org Cc: Anton Ottosson Subject: Re: Non-hacky method to take list of keys as parameter? Just use `dtype: raw` in the YAML file; then anything that's valid python goes! For example `[

Re: Non-hacky method to take list of keys as parameter?

2021-07-15 Thread Anton Ottosson
Oh, sorry! I meant Marcus, of course, not "Amrcus". Best, Anton From: Anton Ottosson Sent: Friday, July 16, 2021 12:07:47 AM To: discuss-gnuradio@gnu.org Subject: Re: Non-hacky method to take list of keys as parameter? Hi Amrcus, Your first exampl

Re: Non-hacky method to take list of keys as parameter?

2021-07-16 Thread Marcus Müller
, not "Amrcus". > > > Best, > > Anton > > -- > *From:* Anton Ottosson > *Sent:* Friday, July 16, 2021 12:07:47 AM > *To:* discuss-gnuradio@gnu.org > *Subject:* Re: Non-hac

Re: Non-hacky method to take list of keys as parameter?

2021-07-16 Thread Anton Ottosson
From: Anton Ottosson Sent: Friday, July 16, 2021 12:08:42 AM To: discuss-gnuradio@gnu.org Subject: Re: Non-hacky method to take list of keys as parameter? Oh, sorry! I meant Marcus, of course, not "Amrcus". Best, Anton From: Anton Ott