Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
2449769
Early experiment in giving names to model input/output coordinates, r…
embray Aug 1, 2014
f554bb4
Break _ModelMeta.__new__ into a few subroutines for readability. Bri…
embray Aug 7, 2014
d44757b
Fix some minor issues with the array-like interface to Parameters tha…
embray Aug 7, 2014
7da6063
Remove the custom __call__ overrides in these projection classes whic…
embray Aug 7, 2014
e9eaae5
Extend the code generation performed in _ModelMeta.__new__ to include…
embray Aug 7, 2014
fafa163
Remove the __init__ and __call__ generation from the custom_model dec…
embray Aug 7, 2014
2c603f7
Fix typo in decorator per https://github.com/astropy/astropy/pull/283…
embray Aug 19, 2014
43cf999
For some reason the doc build is complaining about not having pages f…
embray Oct 29, 2014
c207d87
ModelMeta now creates a nicer __init__ definition for models that hav…
embray Oct 30, 2014
5e25bab
Add missing support for keyword arguments to Pix2Sky_AZP
embray Oct 30, 2014
e297455
Reorder some of the API docs a bit.
embray Oct 30, 2014
ee7cefd
Just a minor detail--I noticed that the theta parameter has a default…
embray Oct 31, 2014
b6a4747
Updated docs to reflect changes in this PR; particularly that it is n…
embray Oct 31, 2014
cafe0a6
Enable InheritDocstrings on models. Filled out several more docstrin…
embray Oct 31, 2014
717600a
Fix spelling [skip-ci]
embray Oct 31, 2014
698b03c
Summarized these changes for the changelog; will add more details in …
embray Nov 21, 2014
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
14 changes: 14 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,20 @@ API Changes

- ``astropy.modeling``

- Model classes should now specify ``inputs`` and ``outputs`` class
attributes instead of the old ``n_inputs`` and ``n_outputs``. These
should be tuples providing human-readable *labels* for all inputs and
outputs of the model. The length of the tuple indicates the numbers
of inputs and outputs. See "What's New in Astropy 1.0" for more
details. [#2835]

- It is no longer necessary to include ``__init__`` or ``__call__``
definitions in ``Model`` subclasses if all they do is wrap the
super-method in order to provide a nice call signature to the docs.
The ``inputs`` class attribute is now used to generate a nice call
signature, so these methods should only be overridden by ``Model``
subclasses in order to provide new functionality. [#2835]

- The ``Model.inverse`` method has been changed to a *property*, so that
now accessing ``model.inverse`` on a model returns a new model that
implements that model's inverse, and *calling* ``model.inverse(...)``` on
Expand Down
Loading