Closed rafaqz closed 2 years ago
Have you ran Plots.jl
test suite with this PR applied ?
Can you also add tests for _prepare_series_data
covering all types in https://github.com/JuliaPlots/RecipesPipeline.jl/blob/master/test/runtests.jl (they were never written, despite they should have been) ?
Merging #116 (cda04de) into master (6253664) will increase coverage by
0.78%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #116 +/- ##
==========================================
+ Coverage 62.35% 63.13% +0.78%
==========================================
Files 10 10
Lines 526 529 +3
==========================================
+ Hits 328 334 +6
+ Misses 198 195 -3
Impacted Files | Coverage Δ | |
---|---|---|
src/series.jl | 76.25% <100.00%> (+4.82%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 44c404a...cda04de. Read the comment docs.
Plots.jl tests fail for me locally on unrelated GR problems.
But I've added some tests here for _prepare_series_data
. There are some methods of _prepare_series_data
remaining to test, e.g. for String
and Volume
. But they are not related and not within my knowledge, so I will leave them to someone else.
Can you approve my test runs? (or better, turn of that requirement in settings)
But I've added some tests here for _prepare_series_data. There are some methods of _prepare_series_data remaining to test, e.g. for String and Volume. But they are not related and not within my knowledge, so I will leave them to someone else.
Thanks, that's a start !
Can you approve my test runs? (or better, turn of that requirement in settings)
Yes, approved. Sorry, I don't have sufficient privileges for changing the settings :/
Plots.jl tests fail for me locally on unrelated GR problems
What I usually do is set the env var GKSwstype
to nul
before running the tests.
If that still fails I'll run the Plots
tests tomorrow.
Currently plotting a heatmap with only missing values fails. Probably other series types too.
This is because
map(float, a)
on line 15 of series.jl - when run over a mixed type array containing only missing values returns an array of eltypeMissing
.Instead, this PR makes a new array with the correct float type using
similar
, and broadcasts theismissing
andisnan
checks from the old array to the new array. The removed mutability check wasn't actually relevant because map creates a new array anyway every time. So I removed it.This is the current error solved by the PR. If you know where I should test this, let me know.
@evetion this should fix your Rasters.jl plotting problem