Skip to content

Commit

Permalink
Fix so the Code-factor bot is happy
Browse files Browse the repository at this point in the history
Signed-off-by: Adam.Dybbroe <[email protected]>
  • Loading branch information
Adam.Dybbroe committed Nov 20, 2024
1 parent c364f6e commit e675cd2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 21 deletions.
9 changes: 2 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name = "pytroll-schedule"
dynamic = ["version"]
description = "Scheduling satellite passes in Python"
authors = [
{ name = "Martin Raspaud", email = "[email protected]" }
{ name = "The Pytroll Team", email = "[email protected]" }
]
dependencies = ["numpy",
"pyresample >= 1.22",
"pyorbital",
"pyyaml",
"defusedxml"]
readme = "README.md"
requires-python = ">= 3.10"
requires-python = ">=3.10"
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 4 - Beta",
Expand Down Expand Up @@ -46,17 +46,12 @@ selector = ["redis"]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[tool.rye]
managed = true
dev-dependencies = []

[tool.hatch.metadata]
allow-direct-references = true

[tool.hatch.build.targets.wheel]
packages = ["trollsched"]


[tool.hatch.version]
source = "vcs"

Expand Down
28 changes: 14 additions & 14 deletions trollsched/tests/test_satpass.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,25 +458,25 @@ def test_create_pass(fake_tle_file):
contours = apass.boundary.contour()

np.testing.assert_array_almost_equal(contours[0], np.array([
-70.36110203, -67.46084331, -37.31525344, 15.33742429,
45.70673859, 58.20758754, 64.53232683, 68.33939709,
70.91122142, 72.79385654, 74.25646605, 75.44689972,
76.45347206, 77.33271412, 78.12312657, 78.85259555,
79.5427448 , 80.21178505, 80.87674043, 81.55576564,
82.27163678, 83.05937724, 83.99111296, 84.1678927 ,
71.14095118, 59.65602344, 50.0921629 , 42.33689333,
36.07906912, 30.99289682, 26.80566985, 23.30761782,
17.5195915 , 16.76660935, 13.3562137 , 11.05669417,
9.31517975, 7.90416741, 6.70609822, 5.65154688,
4.69542071, 3.80603134, 2.95939777, 2.13592964,
1.31825077, 0.48953714, -0.3680201 , -1.27496102,
-2.25693369, -3.34841058, -4.59918301, -6.08698296,
-70.36110203, -67.46084331, -37.31525344, 15.33742429,
45.70673859, 58.20758754, 64.53232683, 68.33939709,
70.91122142, 72.79385654, 74.25646605, 75.44689972,
76.45347206, 77.33271412, 78.12312657, 78.85259555,
79.5427448, 80.21178505, 80.87674043, 81.55576564,
82.27163678, 83.05937724, 83.99111296, 84.1678927 ,
71.14095118, 59.65602344, 50.0921629 , 42.33689333,
36.07906912, 30.99289682, 26.80566985, 23.30761782,
17.5195915, 16.76660935, 13.3562137 , 11.05669417,
9.31517975, 7.90416741, 6.70609822, 5.65154688,
4.69542071, 3.80603134, 2.95939777, 2.13592964,
1.31825077, 0.48953714, -0.3680201, -1.27496102,
-2.25693369, -3.34841058, -4.59918301, -6.08698296,
-7.94529693, -10.43647307, -14.21005445, -15.07433768,
-14.49280142, -14.53229624, -14.87821968, -15.67970647,
-17.21558546, -20.06333116, -25.60407459, -37.83432182], dtype='float64'))

np.testing.assert_array_almost_equal(contours[1], np.array([
84.33463271, 84.996855 , 87.51595932, 87.91311185, 87.0788011 ,
84.33463271, 84.996855, 87.51595932, 87.91311185, 87.0788011 ,
86.08609579, 85.16108707, 84.31800847, 83.54109034, 82.81224557,
82.11521918, 81.4355823 , 80.75994129, 80.07498982, 79.36644307,
78.61771056, 77.80801807, 76.90942731, 75.88160126, 74.66160838,
Expand Down

0 comments on commit e675cd2

Please sign in to comment.