Skip to content

Instantly share code, notes, and snippets.

@cdeil
Created November 21, 2017 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdeil/40c787d6188bee1c2f214246a84d3ca0 to your computer and use it in GitHub Desktop.
Save cdeil/40c787d6188bee1c2f214246a84d3ca0 to your computer and use it in GitHub Desktop.
$ ack squeeze gammapy/irf/
gammapy/irf/tests/test_psf_3d.py
24: energy_lo = Energy(table["ENERG_LO"].squeeze(), unit=table["ENERG_LO"].unit)
25: energy_hi = Energy(table["ENERG_HI"].squeeze(), unit=table["ENERG_HI"].unit)
26: offset_lo = Angle(table["THETA_LO"].squeeze(), unit=table["THETA_LO"].unit)
27: offset_hi = Angle(table["THETA_HI"].squeeze(), unit=table["THETA_HI"].unit)
28: rad_lo = Angle(table["RAD_LO"].squeeze(), unit=table["RAD_LO"].unit)
29: rad_hi = Angle(table["RAD_HI"].squeeze(), unit=table["RAD_HI"].unit)
30: psf_value = Quantity(table["RPSF"].squeeze(), unit=table["RPSF"].unit)
gammapy/irf/energy_dispersion.py
669: e_lo = table['ETRUE_LO'].quantity.squeeze()
670: e_hi = table['ETRUE_HI'].quantity.squeeze()
671: o_lo = table['THETA_LO'].quantity.squeeze()
672: o_hi = table['THETA_HI'].quantity.squeeze()
673: m_lo = table['MIGRA_LO'].quantity.squeeze()
674: m_hi = table['MIGRA_HI'].quantity.squeeze()
676: matrix = table['MATRIX'].squeeze().transpose()
gammapy/irf/psf_3d.py
115: theta_lo = table['THETA_LO'].squeeze()
116: theta_hi = table['THETA_HI'].squeeze()
120: energy_lo = table['ENERG_LO'].squeeze()
121: energy_hi = table['ENERG_HI'].squeeze()
125: rad_lo = Quantity(table['RAD_LO'].squeeze(), table['RAD_LO'].unit)
126: rad_hi = Quantity(table['RAD_HI'].squeeze(), table['RAD_HI'].unit)
128: psf_value = Quantity(table['RPSF'].squeeze(), table['RPSF'].unit)
gammapy/irf/psf_king.py
95: offset_lo = table['THETA_LO'].squeeze()
96: offset_hi = table['THETA_HI'].squeeze()
100: energy_lo = table['ENERG_LO'].squeeze()
101: energy_hi = table['ENERG_HI'].squeeze()
105: gamma = Quantity(table['GAMMA'].squeeze(), table['GAMMA'].unit)
106: sigma = Quantity(table['SIGMA'].squeeze(), table['SIGMA'].unit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment