iiasa / pysquirrel

MIT License
5 stars 1 forks source link

Use enum for Region.level #23

Closed phackstock closed 2 months ago

phackstock commented 3 months ago

The level attribute of Region is a good candidate to use an enum since you want to restrict the values to 1, 2, 3. https://github.com/iiasa/pysquirrel/blob/5d8005389d78f42a65863c3b175f879684d58643/src/pysquirrel/core.py#L34