Skip to content

Commit

Permalink
Download of phonopy yaml and hdf5 data.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikibonacci committed Jan 13, 2025
1 parent 06289c5 commit c63e72a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/aiidalab_qe_vibroscopy/app/widgets/euphonicmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def produce_phonopy_files(self):
# This is used to produce the phonopy files from
# PhonopyCalculation data. The files are phonopy.yaml and force_constants.hdf5
phonopy_yaml, fc_hdf5 = generate_force_constant_from_phonopy(
self.node.phonon_bands.creator, mode="download"
self.vibro.phonon_bands.creator, mode="download"
)
return phonopy_yaml, fc_hdf5

Expand Down
13 changes: 9 additions & 4 deletions src/aiidalab_qe_vibroscopy/app/widgets/structurefactorwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from aiidalab_qe_vibroscopy.app.widgets.euphonicmodel import EuphonicResultsModel

COLORSCALE = "Viridis"
COLORSCALE = "Viridis" # we should allow more options
COLORBAR_DICT = dict(orientation="v", showticklabels=False, x=1, thickness=10, len=0.4)


Expand Down Expand Up @@ -196,9 +196,14 @@ def render(self):
energy_bins,
self.temperature,
weight_button,
self.plot_button,
reset_button,
self.download_button,
ipw.VBox(
[
self.plot_button,
reset_button,
self.download_button,
],
layout=ipw.Layout(justify_content="flex-start", max_width="200px"),
),
)

if self._model.spectrum_type == "single_crystal":
Expand Down

0 comments on commit c63e72a

Please sign in to comment.