Open LJRH opened 2 days ago
Downgraded to version 0.9.80, where the 'Load Fit Result' is still working.
@LJRH Thanks -- ack. I'll fix that. Sorry for the trouble.
@newville I have also observed this misbehavior for 0.9.81 under Linux.
Furthermore, I cannot load a session file saved with 0.9.81. When reading back the session file, Larch sees the session file like as an ASCII file.
This doesn't happen under Windows, nor for 0.9.80 under Linux/Windows
I have no idea from where it comes from. If you know how to fix it, it would be great news.
Thanks, Mauro
On Thu, Nov 21, 2024, 4:16 PM Matt Newville @.***> wrote:
@LJRH https://github.com/LJRH Thanks -- ack. I'll fix that. Sorry for the trouble.
— Reply to this email directly, view it on GitHub https://github.com/xraypy/xraylarch/issues/540#issuecomment-2491508305, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEFEDWKGO7EECQZDPWHGBT2BX2NLAVCNFSM6AAAAABSFADADKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJRGUYDQMZQGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>
@LJRH @maurov I think I have this fixed in the master branch (and also #541). I can save and reload Session files (on macOS). I'll try on Linux and Windows later today.
Also: sorry for the trouble. I've been trying to "normalize" my codes to be more consistent and have fewer copied bit of code, and also to better use pathlib.Path
.... and this has introduced some bugs -- and GUIs are hard to test (and Larch does not have nearly enough testing anyway).
FWIW, I think we should aim for next version (and switch to date-based version tags) around Dec 1, merging #536, making sure #532 and related issues on load/save are fixed, and doing a lot of testing of the loading/saving data steps.
Version: Larix Larch 0.9.81 (RHEL 7.9) Module: larix / pre_edge() Dataset: HERFD-XANES Fe K-edge
Description: Clicking the 'Load Fit Result' to load a previously generated model does not work. Error given is:
I tried following the error back through the code, but it wasn't entirely obvious where the issue was. It would be good to be able to load models from datasets from older versions of larix/xasviewer.
Best Wishes, Luke