Commit 58732e19f9ad473e6070bee8890a001489ac301c
1 parent
99ab76de
Do no longer automatically import csroot2caldb (#2652)
Showing
6 changed files
with
12 additions
and
7 deletions
ChangeLog
| 1 | -2018-07-25 | 1 | +2018-07-27 |
| 2 | 2 | ||
| 3 | * Version 1.6.0 released | 3 | * Version 1.6.0 released |
| 4 | ======================== | 4 | ======================== |
| 5 | 5 | ||
| 6 | + Do no longer automatically import csroot2caldb (#2652) | ||
| 6 | Transparently update parameter files (#2513) | 7 | Transparently update parameter files (#2513) |
| 7 | Change formula for number of true energy bins in csphagen (#2490) | 8 | Change formula for number of true energy bins in csphagen (#2490) |
| 8 | Remove ctools::is_valid_filename() method | 9 | Remove ctools::is_valid_filename() method |
NEWS
| 1 | New Features and Important Changes in ctools 1.6.0 | 1 | New Features and Important Changes in ctools 1.6.0 |
| 2 | 2 | ||
| 3 | -25 July 2018 | 3 | +27 July 2018 |
| 4 | 4 | ||
| 5 | 5 | ||
| 6 | Introduction | 6 | Introduction |
| @@ -288,7 +288,10 @@ parameter due to a bug in the code. This bug was fixed (#2448). | @@ -288,7 +288,10 @@ parameter due to a bug in the code. This bug was fixed (#2448). | ||
| 288 | 288 | ||
| 289 | csroot2caldb - Generates calibration database from ROOT file | 289 | csroot2caldb - Generates calibration database from ROOT file |
| 290 | ------------------------------------------------------------ | 290 | ------------------------------------------------------------ |
| 291 | -None | 291 | +The script is no longer automatically imported by a "import cscript" statement |
| 292 | +since this led to some conflicts with the "--help" option due to the automatic | ||
| 293 | +opening of a X windows link. To use the tool in Python, use | ||
| 294 | +"from cscripts.csroot2caldb import csroot2caldb" (#2652). | ||
| 292 | 295 | ||
| 293 | 296 | ||
| 294 | cssens - Computes sensitivity curve | 297 | cssens - Computes sensitivity curve |
cscripts/__init__.py.in
| @@ -80,7 +80,6 @@ from cscripts.csphasecrv import csphasecrv | @@ -80,7 +80,6 @@ from cscripts.csphasecrv import csphasecrv | ||
| 80 | from cscripts.cspull import cspull | 80 | from cscripts.cspull import cspull |
| 81 | from cscripts.csresmap import csresmap | 81 | from cscripts.csresmap import csresmap |
| 82 | from cscripts.csresspec import csresspec | 82 | from cscripts.csresspec import csresspec |
| 83 | -from cscripts.csroot2caldb import csroot2caldb | ||
| 84 | from cscripts.cssens import cssens | 83 | from cscripts.cssens import cssens |
| 85 | from cscripts.csspec import csspec | 84 | from cscripts.csspec import csspec |
| 86 | from cscripts.cssrcdetect import cssrcdetect | 85 | from cscripts.cssrcdetect import cssrcdetect |
cscripts/ioutils.py
doc/source/admin/release_history/1.6.rst
| @@ -19,6 +19,8 @@ In particular, this release provides: | @@ -19,6 +19,8 @@ In particular, this release provides: | ||
| 19 | Bug fixes | 19 | Bug fixes |
| 20 | --------- | 20 | --------- |
| 21 | 21 | ||
| 22 | +* [`2652 <https://cta-redmine.irap.omp.eu/issues/2652>`_] - | ||
| 23 | + Do no longer automatically import :ref:`csroot2caldb` | ||
| 22 | * [`2456 <https://cta-redmine.irap.omp.eu/issues/2456>`_] - | 24 | * [`2456 <https://cta-redmine.irap.omp.eu/issues/2456>`_] - |
| 23 | Handle zero model for ``SUBDIV method`` in ``show_response.py`` | 25 | Handle zero model for ``SUBDIV method`` in ``show_response.py`` |
| 24 | * [`2448 <https://cta-redmine.irap.omp.eu/issues/2448>`_] - | 26 | * [`2448 <https://cta-redmine.irap.omp.eu/issues/2448>`_] - |
test/test_csroot2caldb.py
| @@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
| 19 | # | 19 | # |
| 20 | # ========================================================================== | 20 | # ========================================================================== |
| 21 | import os | 21 | import os |
| 22 | -import cscripts | 22 | +from cscripts.csroot2caldb import csroot2caldb |
| 23 | from testing import test | 23 | from testing import test |
| 24 | 24 | ||
| 25 | 25 | ||
| @@ -98,7 +98,8 @@ class Test(test): | @@ -98,7 +98,8 @@ class Test(test): | ||
| 98 | """ | 98 | """ |
| 99 | # Set-up csroot2caldb with a maximum of parameters so that the | 99 | # Set-up csroot2caldb with a maximum of parameters so that the |
| 100 | # corresponding code gets tests | 100 | # corresponding code gets tests |
| 101 | - caldb = cscripts.csroot2caldb() | 101 | + #caldb = cscripts.csroot2caldb() |
| 102 | + caldb = csroot2caldb() | ||
| 102 | caldb['infile'] = self._infile | 103 | caldb['infile'] = self._infile |
| 103 | caldb['outdir'] = 'csroot2caldb_py1' | 104 | caldb['outdir'] = 'csroot2caldb_py1' |
| 104 | caldb['inst'] = 'prod3' | 105 | caldb['inst'] = 'prod3' |