Skip to content

Commit

Permalink
Minor docstring improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
FLomb committed Jun 6, 2024
1 parent fce9fc9 commit 75cb11d
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions ramp/test/test_run.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
"""
Minimal qualitative test functionality. Compares outputs of the code to default outputs,
Minimal qualitative test functionality. Compares the outputs of the code to default outputs,
for the 3 reference input files. The judgement about whether the resulting changes are
as expected or not is left to the developers
as expected or not is left to the developer making the commit
"""

# %% Import required modules
Expand Down Expand Up @@ -84,7 +84,7 @@ def series_to_average(profile_series, num_days):
Here the visual comparison between default and new/current results occurs.
Besides the difference naturally occurring due to different realisations of stochastic
parameters, the developers should check whether any other differences are brought by
by the tested code changes. If any differences are there, the developers should
by the tested code changes. If any differences are there, the developers should
evaluate whether these are as expected/designed or not
"""
from ramp.example.input_file_1 import User_list as User_list1
Expand All @@ -110,11 +110,7 @@ def series_to_average(profile_series, num_days):
for i, ul in enumerate([User_list1, User_list2, User_list3]):
of_path = os.path.join(".", "ramp/test", "results", f"output_file_{i + 1}.csv")
if os.path.exists(of_path) is False:
uc = UseCase(
users=ul,
parallel_processing=False,
random_seed=True
)
uc = UseCase(users=ul, parallel_processing=False, random_seed=True)
uc.initialize(peak_enlarge=0.15, num_days=30)

Profiles_list = uc.generate_daily_load_profiles(flat=True)
Expand Down

0 comments on commit 75cb11d

Please sign in to comment.