Fix broken battery-stats-graph due to incorrect numpy type of timestamps.
Aurélien COUDERC
1 year, 8 months ago
|
0 |
battery-stats (0.5.6-3) UNRELEASED; urgency=medium
|
|
1 |
|
|
2 |
* Fix broken battery-stats-graph due to incorrect numpy type of timestamps.
|
|
3 |
|
|
4 |
-- Aurélien COUDERC <coucouf@debian.org> Tue, 23 Aug 2022 09:58:41 +0200
|
|
5 |
|
0 | 6 |
battery-stats (0.5.6-2) unstable; urgency=medium
|
1 | 7 |
|
2 | 8 |
[ Ondřej Nový ]
|
|
0 |
Description: Fix numpy dtype of timestamps to integer
|
|
1 |
Author: Aurélien COUDERC <coucouf@debian.org>
|
|
2 |
Last-Update: 2022-08-23
|
|
3 |
|
|
4 |
--- a/src/battery-stats-graph
|
|
5 |
+++ b/src/battery-stats-graph
|
|
6 |
@@ -87,7 +87,7 @@
|
|
7 |
except csv.Error as e:
|
|
8 |
logging.warning('CSV file is corrupt, skipping remaining entries: %s', e)
|
|
9 |
logging.debug('building data array')
|
|
10 |
- return np.array(data, dtype=list(zip(fields, 'f'*len(fields))))
|
|
11 |
+ return np.array(data, dtype=list(zip(fields, 'i'+'f'*(len(fields)-1))))
|
|
12 |
|
|
13 |
# the builtin CSV parser above is faster, we went from 8 to 2 seconds
|
|
14 |
# on our test data here there are probably other ways of making this
|
0 | 0 |
0001-Update-to-python3.patch
|
|
1 |
0002-fix-numpy-type-for-timestamp.patch
|
1 | 2 |
1000-add-more-power-supplies-support.patch
|