X Tutup
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
TST? parameterize acceptance test for NDRT 2020 rocket data with mult…
…iple environment files
  • Loading branch information
Gui-FernandesBR committed Nov 23, 2024
commit 12baa1016ce81ee051b9383761d10c64ebd4d68a
Binary file added data/weather/ndrt_2020_weather_data_ERA5_new.nc
Binary file not shown.
12 changes: 10 additions & 2 deletions tests/acceptance/test_ndrt_2020_rocket.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
import numpy as np
import pandas as pd
import pytest
from scipy.signal import savgol_filter

from rocketpy import Environment, Flight, Rocket, SolidMotor


def test_ndrt_2020_rocket_data_asserts_acceptance():
@pytest.mark.parametrize(
"env_file",
[
"data/weather/ndrt_2020_weather_data_ERA5.nc",
"data/weather/ndrt_2020_weather_data_ERA5_new.nc",
],
)
def test_ndrt_2020_rocket_data_asserts_acceptance(env_file):
# Notre Dame Rocket Team 2020 Flight
# Launched at 19045-18879 Avery Rd, Three Oaks, MI 49128
# Permission to use flight data given by Brooke Mumma, 2020
Expand Down Expand Up @@ -73,7 +81,7 @@ def test_ndrt_2020_rocket_data_asserts_acceptance():
)
env.set_atmospheric_model(
type="Reanalysis",
file="data/weather/ndrt_2020_weather_data_ERA5.nc",
file=env_file,
dictionary="ECMWF",
)
env.max_expected_height = 2000
Expand Down
X Tutup