omry / omegaconf

Flexible Python configuration system. The last one you will ever need.
BSD 3-Clause "New" or "Revised" License
1.95k stars 107 forks source link

Resolve length of list #1167

Closed manurare closed 6 months ago

manurare commented 6 months ago

Hello,

Is there a way of resolving the length of a list in a yaml file? Something like:

my_list:
- 4
- 2
- 1
length: ${len.my_list}

Thanks

manurare commented 6 months ago

My bad. I can do this with custom resolvers.