neutrons / web_reflectivity

Web Interface for Reflectivity Fitting. This code is now hosted at the link below.
https://code.ornl.gov/reflectometry/web_reflectivity
Apache License 2.0
1 stars 2 forks source link

Cannot load data because of Unicode "Angstrom" sign #2

Open birkenfeld opened 6 years ago

birkenfeld commented 6 years ago

I set up an instance according to the test/README.md - everything was installing fine and I could log in. Only difference is that instead of conda, I used a "normal" virtualenv to install the dependencies.

When trying to load some data, I always get an error due to failed encoding of the Angstrom sign that is added to the plot in https://github.com/neutrons/web_reflectivity/blob/master/web_reflectivity/fitting/view_util.py#L755 - if I replace that with "AA" it works.

Are you by chance operating in an environment with sys.setdefaultencoding("utf8")?

mdoucet commented 6 years ago

Interesting. Which python version are you using, and on which platform? Thanks for the feedback. Feel free to contact me directly if you have other issues.

birkenfeld commented 6 years ago

This is 2.7.15, on a Ubuntu 18.04 system. Will do - one of our scientists here at MLZ Garching was interested in the interface, and I set up the testing instance for him to try. I'm sure there will be more questions once he uploads some real data :)