You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the ConfigHandler routine for a test configuration (and consequently using the draw_image function) results in an image like the one I attached in the end (this occurs regardless of the values I use on the configuration archive, for this specific example, 'config_test.py' is the same as the configuration example found in 'paltas/Configs/Examples/config_simple.py'). I have a similar problem using the 'generate.py' alternative.
import paltas import os import matplotlib.pyplot as plt from astropy.visualization import simple_norm
Hi! The pip version is a bit out of date. Updating it is a top priority, but in the mean time have you tried using the current main branch instead? I'm not immediately sure what could be causing this issue, but my first guess is that the pip version you have installed is calling the lenstronomy function EPL instead of EPL_NUMBA. EPL requires a separate installation of fastell4py whereas EPL_NUMBA does not. Try running the tests in the test folder and see if you get any failures.
Running the ConfigHandler routine for a test configuration (and consequently using the draw_image function) results in an image like the one I attached in the end (this occurs regardless of the values I use on the configuration archive, for this specific example, 'config_test.py' is the same as the configuration example found in 'paltas/Configs/Examples/config_simple.py'). I have a similar problem using the 'generate.py' alternative.
import paltas
import os
import matplotlib.pyplot as plt
from astropy.visualization import simple_norm
from paltas.Configs.config_handler import ConfigHandler
config_handler = ConfigHandler('config_test.py')
kwargs_model, kwargs_params = config_handler.get_lenstronomy_models_kwargs()
image, metadata = config_handler.draw_image()
image_norm = simple_norm(image, stretch='asinh')
plt.imshow(image, norm=image_norm)
plt.show()
The text was updated successfully, but these errors were encountered: