Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when starting a new fit #234

Open
AEB-5-47 opened this issue Nov 25, 2024 · 2 comments
Open

Error when starting a new fit #234

AEB-5-47 opened this issue Nov 25, 2024 · 2 comments

Comments

@AEB-5-47
Copy link

Error message as follows when trying to load data/phase for a new fit:

Traceback (most recent call last):
File "/opt/anaconda3/envs/pdfgui2-intel/lib/python3.9/site-packages/diffpy/pdfgui/gui/errorwrapper.py", line 62, in _f
return func(*args, **kwargs)
File "/opt/anaconda3/envs/pdfgui2-intel/lib/python3.9/site-packages/diffpy/pdfgui/gui/addphasepanel.py", line 106, in readConfiguration
remember = self.cP.getboolean("PHASE", "remember")
File "/opt/anaconda3/envs/pdfgui2-intel/lib/python3.9/configparser.py", line 828, in getboolean
return self._get_conv(section, option, self._convert_to_boolean,
File "/opt/anaconda3/envs/pdfgui2-intel/lib/python3.9/configparser.py", line 808, in _get_conv
return self._get(section, conv, option, raw=raw, vars=vars,
File "/opt/anaconda3/envs/pdfgui2-intel/lib/python3.9/configparser.py", line 803, in _get
return conv(self.get(section, option, **kwargs))
File "/opt/anaconda3/envs/pdfgui2-intel/lib/python3.9/configparser.py", line 1166, in _convert_to_boolean
raise ValueError('Not a boolean: %s' % value)
ValueError: Not a boolean: ['False', '']

@Tieqiong
Copy link
Contributor

Tieqiong commented Nov 27, 2024

Hello! @AEB-5-47
May I ask what kind of data/phase you are adding?

Also if possible please go to your user folder and there should be a hidden file called .pdfgui_py3.cfg. Open the file with a text editor and look for the field "[PHASE]". I suspect in the list under this field there's one remember that don't have a corresponding value. I'd say by giving it a proper boolean value (e.g. False) will solve the problem. If not, there's always the option of reinstall the program.

Hope this helps!

@AEB-5-47
Copy link
Author

@Tieqiong, it happened when selecting either the insert new data insert new phase.
I do seem to be able to continue the fit as normal if I just cancel the error message (now I have also reinstalled).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants