WISDEM / WOMBAT

Windfarm Operations & Maintenance cost-Benefit Analysis Tool
https://wisdem.github.io/WOMBAT/
Apache License 2.0
20 stars 11 forks source link

Bug fix/csv loading #94

Closed RHammond2 closed 1 year ago

RHammond2 commented 1 year ago

This PR fixes an issue in CSV loading where datetime objects are inconsistently interpreted and throw an error at the end of a simulation. The events logs are now only read by pandas, which is now fixed at version >= 2 (where the error was introduced), using the pyarrow backend for pandas. This simple change also helps to improve the runtime performance by ensuring more efficient methods are used under the hood.

codecov[bot] commented 1 year ago

Codecov Report

Merging #94 (4907ae9) into develop (770bbcf) will increase coverage by 0.14%. The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           develop      #94      +/-   ##
===========================================
+ Coverage    54.73%   54.88%   +0.14%     
===========================================
  Files           21       21              
  Lines         3471     3458      -13     
  Branches       700      697       -3     
===========================================
- Hits          1900     1898       -2     
+ Misses        1458     1447      -11     
  Partials       113      113              
Impacted Files Coverage Δ
wombat/core/environment.py 77.34% <0.00%> (+3.81%) :arrow_up:
wombat/core/post_processor.py 6.19% <0.00%> (-0.03%) :arrow_down: