-
Notifications
You must be signed in to change notification settings - Fork 166
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
Log raises TypeError when matplotlib usetex=True #6407
Comments
@nden Can we assign this to someone like @zacharyburnett @braingram or @WilliamJamieson ? |
In regards to kevin218/Eureka#42 (comment), I'm not intimately familiar with what changes |
I have no knowledge about the JWST logging at this time. |
I attempted to replicate this by: installing latex, modifying matplotlib rc as mentioned, generating a plot and creating @zacharyburnett suggested approach sounds good to me. Any help in generating a minimal reproducer would be appreciated. |
Hi, our team has been using
jwst
to produce a transiting exoplanet data reduction pipeline, and we've encountered an error (see below) when we setrc('text', usetex=True)
for matplotlib plotting andjwst
logging is used.The error occurs because when this setting is enabled, the log is passed a bytes like object at some point. The solution we've identified is to add:
immediately prior to Line 158 in the
log_config.py
file. I opted not to submit this as a pull request as I thought you'd want to look at things on your end first, hopefully that's okay! Let me know if you need any more information from us.The text was updated successfully, but these errors were encountered: