Commit c2be541f060d5def2851afc5dd71f6c43a603154
Merge branch 'integration' into devel
Showing
4 changed files
with
16 additions
and
6 deletions
ChangeLog
| 1 | -2019-12-13 | 1 | +2020-02-17 |
| 2 | 2 | ||
| 3 | * Version 1.7.0 released | 3 | * Version 1.7.0 released |
| 4 | ======================== | 4 | ======================== |
| 5 | 5 | ||
| 6 | + Adapt show_pull_histogram.py to matplotlib > 3.1.0 (#3156) | ||
| 6 | Avoid negative squared standard deviations in cssrcdetect | 7 | Avoid negative squared standard deviations in cssrcdetect |
| 7 | Fix log file header repetition in some cscripts (#3066) | 8 | Fix log file header repetition in some cscripts (#3066) |
| 8 | Add Moon constraints to csviscube (#3065) | 9 | Add Moon constraints to csviscube (#3065) |
| 9 | Remove response cache before source testing in cttsmap (#2973) | 10 | Remove response cache before source testing in cttsmap (#2973) |
| 11 | + Add support for Castro plots to csspec (#2938) | ||
| 10 | Enabling running of example scripts from objects in memory (#2925) | 12 | Enabling running of example scripts from objects in memory (#2925) |
| 11 | Allow using spectral models without "Prefactor" parameter in cssens | 13 | Allow using spectral models without "Prefactor" parameter in cssens |
| 12 | and cstsdist (#1889) | 14 | and cstsdist (#1889) |
NEWS
| 1 | New Features and Important Changes in ctools 1.7.0 | 1 | New Features and Important Changes in ctools 1.7.0 |
| 2 | 2 | ||
| 3 | -13 December 2019 | 3 | +17 February 2020 |
| 4 | 4 | ||
| 5 | 5 | ||
| 6 | Introduction | 6 | Introduction |
| @@ -265,7 +265,8 @@ computation (#1889). | @@ -265,7 +265,8 @@ computation (#1889). | ||
| 265 | 265 | ||
| 266 | csspec - Generates Spectral Energy Distribution | 266 | csspec - Generates Spectral Energy Distribution |
| 267 | ----------------------------------------------- | 267 | ----------------------------------------------- |
| 268 | -None | 268 | +Support to generate Castro plots was added and the relevant information is |
| 269 | +now sorted in the output FITS file (#2938). | ||
| 269 | 270 | ||
| 270 | 271 | ||
| 271 | cssrcdetect - Detects sources in sky map | 272 | cssrcdetect - Detects sources in sky map |
| @@ -339,6 +340,10 @@ None | @@ -339,6 +340,10 @@ None | ||
| 339 | 340 | ||
| 340 | Examples | 341 | Examples |
| 341 | -------- | 342 | -------- |
| 343 | +In show_pull_histogram.py relpaced the call to mlab.normpdf() by a direct | ||
| 344 | +computation of the normalisation, so that the code also works for matplotlib | ||
| 345 | +> 3.1.0 (#3156). | ||
| 346 | + | ||
| 342 | The show_viscube.py script was added to display a visibility cube (#3065). | 347 | The show_viscube.py script was added to display a visibility cube (#3065). |
| 343 | 348 | ||
| 344 | The example scripts show_butterfly.py, show_spectrum.py, show_residuals.py | 349 | The example scripts show_butterfly.py, show_spectrum.py, show_residuals.py |
doc/source/admin/release_history/1.7.rst
| @@ -17,6 +17,8 @@ In particular, this release provides: | @@ -17,6 +17,8 @@ In particular, this release provides: | ||
| 17 | Bug fixes | 17 | Bug fixes |
| 18 | --------- | 18 | --------- |
| 19 | 19 | ||
| 20 | +* [`3156 <https://cta-redmine.irap.omp.eu/issues/3156>`_] - | ||
| 21 | + Adapt show_pull_histogram.py to matplotlib > 3.1.0 | ||
| 20 | * Avoid negative squared standard deviations in :ref:`cssrcdetect` | 22 | * Avoid negative squared standard deviations in :ref:`cssrcdetect` |
| 21 | * [`3066 <https://cta-redmine.irap.omp.eu/issues/3066>`_] - | 23 | * [`3066 <https://cta-redmine.irap.omp.eu/issues/3066>`_] - |
| 22 | Fix log file header repetition in some cscripts | 24 | Fix log file header repetition in some cscripts |
| @@ -28,7 +30,9 @@ Improvements | @@ -28,7 +30,9 @@ Improvements | ||
| 28 | * [`3065 <https://cta-redmine.irap.omp.eu/issues/3065>`_] - | 30 | * [`3065 <https://cta-redmine.irap.omp.eu/issues/3065>`_] - |
| 29 | Add Moon constraints to :ref:`csviscube` | 31 | Add Moon constraints to :ref:`csviscube` |
| 30 | * [`2973 <https://cta-redmine.irap.omp.eu/issues/2973>`_] - | 32 | * [`2973 <https://cta-redmine.irap.omp.eu/issues/2973>`_] - |
| 31 | - Remove response cache before source testing in cttsmap | 33 | + Remove response cache before source testing in :ref:`cttsmap` |
| 34 | +* [`2938 <https://cta-redmine.irap.omp.eu/issues/2938>`_] - | ||
| 35 | + Add support for Castro plots to :ref:`csspec` | ||
| 32 | * [`2925 <https://cta-redmine.irap.omp.eu/issues/2925>`_] - | 36 | * [`2925 <https://cta-redmine.irap.omp.eu/issues/2925>`_] - |
| 33 | Enabling running of example scripts from objects in memory | 37 | Enabling running of example scripts from objects in memory |
| 34 | * [`1889 <https://cta-redmine.irap.omp.eu/issues/1889>`_] - | 38 | * [`1889 <https://cta-redmine.irap.omp.eu/issues/1889>`_] - |
examples/show_pull_histogram.py
| @@ -22,7 +22,6 @@ import sys | @@ -22,7 +22,6 @@ import sys | ||
| 22 | import cscripts | 22 | import cscripts |
| 23 | try: | 23 | try: |
| 24 | import matplotlib.pyplot as plt | 24 | import matplotlib.pyplot as plt |
| 25 | - import matplotlib.mlab as mlab | ||
| 26 | plt.figure() | 25 | plt.figure() |
| 27 | plt.close() | 26 | plt.close() |
| 28 | except (ImportError, RuntimeError): | 27 | except (ImportError, RuntimeError): |
| @@ -61,7 +60,7 @@ def plot_pull_histogram(filename, parname, nbins, plotfile): | @@ -61,7 +60,7 @@ def plot_pull_histogram(filename, parname, nbins, plotfile): | ||
| 61 | normed=True, facecolor='green') | 60 | normed=True, facecolor='green') |
| 62 | 61 | ||
| 63 | # Create expected distribution | 62 | # Create expected distribution |
| 64 | - y = mlab.normpdf(bins, 0.0, 1.0) | 63 | + y = np.exp(-0.5*bins*bins) / np.sqrt(2.0*np.pi) |
| 65 | plt.plot(bins, y, 'r-', linewidth=2) | 64 | plt.plot(bins, y, 'r-', linewidth=2) |
| 66 | 65 | ||
| 67 | # Set plot | 66 | # Set plot |