Skip to content

Commit 36e17c3

Browse files
committed
remove plots
1 parent bb97f35 commit 36e17c3

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

artist/core/surface_reconstructor.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -559,21 +559,21 @@ def reconstruct_surfaces(
559559
smoothness_history.append((alpha * smoothness_loss_per_heliostat).mean().detach().cpu().item())
560560
ideal_history.append((beta * ideal_surface_loss_per_heliostat).mean().detach().cpu().item())
561561
energy_history.append(energy_constraint.mean().detach().cpu().item())
562-
if epoch % 250 == 0:
563-
fig, axes = plt.subplots(nrows=cropped_flux_distributions.shape[0], ncols=2, figsize=(6, 3*cropped_flux_distributions.shape[0]))
562+
# if epoch % 250 == 0:
563+
# fig, axes = plt.subplots(nrows=cropped_flux_distributions.shape[0], ncols=2, figsize=(6, 3*cropped_flux_distributions.shape[0]))
564564

565-
for i in range(cropped_flux_distributions.shape[0]):
566-
# Compute min/max across the pair for shared color scale
567-
im0 = axes[i, 0].imshow(cropped_flux_distributions[i].detach().cpu(), cmap='inferno',) #vmin=vmin, vmax=vmax)
568-
axes[i, 0].set_title(f"Predicted {cropped_flux_distributions[i].detach().cpu().sum()}")
569-
axes[i, 0].axis('off')
565+
# for i in range(cropped_flux_distributions.shape[0]):
566+
# # Compute min/max across the pair for shared color scale
567+
# im0 = axes[i, 0].imshow(cropped_flux_distributions[i].detach().cpu(), cmap='inferno',) #vmin=vmin, vmax=vmax)
568+
# axes[i, 0].set_title(f"Predicted {cropped_flux_distributions[i].detach().cpu().sum()}")
569+
# axes[i, 0].axis('off')
570570

571-
im1 = axes[i, 1].imshow(measured_flux_distributions[i].detach().cpu(), cmap='inferno',) # vmin=vmin, vmax=vmax)
572-
axes[i, 1].set_title(f"Ground Truth {i}")
573-
axes[i, 1].axis('off')
571+
# im1 = axes[i, 1].imshow(measured_flux_distributions[i].detach().cpu(), cmap='inferno',) # vmin=vmin, vmax=vmax)
572+
# axes[i, 1].set_title(f"Ground Truth {i}")
573+
# axes[i, 1].axis('off')
574574

575-
plt.tight_layout()
576-
plt.savefig(f"epoch_{epoch}")
575+
# plt.tight_layout()
576+
# plt.savefig(f"epoch_{epoch}")
577577
# Early stopping when loss did not improve for a predefined number of epochs.
578578
stop = early_stopper.step(loss)
579579

examples/hyperparameter_optimization/generate_results_surface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,14 +509,14 @@ def generate_reconstruction_results(
509509
results_dir = pathlib.Path(args.results_dir)
510510

511511
# Define scenario path.
512-
scenario_file = pathlib.Path(args.scenarios_dir) / "ideal_scenario_hpo.h5"
512+
scenario_file = pathlib.Path(args.scenarios_dir) / "ideal_scenario_kinematics.h5"
513513
if not scenario_file.exists():
514514
raise FileNotFoundError(
515515
f"The reconstruction scenario located at {scenario_file} could not be found! Please run the ``generate_scenario.py`` to generate this scenario, or adjust the file path and try again."
516516
)
517517

518518
viable_heliostats_data = (
519-
pathlib.Path(args.results_dir) / "viable_heliostats_hpo.json"
519+
pathlib.Path(args.results_dir) / "viable_heliostats_kinematics.json"
520520
)
521521
if not viable_heliostats_data.exists():
522522
raise FileNotFoundError(

0 commit comments

Comments
 (0)