• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JuliaData / CategoricalArrays.jl / 1194
92%

Build:
DEFAULT BRANCH: master
Ran 08 Apr 2020 01:38PM UTC
Jobs 6
Files 10
Run time 30min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1194

push

travis-ci

web-flow
Drop distinction between index and levels (#253)

References now always point to the vector returned by `levels`. This simplifies
a lot of code, especially for packages that use CategoricalArrays. The downside
is that all references need to be recoded when existing levels are removed or reordered.

To ensure `CategoricalValue` objects always remain valid, `CategoricalPool` is now
semi-mutable: only adding new levels is possible. `CategoricalArray`s are now mutable
and replace their pool with a new one when levels are removed or reordered, e.g. in
`levels!` or `setindex!(A::CategoricalArray, v::CategoricalValue, ...)`. This should
not be a problem for performance as changing levels should not be frequent. On the other
hand, adding levels keeps the same pool, which makes creating a `CategoricalArray`
from another array type relatively fast, though references have to be recoded at
the end when sorting levels. And the (very frequent) operations which use levels
in their order should be faster than before as they can use refs directly.

Note that replacing the pool makes it impossible to compare new `CategoricalValue`
objects with old ones with `<` and `>`. This should not be too problematic in practice.

Finally, replace deprecation message with an error when assignment would add new levels
to ordered array, and make `copy` and `copyto!` merge levels even when copying zero
elements (this differs from what the `AbstractArray` fallback would do but makes more sense).

585 of 629 relevant lines covered (93.0%)

28900.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1194.1 08 Apr 2020 01:42PM UTC 0
91.48
Travis Job 1194.1
2 1194.2 08 Apr 2020 01:38PM UTC 0
92.63
Travis Job 1194.2
3 1194.3 08 Apr 2020 01:39PM UTC 0
91.51
Travis Job 1194.3
4 1194.4 08 Apr 2020 01:55PM UTC 0
91.48
Travis Job 1194.4
5 1194.5 08 Apr 2020 01:52PM UTC 0
92.63
Travis Job 1194.5
6 1194.6 08 Apr 2020 02:09PM UTC 0
91.51
Travis Job 1194.6
Source Files on build 1194
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1194
  • dcc24cf4 on github
  • Prev Build on master (#1193)
  • Next Build on master (#1198)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc