Skip to content

Commit 0f070a4

Browse files
Enh: Docs for new parameters
1 parent eeff1cd commit 0f070a4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

rocketpy/EnvironmentAnalysis.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ def __init__(
107107
pressureLevelDataFile=None,
108108
timezone=None,
109109
unit_system="metric",
110-
forecast_comparison=False,
111110
forecast_date=None,
112111
forecast_args=None,
113112
maxExpectedAltitude=None,
@@ -145,6 +144,12 @@ def __init__(
145144
unit_system : str, optional
146145
Unit system to be used when displaying results.
147146
Options are: SI, metric, imperial. Default is metric.
147+
forecast_date : datetime.date, optional
148+
Date for the forecast models. It will be requested the environment forecast
149+
for multiple hours within that specified date.
150+
forecast_args : dictionary, optional
151+
Arguments for setting the forecast on the Environment class. With this argument
152+
it is possible to change the forecast model being used.
148153
maxExpectedAltitude : float, optional
149154
Maximum expected altitude for your analysis. This is used to calculate
150155
plot limits from pressure level data profiles. If None is set, the
@@ -213,7 +218,7 @@ def __init__(
213218

214219
# Processing forecast
215220
self.forecast = None
216-
if forecast_comparison:
221+
if forecast_date:
217222
self.forecast = {}
218223
hours = list(self.pressureLevelDataDict.values())[0].keys()
219224
for hour in hours:

rocketpy/utilities.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
__copyright__ = "Copyright 20XX, RocketPy Team"
44
__license__ = "MIT"
55

6-
import matplotlib.pyplot as plt
76
import numpy as np
87
from scipy.integrate import solve_ivp
98

0 commit comments

Comments
 (0)