Skip to content

Instantly share code, notes, and snippets.

View saimn's full-sized avatar

Simon Conseil saimn

  • Institut de Physique des 2 Infinis (IP2I, CNRS)
  • Lyon, France
View GitHub Profile
====================== slowest reading durations =======================
16.173 coordinates/index
14.260 visualization/wcsaxes/ticks_labels_grid
12.112 visualization/rgb
11.582 visualization/wcsaxes/overlays
9.496 timeseries/index
7.912 stats/ripley
6.881 visualization/wcsaxes/slicing_datacubes
6.714 modeling/physical_models
6.280 visualization/wcsaxes/custom_frames
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#ASDF 1.0.0
#ASDF_STANDARD 1.5.0
%YAML 1.1
%TAG ! tag:stsci.edu:asdf/
--- !core/asdf-1.1.0
asdf_library: !core/software-1.0.0 {author: Space Telescope Science Institute, homepage: 'http://github.com/spacetelescope/asdf',
name: asdf, version: 2.6.0}
history:
extensions:
- !core/extension_metadata-1.0.0
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
## When True, use Unicode characters when outputting values, and displaying
## widgets at the console.
# unicode_output = False
## When True, use ANSI color escape sequences when writing to the console.
# use_color = True
## Maximum number of lines in the display of pretty-printed objects. If not
## provided, try to determine automatically from the terminal size. Negative
## numbers mean no limit.
import matplotlib.pyplot as plt
import numpy as np
import re
from collections import defaultdict
# flake8 --select=E501 astropy/ > pep8length.txt
with open('pep8length.txt') as f:
text = f.read()
matches = re.findall(r'astropy/(.*?)/.*.py:.*(\d\d) > 79 characters', text)
class EllipticalMoffat2D(Fittable2DModel):
"""
Two dimensional elliptical Moffat model.
Parameters
----------
amplitude : float
Amplitude of the model.
x_0 : float
x position of the maximum of the Moffat model.
diff --git a/sphinx/builders/__init__.py b/sphinx/builders/__init__.py
index 8eaa0e215..62887098a 100644
--- a/sphinx/builders/__init__.py
+++ b/sphinx/builders/__init__.py
@@ -452,12 +452,33 @@ class Builder:
def _read_serial(self, docnames):
# type: (List[str]) -> None
+ times = []
+ import psutil
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Internet access disabled
============================= test session starts ==============================
platform linux -- Python 3.7.1, pytest-3.10.1, py-1.7.0, pluggy-0.8.0 -- /home/conseil/miniconda3/envs/py37/bin/python
cachedir: .pytest_cache
Running tests with Astropy version 3.1rc1.
Running tests in astropy/io/votable.
Date: 2018-11-16T18:21:29