Skip to content

Instantly share code, notes, and snippets.

View pllim's full-sized avatar
💭
Clickety clack clack. ⌨

P. L. Lim pllim

💭
Clickety clack clack. ⌨
View GitHub Profile
@pllim
pllim / astropy_bisect.md
Last active July 9, 2020 16:04
Bisecting astropy for Issue 10548

Brian Hayden found performance issue that was reported at astropy/astropy#10548 . Will git bisect identify the offending commit? Reportedly, it was not an issue in 3.2.x but an issue in 4.0.x.

Test script (runme.py) can be something like this and will be in the root directory of the repository checkout:

import time as _time
import numpy as np
from astropy import table
@pllim
pllim / measure_memory.py
Created June 5, 2019 21:17
DSII TESS cube memory profiling with FITS memmap
"""
Modify the amount of sub-cube you wish to extract in the
``fits_mmap()`` function. Then run this::
python measure_memory.py
My results below. This shows that memory mapping should only
consume the memory used in accessed sub-cube, not the entire cube.
Trying to calculate the mean of the entire cube did not work,
as expected.
@pllim
pllim / nicmos_unit_conversion.ipynb
Created June 3, 2019 20:53
Programmatic Replacements for NICMOS Units Conversion Form
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pllim
pllim / synphot_issue_159_postmortem2.ipynb
Created October 19, 2018 21:34
synphot issue 159 (4) without patch 166
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pllim
pllim / synphot_issue_159_postmortem.ipynb
Created October 19, 2018 21:26
synphot issue 159 (4)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pllim
pllim / acs_stmag_abmag_zpt.ipynb
Last active September 27, 2018 18:54
synphot issue 159 (3)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pllim
pllim / acs_test_simple1.ipynb
Created September 24, 2018 15:56
synphot issue 159 (2)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pllim
pllim / synphot_issue_159.ipynb
Created August 17, 2018 15:24
synphot issue 159
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pllim
pllim / synphot_uresp_hilbert.ipynb
Created July 20, 2018 16:59
Observation that produces 1 counts/s
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pllim
pllim / Simple_MEF_example.ipynb
Last active June 15, 2018 18:00
Simple Multi-Extension FITS Image
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.