OnSSET / onsset

The code of the Open Source Spatial Electrification Tool (OnSSET)
http://www.onsset.org
Other
26 stars 32 forks source link

Set up coverage #75

Closed willu47 closed 4 years ago

willu47 commented 4 years ago
  1. Sets up collection of coverage statistics to track fraction of code covered by tests

  2. Use a temporary folder to run the tests, which fixes #57

  3. Now also tests that the full results files are identical, closing #58

  4. Untracked calibrated file (#56)

  5. Demonstrated use of pandas.Series.apply, which will probably result in a performance boost, as you will not be passing the whole row of the DataFrame into the function each time when you only need the value from one column (see 330a980)

  6. Tidied up some of the imports, moving the spec columns into their own module (3ffd3a7)

  7. Added configuration for pre-commit, but many linting error remain

    • Install with pip install pre-commit, then initialise with pre-commit install --install-hooks
    • Ignore pre-commit by using -n when committing changes.