[Python] UnpicklingError: could not find MARK when trying to restore sherpa file

Discussão em 'Python' iniciado por Stack, Fevereiro 12, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to reload a fit.sherpa file. I'm working in a linux terminal and have declared heasoft, ciao, and sherpa to work within the Python package. I did a sherpa fitting on a data set for astronauts research a few days ago and was trying to reload the file. When I use restore(filename='fit.sherpa') to try and restore it, like it says on the sherpa website, I keep getting UnpicklingError: could not find MARK

    I've tried the commands it says to use on the sherpa help site: restore(filename='fit.sherpa'), restore('./fit.sherpa'). Instead of reopening the file so I could look at the fitting data again it keeps saying UnpicklingError: could not find MARK. I also tried using f.seek(0) like I've seen on here but then it says: AttributeError: 'builtin_function_or_method' object has no attribute 'seek' which might be because it's working with Python in sherpa in a linux terminal and not in Python itself.

    Continue reading...

Compartilhe esta Página