Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pony
tshistory_supervision
Commits
c3ae542d3f0d
Commit
5d6e27ca
authored
Sep 24, 2018
by
Aurélien Campéas
Browse files
insert: monotonicity issue was fixed in tshistory
parent
589444ff57c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_supervision.py
View file @
c3ae542d
...
@@ -52,9 +52,9 @@ def test_non_monotonic_autodiff(engine, tsh):
...
@@ -52,9 +52,9 @@ def test_non_monotonic_autodiff(engine, tsh):
s2
=
pd
.
Series
([
2
,
3.1
],
index
=
[
utcdt
(
2018
,
1
,
2
),
utcdt
(
2018
,
1
,
3
)])
s2
=
pd
.
Series
([
2
,
3.1
],
index
=
[
utcdt
(
2018
,
1
,
2
),
utcdt
(
2018
,
1
,
3
)])
tsh
.
insert
(
engine
,
s1
,
'nmdiff'
,
'Babar'
)
tsh
.
insert
(
engine
,
s1
,
'nmdiff'
,
'Babar'
)
with
pytest
.
raises
(
AssertionError
)
as
err
:
# all is well, but we have to index sort the intermediate diff
tsh
.
insert
(
engine
,
s2
,
'nmdiff'
,
'Celeste'
)
# in .insert
assert
err
.
value
.
args
[
0
]
==
'The index is not monotonic'
tsh
.
insert
(
engine
,
s2
,
'nmdiff'
,
'Celeste'
)
def
test_differential
(
engine
,
tsh
):
def
test_differential
(
engine
,
tsh
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment