question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Memory error - KeplerTargetPixelFile iteration

See original GitHub issue

Problem description

When iterate over KeplerTargetPixelFile object clogging of memory occure.

Example

from lightkurve import KeplerTargetPixelFile

tpf = KeplerTargetPixelFile(filename)
for i, frame in enumerate(tpf):
    pass

Behavior

Over 1,000 megabytes ram for i = 250. This same behavior for jupyter, ipython, python sheel.

Environment:

  • platform Linux
  • lightkurve version: 1.0b21
  • installation method: conda

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
texadactylcommented, Sep 5, 2020

Haven’t been around lightkurve much lately because of commitments to cryptography projects. But, memory leaks are critical issues. When I have time, I’ll look at the tests some more.

0reactions
barentsencommented, Sep 5, 2020

@dhomeier @texadactyl Thank you both! This is very helpful! 👍👍👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

lightkurve.KeplerTargetPixelFile
This class offers a user-friendly way to open a Kepler Target Pixel File (TPF), access its meta data, visualize its contents, extract light...
Read more >
FlareLightCurve — AltaiPony 2.0.0 documentation
Flux in the target pixels from the KeplerTargetPixelFile. pixel_flux_err : multi-dimensional ... Iterative median, see the find_iterative_median method.
Read more >
Out of memory error at train network · Issue #662 - GitHub
Hi, I'm getting an out of memory error when I try to train the network, using either my data or the example data...
Read more >
Tensorflow memory leak in every iteration - Stack Overflow
I'm trying to find out why the code below occurs a huge memory leak during iteration by iteration. Here's the whole code.
Read more >
Not Enough Memory Error? - Ansys Learning Forum
An error has occurred in the Distributed Sparse Matrix Solver while ... The Direct Solver needs more memory than the Iterative Solver.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found