$ pytest -vv --lf
========================================================= test session starts ==========================================================
platform linux -- Python 3.7.4, pytest-5.1.0, py-1.8.0, pluggy-0.12.0 -- /home/juanlu/.pyenv/versions/3.7.4/envs/poliastro37_4/bin/python3.7
cachedir: .pytest_cache
Matplotlib: 3.1.3
Freetype: 2.6.1
rootdir: /home/juanlu/Personal/poliastro/poliastro, inifile: setup.cfg
plugins: cov-2.5.1, mypy-0.4.2, doctestplus-0.5.0, remotedata-0.3.2, mpl-0.10
collected 930 items / 928 deselected / 2 selected
run-last-failure: rerun previous 2 failures
src/poliastro/tests/test_czml.py::test_czml_groundtrack FAILED [ 50%]
src/poliastro/tests/test_czml.py::test_czml_ground_station FAILED [100%]
=============================================================== FAILURES ===============================================================
________________________________________________________ test_czml_groundtrack _________________________________________________________
@pytest.mark.skipif("czml3" not in sys.modules, reason="requires czml3")
def test_czml_groundtrack():
start_epoch = molniya.epoch
end_epoch = molniya.epoch + molniya.period
sample_points = 10
expected_doc = """[{
"id": "document",
"version": "1.0",
"name": "document_packet",
"clock": {
"interval": "2000-01-01T12:00:00Z/2000-01-01T23:59:35Z",
"currentTime": "2000-01-01T12:00:00Z",
"multiplier": 60,
"range": "LOOP_STOP",
"step": "SYSTEM_CLOCK_MULTIPLIER"
}
}, {
"id": "custom_properties",
"properties": {
"custom_attractor": true,
"ellipsoid": [
{
"array": [
6378136.6,
6378136.6,
6356751.9
]
}
],
"map_url": [
"https://upload.wikimedia.org/wikipedia/commons/c/c4/Earthmap1000x500compac.jpg"
],
"scene3D": true
}
}, {
"id": 0,
"availability": "2000-01-01T12:00:00Z/2000-01-01T23:59:35Z",
"position": {
"epoch": "2000-01-01T12:00:00Z",
"interpolationAlgorithm": "LAGRANGE",
"interpolationDegree": 5,
"referenceFrame": "INERTIAL",
"cartesian": [
0.0,
10140093.6393,
-800580.7546,
-1598722.8246,
4317.5108,
17593269.6479,
8807305.9945,
17587783.6632,
8635.0217,
15276972.8693,
14840949.3322,
29636690.9896,
12952.5325,
10390291.9946,
18544487.5609,
37032485.9349,
17270.0433,
4459288.7909,
20454288.4376,
40846270.159,
21587.5541,
-1827745.3661,
20778744.495,
41494193.9337,
25905.065,
-7974181.1167,
19549661.224,
39039771.3569,
30222.5758,
-13412369.429,
16641263.6853,
33231835.6785,
34540.0866,
-17116767.3657,
11688710.5829,
23341815.6655,
38857.5975,
-15852598.671,
3766095.5927,
7520719.1144,
43175.1083,
10140093.6393,
-800580.7546,
-1598722.8246,
47492.6191,
17593269.6479,
8807305.9945,
17587783.6632
]
},
"billboard": {
"image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADJSURBVDhPnZHRDcMgEEMZjVEYpaNklIzSEfLfD4qNnXAJSFWfhO7w2Zc0Tf9QG2rXrEzSUeZLOGm47WoH95x3Hl3jEgilvDgsOQUTqsNl68ezEwn1vae6lceSEEYvvWNT/Rxc4CXQNGadho1NXoJ+9iaqc2xi2xbt23PJCDIB6TQjOC6Bho/sDy3fBQT8PrVhibU7yBFcEPaRxOoeTwbwByCOYf9VGp1BYI1BA+EeHhmfzKbBoJEQwn1yzUZtyspIQUha85MpkNIXB7GizqDEECsAAAAASUVORK5CYII=",
"show": true
},
"label": {
"text": "Molniya",
"font": "11pt Lucida Console",
"style": "FILL",
"fillColor": {
"rgba": [
125,
80,
120,
255
]
},
"outlineColor": {
"rgba": [
255,
255,
0,
255
]
},
"outlineWidth": 1.0
},
"path": {
"resolution": 120,
"material": {
"solidColor": {
"color": {
"rgba": [
255,
255,
0,
255
]
}
}
}
}
}, {
"id": "groundtrack0",
"availability": "2000-01-01T12:00:00Z/2000-01-01T23:59:35Z",
"position": {
"epoch": "2000-01-01T12:00:00Z",
"interpolationAlgorithm": "LAGRANGE",
"interpolationDegree": 5,
"referenceFrame": "INERTIAL",
"cartesian": [
0.0,
6280728.255788034,
-495875.99989224557,
-990241.5895687921,
4317.5108,
4245756.819479091,
2125453.716924488,
4244432.895224581,
8635.0217,
2663915.8656318397,
2587884.4433988784,
5167885.717379646,
12952.5325,
1548100.5195240811,
2763033.9962378335,
5517651.292250773,
17270.0433,
618022.3343837302,
2834803.0552899935,
5660970.791429868,
21587.5541,
-250341.43583128517,
2846010.7675710567,
5683352.0756686535,
25905.065,
-1142958.8118256037,
2802100.92918071,
5595666.1546065565,
30222.5758,
-2159933.044540537,
2679915.6206089617,
5351667.73157586,
34540.0866,
-3490752.3604656975,
2383767.686202804,
4760273.972119002,
38857.5975,
-5630876.894771479,
1337725.3192625502,
2671375.634339552,
43175.1083,
6280728.255788034,
-495875.99989224557,
-990241.5895687921,
47492.6191,
4245756.819479091,
2125453.716924488,
4244432.895224581
]
},
"path": {
"show": true,
"leadTime": 100,
"trailTime": 100,
"resolution": 60,
"material": {
"solidColor": {
"color": {
"rgba": [
255,
255,
0,
255
]
}
}
}
}
}]"""
extractor = CZMLExtractor(start_epoch, end_epoch, sample_points)
extractor.add_orbit(
molniya,
rtol=1e-4,
label_text="Molniya",
groundtrack_show=True,
label_fill_color=[125, 80, 120, 255],
)
> assert repr(extractor.packets) == expected_doc
E assert '[{\n "id"... }\n }\n}]' == '[{\n "id"... }\n }\n}]'
E [{
E "id": "document",
E "version": "1.0",
E "name": "document_packet",
E "clock": {
E "interval": "2000-01-01T12:00:00Z/2000-01-01T23:59:35Z",
E - "currentTime": "2000-01-01T11:00:00Z",
E ? ^
E + "currentTime": "2000-01-01T12:00:00Z",
E ? ^
E "multiplier": 60,
E "range": "LOOP_STOP",
E "step": "SYSTEM_CLOCK_MULTIPLIER"
E }
E }, {
E "id": "custom_properties",
E "properties": {
E "custom_attractor": true,
E "ellipsoid": [
E {
E "array": [
E 6378136.6,
E 6378136.6,
E 6356751.9
E ]
E }
E ],
E "map_url": [
E "https://upload.wikimedia.org/wikipedia/commons/c/c4/Earthmap1000x500compac.jpg"
E ],
E "scene3D": true
E }
E }, {
E "id": 0,
E "availability": "2000-01-01T12:00:00Z/2000-01-01T23:59:35Z",
E "position": {
E - "epoch": "2000-01-01T11:00:00Z",
E ? ^
E + "epoch": "2000-01-01T12:00:00Z",
E ? ^
E "interpolationAlgorithm": "LAGRANGE",
E "interpolationDegree": 5,
E "referenceFrame": "INERTIAL",
E "cartesian": [
E 0.0,
E 10140093.6393,
E -800580.7546,
E -1598722.8246,
E 4317.5108,
E 17593269.6479,
E 8807305.9945,
E 17587783.6632,
E 8635.0217,
E 15276972.8693,
E 14840949.3322,
E 29636690.9896,
E 12952.5325,
E 10390291.9946,
E 18544487.5609,
E 37032485.9349,
E 17270.0433,
E 4459288.7909,
E 20454288.4376,
E 40846270.159,
E 21587.5541,
E -1827745.3661,
E 20778744.495,
E 41494193.9337,
E 25905.065,
E -7974181.1167,
E 19549661.224,
E 39039771.3569,
E 30222.5758,
E -13412369.429,
E 16641263.6853,
E 33231835.6785,
E 34540.0866,
E -17116767.3657,
E 11688710.5829,
E 23341815.6655,
E 38857.5975,
E -15852598.671,
E 3766095.5927,
E 7520719.1144,
E 43175.1083,
E 10140093.6393,
E -800580.7546,
E -1598722.8246,
E 47492.6191,
E 17593269.6479,
E 8807305.9945,
E 17587783.6632
E ]
E },
E "billboard": {
E "image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADJSURBVDhPnZHRDcMgEEMZjVEYpaNklIzSEfLfD4qNnXAJSFWfhO7w2Zc0Tf9QG2rXrEzSUeZLOGm47WoH95x3Hl3jEgilvDgsOQUTqsNl68ezEwn1vae6lceSEEYvvWNT/Rxc4CXQNGadho1NXoJ+9iaqc2xi2xbt23PJCDIB6TQjOC6Bho/sDy3fBQT8PrVhibU7yBFcEPaRxOoeTwbwByCOYf9VGp1BYI1BA+EeHhmfzKbBoJEQwn1yzUZtyspIQUha85MpkNIXB7GizqDEECsAAAAASUVORK5CYII=",
E "show": true
E },
E "label": {
E "text": "Molniya",
E "font": "11pt Lucida Console",
E "style": "FILL",
E "fillColor": {
E "rgba": [
E 125,
E 80,
E 120,
E 255
E ]
E },
E "outlineColor": {
E "rgba": [
E 255,
E 255,
E 0,
E 255
E ]
E },
E "outlineWidth": 1.0
E },
E "path": {
E "resolution": 120,
E "material": {
E "solidColor": {
E "color": {
E "rgba": [
E 255,
E 255,
E 0,
E 255
E ]
E }
E }
E }
E }
E }, {
E "id": "groundtrack0",
E "availability": "2000-01-01T12:00:00Z/2000-01-01T23:59:35Z",
E "position": {
E - "epoch": "2000-01-01T11:00:00Z",
E ? ^
E + "epoch": "2000-01-01T12:00:00Z",
E ? ^
E "interpolationAlgorithm": "LAGRANGE",
E "interpolationDegree": 5,
E "referenceFrame": "INERTIAL",
E "cartesian": [
E 0.0,
E 6280728.255788034,
E -495875.99989224557,
E -990241.5895687921,
E 4317.5108,
E 4245756.819479091,
E 2125453.716924488,
E 4244432.895224581,
E 8635.0217,
E 2663915.8656318397,
E 2587884.4433988784,
E 5167885.717379646,
E 12952.5325,
E 1548100.5195240811,
E 2763033.9962378335,
E 5517651.292250773,
E 17270.0433,
E 618022.3343837302,
E 2834803.0552899935,
E 5660970.791429868,
E 21587.5541,
E -250341.43583128517,
E 2846010.7675710567,
E 5683352.0756686535,
E 25905.065,
E -1142958.8118256037,
E 2802100.92918071,
E 5595666.1546065565,
E 30222.5758,
E -2159933.044540537,
E 2679915.6206089617,
E 5351667.73157586,
E 34540.0866,
E -3490752.3604656975,
E 2383767.686202804,
E 4760273.972119002,
E 38857.5975,
E -5630876.894771479,
E 1337725.3192625502,
E 2671375.634339552,
E 43175.1083,
E 6280728.255788034,
E -495875.99989224557,
E -990241.5895687921,
E 47492.6191,
E 4245756.819479091,
E 2125453.716924488,
E 4244432.895224581
E ]
E },
E "path": {
E "show": true,
E "leadTime": 100,
E "trailTime": 100,
E "resolution": 60,
E "material": {
E "solidColor": {
E "color": {
E "rgba": [
E 255,
E 255,
E 0,
E 255
E ]
E }
E }
E }
E }
E }]
src/poliastro/tests/test_czml.py:534: AssertionError
_______________________________________________________ test_czml_ground_station _______________________________________________________
@pytest.mark.skipif("czml3" not in sys.modules, reason="requires czml3")
def test_czml_ground_station():
start_epoch = iss.epoch
end_epoch = iss.epoch + molniya.period
sample_points = 10
expected_doc = """[{
"id": "document",
"version": "1.0",
"name": "document_packet",
"clock": {
"interval": "2013-03-18T12:00:00Z/2013-03-18T23:59:35Z",
"currentTime": "2013-03-18T12:00:00Z",
"multiplier": 60,
"range": "LOOP_STOP",
"step": "SYSTEM_CLOCK_MULTIPLIER"
}
}, {
"id": "custom_properties",
"properties": {
"custom_attractor": true,
"ellipsoid": [
{
"array": [
6378136.6,
6378136.6,
6356751.9
]
}
],
"map_url": [
"https://upload.wikimedia.org/wikipedia/commons/c/c4/Earthmap1000x500compac.jpg"
],
"scene3D": true
}
}, {
"id": "GS0",
"availability": "2013-03-18T12:00:00Z/2013-03-18T23:59:35Z",
"position": {
"cartesian": [
2536956.480228706,
4771321.193798005,
3399460.9756358126
]
},
"billboard": {
"image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACvSURBVDhPrZDRDcMgDAU9GqN0lIzijw6SUbJJygUeNQgSqepJTyHG91LVVpwDdfxM3T9TSl1EXZvDwii471fivK73cBFFQNTT/d2KoGpfGOpSIkhUpgUMxq9DFEsWv4IXhlyCnhBFnZcFEEuYqbiUlNwWgMTdrZ3JbQFoEVG53rd8ztG9aPJMnBUQf/VFraBJeWnLS0RfjbKyLJA8FkT5seDYS1Qwyv8t0B/5C2ZmH2/eTGNNBgMmAAAAAElFTkSuQmCC",
"show": true
},
"label": {
"show": true,
"text": "GS test",
"font": "11pt Lucida Console",
"style": "FILL",
"fillColor": {
"rgba": [
120,
120,
120,
255
]
},
"outlineWidth": 1.0
}
}, {
"id": "GS1",
"availability": "2013-03-18T12:00:00Z/2013-03-18T23:59:35Z",
"position": {
"cartesian": [
4450567.472491674,
1884083.4338554223,
4176129.2748575546
]
},
"billboard": {
"image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACvSURBVDhPrZDRDcMgDAU9GqN0lIzijw6SUbJJygUeNQgSqepJTyHG91LVVpwDdfxM3T9TSl1EXZvDwii471fivK73cBFFQNTT/d2KoGpfGOpSIkhUpgUMxq9DFEsWv4IXhlyCnhBFnZcFEEuYqbiUlNwWgMTdrZ3JbQFoEVG53rd8ztG9aPJMnBUQf/VFraBJeWnLS0RfjbKyLJA8FkT5seDYS1Qwyv8t0B/5C2ZmH2/eTGNNBgMmAAAAAElFTkSuQmCC",
"show": true
},
"label": {
"show": false,
"font": "11pt Lucida Console",
"style": "FILL",
"outlineWidth": 1.0
}
}]"""
extractor = CZMLExtractor(start_epoch, end_epoch, sample_points)
extractor.add_ground_station(
[32 * u.degree, 62 * u.degree],
label_fill_color=[120, 120, 120, 255],
label_text="GS test",
)
extractor.add_ground_station([0.70930 * u.rad, 0.40046 * u.rad], label_show=False)
> assert repr(extractor.packets) == expected_doc
E assert '[{\n "id"....0\n }\n}]' == '[{\n "id"....0\n }\n}]'
E [{
E "id": "document",
E "version": "1.0",
E "name": "document_packet",
E "clock": {
E "interval": "2013-03-18T12:00:00Z/2013-03-18T23:59:35Z",
E - "currentTime": "2013-03-18T11:00:00Z",
E ? ^
E + "currentTime": "2013-03-18T12:00:00Z",
E ? ^
E "multiplier": 60,
E "range": "LOOP_STOP",
E "step": "SYSTEM_CLOCK_MULTIPLIER"
E }
E }, {
E "id": "custom_properties",
E "properties": {
E "custom_attractor": true,
E "ellipsoid": [
E {
E "array": [
E 6378136.6,
E 6378136.6,
E 6356751.9
E ]
E }
E ],
E "map_url": [
E "https://upload.wikimedia.org/wikipedia/commons/c/c4/Earthmap1000x500compac.jpg"
E ],
E "scene3D": true
E }
E }, {
E "id": "GS0",
E "availability": "2013-03-18T12:00:00Z/2013-03-18T23:59:35Z",
E "position": {
E "cartesian": [
E 2536956.480228706,
E 4771321.193798005,
E 3399460.9756358126
E ]
E },
E "billboard": {
E "image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACvSURBVDhPrZDRDcMgDAU9GqN0lIzijw6SUbJJygUeNQgSqepJTyHG91LVVpwDdfxM3T9TSl1EXZvDwii471fivK73cBFFQNTT/d2KoGpfGOpSIkhUpgUMxq9DFEsWv4IXhlyCnhBFnZcFEEuYqbiUlNwWgMTdrZ3JbQFoEVG53rd8ztG9aPJMnBUQf/VFraBJeWnLS0RfjbKyLJA8FkT5seDYS1Qwyv8t0B/5C2ZmH2/eTGNNBgMmAAAAAElFTkSuQmCC",
E "show": true
E },
E "label": {
E "show": true,
E "text": "GS test",
E "font": "11pt Lucida Console",
E "style": "FILL",
E "fillColor": {
E "rgba": [
E 120,
E 120,
E 120,
E 255
E ]
E },
E "outlineWidth": 1.0
E }
E }, {
E "id": "GS1",
E "availability": "2013-03-18T12:00:00Z/2013-03-18T23:59:35Z",
E "position": {
E "cartesian": [
E 4450567.472491674,
E 1884083.4338554223,
E 4176129.2748575546
E ]
E },
E "billboard": {
E "image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACvSURBVDhPrZDRDcMgDAU9GqN0lIzijw6SUbJJygUeNQgSqepJTyHG91LVVpwDdfxM3T9TSl1EXZvDwii471fivK73cBFFQNTT/d2KoGpfGOpSIkhUpgUMxq9DFEsWv4IXhlyCnhBFnZcFEEuYqbiUlNwWgMTdrZ3JbQFoEVG53rd8ztG9aPJMnBUQf/VFraBJeWnLS0RfjbKyLJA8FkT5seDYS1Qwyv8t0B/5C2ZmH2/eTGNNBgMmAAAAAElFTkSuQmCC",
E "show": true
E },
E "label": {
E "show": false,
E "font": "11pt Lucida Console",
E "style": "FILL",
E "outlineWidth": 1.0
E }
E }]
src/poliastro/tests/test_czml.py:632: AssertionError
=========================================================== warnings summary ===========================================================
/home/juanlu/.pyenv/versions/3.7.4/envs/poliastro37_4/lib/python3.7/site-packages/nbformat/notebooknode.py:4
/home/juanlu/.pyenv/versions/3.7.4/envs/poliastro37_4/lib/python3.7/site-packages/nbformat/notebooknode.py:4: DeprecationWarning:
Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
-- Docs: https://docs.pytest.org/en/latest/warnings.html
============================================ 2 failed, 928 deselected, 1 warnings in 10.44s ============================================
🐞 Problem
This is what happens in UTC+01:
🖥 Please paste the output of following commands
pip freezeDetails
💡 Possible solutions
📋 Steps to solve the problem
Addresses #<put issue number here>