diff larch_plot.py @ 2:59d0d15a40ef draft

planemo upload for repository https://github.com/MaterialsGalaxy/larch-tools/tree/main/larch_plot commit 0f66842e802430e887d1c6cb7be1cc5436408fd2
author muon-spectroscopy-computational-project
date Mon, 04 Mar 2024 11:43:46 +0000
parents 002c18a3e642
children 5b993aff09e3
line wrap: on
line diff
--- a/larch_plot.py	Wed Dec 06 13:04:06 2023 +0000
+++ b/larch_plot.py	Mon Mar 04 11:43:46 2024 +0000
@@ -34,7 +34,10 @@
 
         for group in groups:
             params = group.athena_params
-            label = params.annotation or params.file or params.id
+            annotation = getattr(params, "annotation", None)
+            file = getattr(params, "file", None)
+            params_id = getattr(params, "id", None)
+            label = annotation or file or params_id
             if y_variable == "chir_mag":
                 x_variable = "distance"
                 x = group.r