diff --git a/CHANGES.rst b/CHANGES.rst index f226f0ce554..d8f453a98d1 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -21,6 +21,9 @@ documentation - Added docs for the NIRSpec MSA metadata file to the data products area of RTD. [#8399] +- Added __main__ to the Jump class to avoid memory leak when running + multiprocessing. [] + extract_1d ---------- diff --git a/jwst/jump/jump_step.py b/jwst/jump/jump_step.py index 7e95f46383e..3a59cea2c88 100755 --- a/jwst/jump/jump_step.py +++ b/jwst/jump/jump_step.py @@ -142,3 +142,7 @@ def process(self, input): result.meta.cal_step.jump = 'COMPLETE' return result + + +if __name__ == '__main__': + JumpStep().process()