Skip to content

Commit

Permalink
Add release tag in console output
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Jan 5, 2022
1 parent 7b41d21 commit 02f2162
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/ortools/dispersion_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

from shapely.geometry import Point, Polygon

DIANA_RELEASE = "1.2.0"

# -- plot options
plt.style.use("default")
mpl.rcParams["figure.figsize"] = ((1920 - 160) / 5 / 25.4,
(1080 - 90) / 5 / 25.4)
Expand All @@ -38,16 +41,19 @@
line_color_map = mpl.cm.gist_rainbow
line_color_map_jet = mpl.cm.jet

PLOTS_ARE_TESTED = False
WINDMODEL_TEST = False
EXCEPTION_FOR_MISSING_EVENTS = False

# -- global settings
STANDARD_PRESSURE = 101325.0 # The standard air pressure (1.01325 bar)
METERS_PER_DEGREE_LATITUDE = 111325.0
METERS_PER_DEGREE_LONGITUDE_EQUATOR = 111050.0
# can be ´linear´, ´spline´, ´pchip´
# wind model interpolation, can be ´linear´, ´spline´, ´pchip´
WIND_MODEL_INTERPOLATION = "linear"

# debug options
PLOTS_ARE_TESTED = False
WINDMODEL_TEST = False
EXCEPTION_FOR_MISSING_EVENTS = False


CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])


Expand Down Expand Up @@ -101,6 +107,7 @@ def diana(directory, filename, config, output,
output_filename = output or "dispersion_analysis_" + timestamp
results_are_shown = show
ork_file_path = config["General"]["OrkFile"]
print(f"This is diana v{DIANA_RELEASE}")
print("directory : {}".format(directory))
print(".ork file : {}".format(ork_file_path))
print("config file : {}".format(config_file_path))
Expand Down Expand Up @@ -189,7 +196,8 @@ def diana(directory, filename, config, output,
parameterset = get_simulation_parameters(
orh, sim, rocket_components, random_parameters, True)
else:
print("with nominal parameter set but wind-model applied")
print(
"with nominal parameters. if set, wind-model and pressure-increased thrust is applied")
parameterset = get_simulation_parameters(
orh, sim, rocket_components, random_parameters, False)

Expand Down

0 comments on commit 02f2162

Please sign in to comment.