Skip to content

Commit

Permalink
Stop testing wind interpolation and fix FlightPlanningDomain
Browse files Browse the repository at this point in the history
The webservice used to download weather is  not completely reliable and
makes the tests fail more and more often. So we stop try to download
those data.

When not relying on weather_interpolator, dISA was not defined so we set
it to 0., assuming standard atmosphere.
  • Loading branch information
nhuet authored and g-poveda committed Jan 23, 2025
1 parent 324ebf4 commit af073ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion skdecide/hub/domain/flight_planning/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1834,8 +1834,9 @@ def flying(
[pos["ts"], (pos["alt"] + alt_to) / 2, pos["lat"], pos["lon"]],
field="temperature",
)

dISA = temp - temperature((pos["alt"] + alt_to) / 2, disa=0)
else:
dISA = 0.0

isa_atmosphere_settings = IsaAtmosphereSettings(d_isa=dISA)

Expand Down
3 changes: 0 additions & 3 deletions tests/flight_planning/test_flight_planning.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,12 @@ def test_flight_planning():
gamma_air_deg=0,
)

weather_date = WeatherDate(day=1, month=12, year=2024)

domain_factory = lambda: FlightPlanningDomain(
origin="LFBO",
destination="LFPG",
aircraft_state=acState_poll_schumann,
objective="fuel",
heuristic_name="lazy_fuel",
weather_date=weather_date,
cruise_height_min=32_000,
cruise_height_max=38_000,
graph_width="medium",
Expand Down

0 comments on commit af073ce

Please sign in to comment.