Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
007cee2
Largely trivial whitespace and spelling cleanup, with renames to a fe…
embray Aug 15, 2013
d0d0d20
Move the indent() utility function into astropy.utils and use it to m…
embray Aug 16, 2013
d0b0ddd
Some changes to function/variable/argument/attribute names for better
embray Aug 16, 2013
ec3ffd6
Fix some double list copies
embray Aug 16, 2013
0f1a509
Moved the ModelDefinitionError and InputParameterError out of utils a…
embray Aug 16, 2013
2dc898c
Defined an EulerAngleRotation base class for RotateNative2Celestial a…
embray Aug 16, 2013
13802a0
Convert these methods to staticmethods since they don't need to use t…
embray Aug 16, 2013
ebad776
More WIP; most of the tests passing now
embray Aug 17, 2013
834a00a
WIP: Fixed some issues with rotation models and with composite models…
embray Aug 18, 2013
c40e6f7
This takes care of a few more of the tests by setting the parameters …
embray Aug 18, 2013
c083667
The _validate_lam function required model.mu to be set, but that's no…
embray Sep 18, 2013
0c52a36
As discussed in #980, rewrote Custom1DModel as a decorator that retur…
embray Sep 18, 2013
9443c71
Fix some slight bugs in the handling of 2D rotation matrices
embray Sep 18, 2013
33fb0e7
col_deriv should be false for polynomial models; let's also make this…
embray Sep 18, 2013
996fc2b
Fix up how some of the projection models were using their parameters …
embray Sep 18, 2013
3e6ac20
Don't always convert the parameter value to an array for simple arith…
embray Oct 11, 2013
837c1e8
Elimate unnecessary additional branching, as well as whitespace
embray Oct 11, 2013
191e9a1
PolyND -> PolynomialND just for the sake of consistency (none of the …
embray Oct 14, 2013
08a7d19
Cleanup whitespace usage in this module. Rename it to to example_mod…
embray Oct 14, 2013
4298ad9
Replace the `_convert_input` and `_convert_output` functions that had to
embray Oct 14, 2013
a0ca326
This I think further simplifies model classes by, in most cases, maki…
embray Oct 14, 2013
b9ec4b4
This pdim property isn't used anywhere; maybe it was going to be at o…
embray Oct 14, 2013
eaf71ff
Okay, pdim was used in this test but its use is trivial...
embray Oct 14, 2013
7182ffe
These aren't used currently anywhere, but we can put them back if/when.
embray Oct 14, 2013
e38afea
A quick fix to #1596. I'm still not completely happy with this, but …
embray Oct 17, 2013
0919cde
Update new power law models from #1575 to use the new model definitio…
embray Oct 18, 2013
e8857f8
A much simplified solution that keeps the parameters list as just 1D …
embray Oct 18, 2013
3552d36
Removed the constraintsdef dict and instead has each Fitter subclass …
embray Oct 24, 2013
6bf2d8a
Remove duplicated `InputParameterError` signature.
cdeil Oct 24, 2013
ca50a76
Update `Poly1DModel` to `Polynomial1DModel` in docs
cdeil Oct 24, 2013
f203a49
Fix sphinx warnings from ParametricModel docstring
cdeil Oct 24, 2013
977760a
Made some more simplifications in the fitting code by also keeping ar…
embray Oct 24, 2013
0bf72fc
Merge pull request #2 from cdeil/PR1086_fixes
embray Oct 24, 2013
1a02bae
Update modeling docs a bit
cdeil Oct 24, 2013
e61db26
Trivial whitespace change
embray Oct 24, 2013
76e73ff
linear should be a class attribute; not generally an instance attribu…
embray Oct 24, 2013
ef27b0c
Merge pull request #3 from cdeil/PR1086_docs_fixes
embray Oct 24, 2013
b7ed372
Numerous documentation updates. I just made these changes as I read …
embray Oct 24, 2013
18d674d
Merge branch 'parameter-property' of github.com:embray/astropy into p…
embray Oct 24, 2013
23111cd
Several more minor documentation tweaks I found while going through t…
embray Oct 24, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion astropy/convolution/tests/test_discretize.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from ...modeling.functional_models import (
Gaussian1DModel, Box1DModel, MexicanHat1DModel, Trapezoid1DModel,
Gaussian2DModel, Box2DModel, MexicanHat2DModel)
from ...modeling.tests.model_lists import models_1D, models_2D
from ...modeling.tests.example_models import models_1D, models_2D
from ...modeling.tests.test_models import create_model

try:
Expand Down
3 changes: 2 additions & 1 deletion astropy/io/fits/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@
from numpy import char

from ... import __version__
from ...utils import indent
from .card import Card, BLANK_CARD
from .header import Header
from .hdu.hdulist import fitsopen, HDUList
from .hdu.table import _TableLikeHDU
from .util import indent, u
from .util import u


__all__ = ['FITSDiff', 'HDUDiff', 'HeaderDiff', 'ImageDataDiff', 'RawDataDiff',
Expand Down
3 changes: 2 additions & 1 deletion astropy/io/fits/hdu/hdulist.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
from ..file import PYTHON_MODES, _File
from ..header import BLOCK_SIZE, _pad_length
from ..util import (_is_int, _tmp_name, isfile, fileobj_name, fileobj_closed,
fileobj_mode, ignore_sigint, _get_array_mmap, indent)
fileobj_mode, ignore_sigint, _get_array_mmap)
from ..verify import _Verify, _ErrList, VerifyError, VerifyWarning

from ....utils import indent
from ....utils.exceptions import AstropyUserWarning


Expand Down
9 changes: 0 additions & 9 deletions astropy/io/fits/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,6 @@ def translate(s, table, deletechars):
return s.translate(table)


def indent(s, shift=1, width=4):
indented = '\n'.join(' ' * (width * shift) + l if l else ''
for l in s.splitlines())
if s[-1] == '\n':
indented += '\n'

return indented


def fill(text, width, *args, **kwargs):
"""
Like :func:`textwrap.wrap` but preserves existing paragraphs which
Expand Down
3 changes: 2 additions & 1 deletion astropy/io/fits/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

import warnings

from .util import indent, u
from .util import u
from ...utils import indent
from ...utils.exceptions import AstropyUserWarning


Expand Down
3 changes: 1 addition & 2 deletions astropy/modeling/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
performing model evaluation and fitting. It supports 1D and 2D models
and fitting with parameter constraints. It has some predefined models
and fitting routines.

"""

from . import fitting
from . import models
from .core import *
from . import fitting
from .parameters import *
Loading