Skip to content

Commit

Permalink
Bug fixing the q_path in Result panel.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikibonacci committed Sep 23, 2024
1 parent 4ab3eea commit 8b066d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/aiidalab_qe_vibroscopy/app/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ def _update_view(self):

# euphonic
if ins_data:
intensity_maps = EuphonicSuperWidget(fc=ins_data["fc"])
intensity_maps = EuphonicSuperWidget(
fc=ins_data["fc"], q_path=ins_data["q_path"]
)
children_result_widget += (intensity_maps,)
tab_titles.append("Inelastic Neutrons")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def __init__(self, fc, q_path, **kwargs):

self.spectra, self.parameters = produce_bands_weigthed_data(
fc=self.fc,
linear_path = self.q_path,
linear_path=self.q_path,
plot=False, # CHANGED
)

Expand Down Expand Up @@ -252,7 +252,8 @@ def _on_plot_button_clicked(self, change=None):
}
else:
linear_path = copy.deepcopy(self.q_path)
linear_path["delta_q"] = parameters_["q_spacing"]
if linear_path:
linear_path["delta_q"] = parameters_["q_spacing"]

self.spectra, self.parameters = produce_bands_weigthed_data(
params=parameters_,
Expand Down

0 comments on commit 8b066d0

Please sign in to comment.