Update to IntervalArithmetic v0.22, drop IntervalBox #205
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #181.
Background
I tried to upgrade IntervalArithmetic.jl together with IntervalBoxes.jl, just to see how far it goes. Spoiler: not far.
There are two problems (already discussed in #181):
Two of these optional dependencies have not been maintained in a long time, so I am not hopeful that this will change anytime soon.
It seems silly to rely on the optional dependencies (then they are not really optional), but dropping support and tests for three backends at once would also make this package much less useful and more fragile.
This PR
As an alternative, I tried to remove
IntervalBox
(and instead useAbstractVector{<:Interval}
) in this PR. But I did not really manage. All this PR does to the actual library is allow to use the new version of IntervalArithmetic, which works fine if only one-dimensionalInterval
s are used. (There is one catch: multiple enclosure methods cannot yet be combined.)Note that the tests (and docs) still use the old version where
IntervalBox
is used, so the new version is currently untested. I created a second (nested) test folder with a separateProject.toml
file to test the new version as well. This script essentially skips all tests with these optional dependencies andIntervalBox
.If we want to go with this change, I suggest to add a second CI test script to run those tests as well (not yet done here).
(The additional invalidations come from loading
PkgVersion
and should be ignored.)