Bugs with saving loading workspaces in RAW 2.4.1

7 views
Skip to first unread message

Hugh Higinbotham

unread,
Mar 4, 2026, 4:50:41 PM (13 days ago) Mar 4
to BioXTAS RAW
Hello,

I have been using the latest version of RAW 2.4.1 installed on Ubuntu 24.04 LTS from source. There seem to be a few bugs with saving and loading workspaces.
  • When using the "File > Load Workspace" menu, workspace files are not displayed correctly in the file manager popup. 
    • "Workspace files ..." does not show either .hdf5 or .wsp files
    • "*.wsp" shows only *.hdf5 workspace files
    • All files (*.*) shows all files, but *.wsp files are listed as "Unknown" file type
  • There is no option to save a workspace in the previous '.wsp' format, only .hdf5
  • When loading a workspace file saved in 2.4.1 (automatically as *.hdf5) after manually changing the colors of some profiles, these profiles fail to load with the following error, indicating a bug saving colors in the correct format:
    • An unexpected error has occurred, please report it to the developers.
      System: Linux-6.14.0-1020-oem-x86_64-with-glibc2.39
      RAW version: 2.4.1
      Prebuilt: False
      ATSAS version: 4.1.3

      Error:
      Traceback (most recent call last):

        File "/home/hugh/miniconda3/lib/python3.13/site-packages/wx/core.py", line 3425, in <lambda>
          lambda event: event.callable(*event.args, **event.kw) )
                        ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^

        File "/home/hugh/miniconda3/lib/python3.13/site-packages/bioxtasraw/RAWPlot.py", line 827, in plotSASM
          each.set_color(color)
          ~~~~~~~~~~~~~~^^^^^^^

        File "/home/hugh/miniconda3/lib/python3.13/site-packages/matplotlib/lines.py", line 1081, in set_color
          mcolors._check_color_like(color=color)
          ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^

        File "/home/hugh/miniconda3/lib/python3.13/site-packages/matplotlib/colors.py", line 249, in _check_color_like
          raise ValueError(
          ...<6 lines>...
              f"and pairs combining one of the above with an alpha value")

      ValueError: '[0.49803922 0.         1.        ]' is not a valid value for color: supported inputs are (r, g, b) and (r, g, b, a) 0-1 float tuples; '#rrggbb', '#rrggbbaa', '#rgb', '#rgba' strings; named color strings; string reprs of 0-1 floats for grayscale values; 'C0', 'C1', ... strings for colors of the color cycle; and pairs combining one of the above with an alpha value

Please let me know if there is any other info or files from me to investigate. 

Best,
Hugh

Jesse Hopkins

unread,
Mar 4, 2026, 4:53:55 PM (13 days ago) Mar 4
to bioxt...@googlegroups.com
Hi Hugh,

Can you send me a screenshot of the first issue? I'm not quite sure what you're describing here.

The second issue is not a bug, the old workspace format is supported as load only going forward.

I'll look into the third issue and get back to you.

All the best.

- Jesse

----
Jesse Hopkins, PhD (he/him)
Director, BioCAT
Sector 18, Advanced Photon Source
Research Associate Professor, Illinois Tech


--
You received this message because you are subscribed to the Google Groups "BioXTAS RAW" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bioxtas_raw...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bioxtas_raw/fd477b2b-dcfa-4123-a5cc-bc0f80019c28n%40googlegroups.com.

Jesse Hopkins

unread,
Mar 4, 2026, 6:19:38 PM (13 days ago) Mar 4
to bioxt...@googlegroups.com
Hi Hugh,

The third issue is a bug. I don't know why it happens when you change colors vs. with the default colors, that part doesn't make sense. But in some limited testing I was able to recreate it. I've fixed the issue if you want to grab the latest version from the git, or you can wait for the next release which will contain that fix. Note that this won't affect workspaces saved that currently demonstrate this error. To fix that you would have to go in and manually edit the color in the hdf5 file attribute, which I can tell you how to do if you need to.

All the best.

- Jesse

----
Jesse Hopkins, PhD (he/him)
Director, BioCAT
Sector 18, Advanced Photon Source
Research Associate Professor, Illinois Tech

Hugh Higinbotham

unread,
Mar 4, 2026, 9:09:35 PM (13 days ago) Mar 4
to BioXTAS RAW
Hi Jesse,

Thanks for the quick fix for the third issue! I only had one workspace affected so I don't feel the need to fix it manually.

For the first issue here are the requested screenshots in a test directory with two files, test.wsp and test.hdf5. The issue is whether files are shown correctly given  the dropdown selection in the lower right.

Best,
Hugh
Wed Mar 4 09:05:19 PM EST 2026.png
Wed Mar 4 09:04:44 PM EST 2026.png
Wed Mar 4 09:05:02 PM EST 2026.png

Jesse Hopkins

unread,
Mar 5, 2026, 5:29:16 PM (12 days ago) Mar 5
to bioxt...@googlegroups.com
Hi Hugh,

So the 'Unknown' filet ype isn't a bug, but rather just a system thing. The file dialog is a system dialog, and the system doesn't know what a .wsp file is. That shouldn't affect anything. I believe the other issue you mention is due to a malformed wildcard string in the file dialog creation. These strings can't be shown on mac, which is my usual development platform, but I believe I've fixed it and updated the git with this new version. If you wanted to test the version in the git and see if it is fixed and report back that would be appreciated, otherwise I will test it on linux when I have a chance.

All the best.

- Jesse

----
Jesse Hopkins, PhD (he/him)
Director, BioCAT
Sector 18, Advanced Photon Source
Research Associate Professor, Illinois Tech

Hugh Higinbotham

unread,
Mar 11, 2026, 10:27:12 AM (6 days ago) Mar 11
to BioXTAS RAW
Hi Jesse,

Forgot to reply but yes, I cloned the latest from git and everything is fixed! Thanks so much for the quick work.

Best,
Hugh

Jesse Hopkins

unread,
Mar 11, 2026, 5:51:19 PM (6 days ago) Mar 11
to bioxt...@googlegroups.com
Hi Hugh,

Thanks for confirming the fix. Glad it's working for you.

- Jesse

----
Jesse Hopkins, PhD (he/him)
Director, BioCAT
Sector 18, Advanced Photon Source
Research Associate Professor, Illinois Tech

Reply all
Reply to author
Forward
0 new messages