Skip to content

Commit c5532aa

Browse files
committed
Release v0.2.2: Fix serious pandas bug not replacing NaN correctly
1 parent 31c5fd2 commit c5532aa

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

CHANGELOG.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
11
# Sindri Changelog
22

33

4+
## Version 0.2.2 (2019-11-04)
5+
6+
Bufix release with the following changes:
7+
8+
* Fix serious pandas bug with not replacing NaN values correctly in plot data
9+
* Harmonize bullet characters in changelog
10+
11+
12+
413
## Version 0.2.1 (2019-11-02)
514

615
Bufix and refinement release with the following changes:
716

8-
- Revise UI text to inform user about dynamic updates and increase discoverability
9-
- Add button to data section with link to current day's data
10-
- Increase and refine ranges and color tables based on increased charge targets
11-
- Reduce update frequency to 10 minutes to align with Github cache time
17+
* Revise UI text to inform user about dynamic updates and increase discoverability
18+
* Add button to data section with link to current day's data
19+
* Increase and refine ranges and color tables based on increased charge targets
20+
* Reduce update frequency to 10 minutes to align with Github cache time
1221

1322

1423

src/sindri/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""Version file."""
22

3-
VERSION_INFO = (0, 2, 1)
3+
VERSION_INFO = (0, 2, 2)
44
__version__ = '.'.join((str(version) for version in VERSION_INFO))

src/sindri/website/generate.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,9 @@ def generate_plot_data(
291291
**table_process_args)
292292

293293
if output_path:
294-
plot_data_json = (plot_data.replace([np.nan, np.inf, np.NINF], None)
295-
.to_dict(orient="list"))
294+
plot_data_json = (
295+
plot_data.where(np.isfinite(plot_data), None)
296+
.to_dict(orient="list"))
296297
if plot_data.index.name:
297298
index_name = plot_data.index.name
298299
else:

0 commit comments

Comments
 (0)