iiasa / pysquirrel

MIT License
6 stars 1 forks source link

all() works with iterators #16

Closed phackstock closed 3 months ago

phackstock commented 4 months ago

Here:

https://github.com/iiasa/pysquirrel/blob/5d8005389d78f42a65863c3b175f879684d58643/src/pysquirrel/core.py#L122

you don't need to cast to a list. This works identically:

all(cell.value for cell in row)