Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Output needs some work #59

Open
np3xpu opened this issue Sep 13, 2020 · 0 comments
Open

Output needs some work #59

np3xpu opened this issue Sep 13, 2020 · 0 comments

Comments

@np3xpu
Copy link
Contributor

np3xpu commented Sep 13, 2020

Some tables are misaligned. Can be fixed trivially with tabulate, as long as you're fine with new deps. Or at the very least, the output can be templated using jinja.

To reproduce, here's a very simple call, I'm assuming it's misaligned for everyone:

> pyhydroquebec -H

which results in a misaligned table:

-----------------------------
   Hour  | Temperature | Lower price consumption | Higher price consumption | total comsumption

   0:00  |     10     |     0.14     |     0.00     |     0.14  
   1:00  |      9     |     0.23     |     0.00     |     0.23  

(...)

  22:00  |     16     |     0.61     |     0.00     |     0.61  
  23:00  |     16     |     0.73     |     0.00     |     0.73 

Anyway -- care for a PR?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants