Skip to content

Commit

Permalink
Make input_file calling more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
FLomb authored Jun 23, 2021
1 parent fd29d66 commit a9b0c04
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ramp/ramp_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@
from core.stochastic_process import Stochastic_Process
from post_process import post_process as pp

# Define which input files should be considered and run.
# Files are specified as numbers in a list (e.g. [1,2] will consider input_file_1.py and input_file_2.py)
input_files_to_run = [1,2,3]

# Calls the stochastic process and saves the result in a list of stochastic profiles
# In this default example, the model runs for 2 input files ("input_file_1", "input_file_2"),
# but single or multiple files can be run restricting or enlarging the iteration range
# and naming further input files with progressive numbering
for j in range(2,3):
for j in input_files_to_run:
Profiles_list = Stochastic_Process(j)

# Post-processes the results and generates plots
Expand Down

0 comments on commit a9b0c04

Please sign in to comment.