Skip to content

Commit 50fcb25

Browse files
committed
fix paths in tutorials
1 parent ba1417c commit 50fcb25

3 files changed

Lines changed: 20 additions & 20 deletions

File tree

tutorials/02_heliostat_raytracing_distributed_tutorial.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,21 @@
3939
scenario_file=scenario_file,
4040
device=device,
4141
)
42-
# Set a ray extinction factor responsible for global shading of rays (0.0 -> no global shading, 1.0 -> full global shading).
43-
ray_extinction_factor = 0.0
44-
45-
# Use a heliostat target light source mapping to specify which heliostat in your scenario should be activated,
46-
# which heliostat will receive which incident ray direction for alignment and on which target it will be raytraced.
47-
# If no mapping is provided, all heliostats are selected, and they will all receive the default incident ray direction
48-
# from a sun positioned directly in the south and they will all be raytraced on the first target found in your scenario.
49-
heliostat_target_light_source_mapping = None
50-
# If you want to customize the mapping, choose the following style: list[tuple[str, str, torch.Tensor]]
51-
# heliostat_target_light_source_mapping = [
52-
# ("heliostat_1", "target_name_2", incident_ray_direction_tensor_1),
53-
# ("heliostat_2", "target_name_2", incident_ray_direction_tensor_2),
54-
# (...)
55-
# ]
42+
43+
# Set a ray extinction factor responsible for global shading of rays (0.0 -> no global shading, 1.0 -> full global shading).
44+
ray_extinction_factor = 0.0
45+
46+
# Use a heliostat target light source mapping to specify which heliostat in your scenario should be activated,
47+
# which heliostat will receive which incident ray direction for alignment and on which target it will be raytraced.
48+
# If no mapping is provided, all heliostats are selected, and they will all receive the default incident ray direction
49+
# from a sun positioned directly in the south and they will all be raytraced on the first target found in your scenario.
50+
heliostat_target_light_source_mapping = None
51+
# If you want to customize the mapping, choose the following style: list[tuple[str, str, torch.Tensor]]
52+
# heliostat_target_light_source_mapping = [
53+
# ("heliostat_1", "target_name_2", incident_ray_direction_tensor_1),
54+
# ("heliostat_2", "target_name_2", incident_ray_direction_tensor_2),
55+
# (...)
56+
# ]
5657

5758
bitmap_resolution = torch.tensor([256, 256])
5859

tutorials/04_kinematic_reconstruction_tutorial.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,12 @@ def create_plots(
184184
# ....
185185
],
186186
),
187-
# ...
188187
]
189188

190189
# Or if you have a directory with downloaded data use this code to create a mapping.
191190
# heliostat_data_mapping = paint_scenario_parser.build_heliostat_data_mapping(
192-
# base_path="base/path/data",
193-
# heliostat_names=["heliostat_1"],
191+
# base_path="/workVERLEIHNIX/share/PAINT",
192+
# heliostat_names=["AA39", "AA31"],
194193
# number_of_measurements=5,
195194
# image_variant="flux",
196195
# randomize=True,
@@ -204,8 +203,8 @@ def create_plots(
204203
config_dictionary.batch_size: 50,
205204
config_dictionary.log_step: 3,
206205
config_dictionary.early_stopping_delta: 1e-4,
207-
config_dictionary.early_stopping_patience: 300,
208-
config_dictionary.early_stopping_window: 300,
206+
config_dictionary.early_stopping_patience: 10,
207+
config_dictionary.early_stopping_window: 20,
209208
}
210209
# Configure the learning rate scheduler.
211210
scheduler_dict = {

tutorials/05_motor_positions_optimizer_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#############################################################################################################
1818
# Define helper functions for the plots.
19-
# Skip to line 110 for the tutorial code.
19+
# Skip to line 111 for the tutorial code.
2020
#############################################################################################################
2121

2222

0 commit comments

Comments
 (0)