Skip to content

Commit

Permalink
adapt for test and avoid printing and extra coma
Browse files Browse the repository at this point in the history
  • Loading branch information
AndresOrtegaGuerrero committed Nov 28, 2024
1 parent 41b3daf commit fc8dca3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/aiidalab_qe/app/submission/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,8 @@ def update_process_label(self):
protocol_and_magnetic_info,
soc_info,
]
label = (
f"{structure_label} [{', '.join(label_details)}] {properties_info}".strip()
)
filtered_label_details = [detail for detail in label_details if detail]
label = f"{structure_label} [{', '.join(filtered_label_details)}] {properties_info}".strip()

self.process_label = label

Expand Down

0 comments on commit fc8dca3

Please sign in to comment.