merely-useful / py-rse

Research Software Engineering with Python course material
http://third-bit.com/py-rse/
Other
246 stars 63 forks source link

Solutions to configuration and packaging exercises. #496

Closed gvwilson closed 3 years ago

gvwilson commented 3 years ago
  1. Add solution to "save configuration" exercise.

    • This modifies some of the zipf material but in a non-breaking way. @DamienIrving please check - do we want these changes in the main zipf directory or should they be put elsewhere?
  2. Removed the "reload configuration" part of the "save configuration" exercise: it turns out that matplotlib uses a class of its own rather than a dictionary to store parameters, and while it can be reconstructed, it felt like getting into the weeds.

  3. Removed the exercise on tracing where configuration parameters come from: it's easy to do for flat configurations but required recursion for nested parameters, which I think we want to steer away from.

  4. Add a new directory data-package with a solution to the corresponding exercise. This is not a full Python package, but illustrates the core idea.

gvwilson commented 3 years ago

@DamienIrving thanks for the feedback - I removed the data package example entirely and substituted the pratchett quotes, and made other changes as suggested.