iiasa / pysquirrel

MIT License
6 stars 1 forks source link

Use enum for Region.level #23

Closed phackstock closed 3 months ago

phackstock commented 4 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