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
DRAGONS has been experience memory issues with certain datasets/images. This memory seems to be exploding due to something related to astrodata.
Describe the bug
Memory explodes when certain astropy models are used (e.g., Chebyshev2D).
To Reproduce
Using memory_profiler and astropy (and nothing else):
fromastropy.modeling.modelsimportChebyshev2Dimportnumpyasnpfrommemory_profilerimportprofileimportgc@profiledefmain():
x=np.linspace(0, 1, 1_000_000, dtype=np.float32)
y=x**2+1model1=Chebyshev2D(3, 3)
result1=model1(x, y)
model2=Chebyshev2D(4, 4)
result2=model2(x, y)
model3=Chebyshev2D(10, 10)
result3=model3(x, y)
# Garbage collection does not help, because there are# references left over in the model object.if__name__=="__main__":
main()
Expected behavior
Not this.
The text was updated successfully, but these errors were encountered:
teald
added
bug
Something isn't working
external
Bugs that are caused by external dependencies and other factors.
labels
Sep 27, 2024
DRAGONS has been experience memory issues with certain datasets/images. This memory seems to be exploding due to something related to astrodata.
Describe the bug
Memory explodes when certain astropy models are used (e.g., Chebyshev2D).
To Reproduce
Using
memory_profiler
andastropy
(and nothing else):Expected behavior
Not this.
The text was updated successfully, but these errors were encountered: