Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example notebooks in Sphinx documentation #941

Merged
merged 23 commits into from
Jan 29, 2019
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
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
4 changes: 0 additions & 4 deletions ctapipe/image/toymodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
>>> print(image.shape)
(400,)

.. plot:: image/image_example.py
:include-source:



"""
import numpy as np
Expand Down
30 changes: 29 additions & 1 deletion docs/FAQ.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,35 @@
==========================
Frequently Asked Questions
==========================

----------------
Technical Issues
----------------

Missing standard library when compiling on macOS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you get an error when running `make develop` (or `python setup.py
develop`) that says `fatal error: 'iostream' file not found`, this is likely
because latest versions of macOS put the standard C++ libraries inside a
package, rather than in /usr/lib (where older versions of setuptools expect
them to be apparently). If this error occurs, you can just run the following
command to re-create the /usr/lib links:

.. code-block:: console

sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /


Hard crash when loading a SimTelArray file?
-----------------------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

*Note*: as of ctapipe 0.6.1, the new `SimTelEventSource` (based on `pyeventio`)
is used by default instead of `HESSIOEventSource` (based on
`pyhessio`/`libhessio`). This should prevent any crashes as it does not use
the `libhessio` library. If you are still using an older version, or have
explicitly enabled the `HESSIOEventSource` rather than the new
`SimTelEventSource`, see the following:

Sometimes when reading a simtel file, the code crashes (not even an
out-of-memory error is given). Loading a simtel file right now needs a
Expand All @@ -16,3 +43,4 @@ the mean time, you can increase your stack memory limit by using the
commmand `ulimit -s <SIZE IN MB>` for a single terminal
session. Increasing it above the default should help stop these random
crashes.

61 changes: 61 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,67 @@
Change Log
==========


v0.6.1
------

* Fix broken build (#743) @kosack
* Add example script for a simple event writer (#746) @jjlk
* Fix camera axis alignment in HillasReconstructor (#741) @mackaiver
* Lst reader (#749) @FrancaCassol
* replace deprecated astropy broadcast (#754) @mackaiver
* A few more example notebooks (#757) @kosack
* Add MC xmax info (#759) @mackaiver
* Use Astropy Coordinate Transofmations For Reconstruction (#758) @mackaiver
* Trigger pixel reader (#745) @thomasarmstrong
* Change requested in #742: init Hillas skewness and kurtosis to NaN (#744) @STSpencer
* Fix call to np.linalg.leastsq (#760) @kosack
* Fix/muon bugs (#762) @kosack
* Implement hillas features usen eigh (#748) @MaxNoe
* Use HillasParametersContainer only (#763) @MaxNoe
* Regression features in `RegressorClassifierBase` (#764) @vuillaut
* Adding an example notebook no how to convert hex geometry to square and back (#767) @vuillaut
* Wrong angle in ArrayDisplay. changed phi to psi. (#771) @thomasgas
* Unstructured interpolator (#770) @ParsonsRD
* Lst reader (#776) @FrancaCassol
* Fixing core reconstruction (#777) @kpfrang
* Leakage (#783) @MaxNoe
* Revert "Fixing core reconstruction" (#789) @kosack
* Fixing the toy image generator (#790) @MaxNoe
* Fix bad builds by changing channel name (missing pyqt package) (#793) @kosack
* Implement concentration image features (#791) @MaxNoe
* updated main documentation page (#792) @kosack
* Impact intersection (#778) @mackaiver
* add test for sliced geometries for hillas calculation (#781) @mackaiver
* Simple HESS adaptations (#794) @ParsonsRD
* added a config file for github release-drafter plugin (#795) @kosack
* Array plotting (#784) @thomasgas
* Minor changes: mostly deprecationwarning fixes (#787) @mireianievas
* Codacy code style improvements (#796) @dneise
* Add unit to h_max in HillasReconstructor (#797) @jjlk
* speed up unit tests that use test_event fixture (#798) @kosack
* Update Timing Parameters (#799) @LukasNickel

v0.6.0
------

This is an interim release, after some major refactoring, and before we add
the automatic gain selection and refactored container classes. It's not
intended yet for production.

Some Major changes since last release:

* new `EventSource` class hierarchy for reading event data, which now supports simulation and testbench data from multiple camera prototypes (notably CHEC, SST-1M, NectarCam)
* new `EventSeeker` class for (inefficient) random event access.
* a much improved `Factory` class
* re-organized event data structure (still evolving) - all scripts not in ctapipe must be changed to work with the new data items that were re-named (a migration guide will be given in the 0.7 release)
* better HDF5 table output, supporting merging multiple `Containers` into a single output table
* improvements to Muon analysis, and the muon example script
* improvements to the calibration classes
* big improvements to the Instrument classes
* lots of cleanups and bug fixes
* much more...

v0.5.3 (unlreleased)
--------------------

Expand Down
7 changes: 5 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,13 @@
'sphinx.ext.githubpages',
'sphinx.ext.mathjax',
'sphinx_automodapi.automodapi',
'nbsphinx',
'matplotlib.sphinxext.plot_directive',
'numpydoc']

numpydoc_show_class_members = False
nbsphinx_timeout = 120 # allow max 2 minutes to build each notebook


# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down Expand Up @@ -93,7 +96,7 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This patterns also effect to html_static_path and html_extra_path
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '**.ipynb_checkpoints']

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
Expand Down Expand Up @@ -186,7 +189,7 @@
'pandas': ('http://pandas.pydata.org/pandas-docs/stable/', None),
'matplotlib': ('http://matplotlib.org/', None),
'cython': ('http://docs.cython.org/en/latest/', None),
'iminuit': ('http://iminuit.readthedocs.io/en/latest/', None)
'iminuit': ('https://iminuit.readthedocs.io/en/latest/', None)
}

# on_rtd is whether we are on readthedocs.org
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ filtering).

An example of image cleaning and dilation:

.. image:: dilate.png
.. image:: ./dilate.png


API Reference
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions docs/ctapipe_api/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
API Docs
=====================

.. toctree::
:maxdepth: 1
:glob:

*/index
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ with `numpy` operations, since it is quite speed-efficient.
Examples
--------

.. plot:: instrument/camerageometry_example.py
.. plot:: ctapipe_api/instrument/camerageometry_example.py
:include-source:


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading