Commit 5fdd2ef6cf2c74b494cec6da39f35c118aff7bdf

Authored by Jürgen Knödlseder
1 parent 755ed46b

Do no longer interpret a CTA calibration database as file path in GCTAResponseIrf::read (#1969)

.gitignore
... ... @@ -45,12 +45,14 @@ m4/lt~obsolete.m4
45 45 .libs
46 46 .deps
47 47 *.fits~
48   -*.cpp~
  48 +*.cpp~
49 49 *.hpp~
50 50 *.i~
51 51 *.xml~
52 52 *.ac~
53 53 *.am~
  54 +ChangeLog~
  55 +NEWS~
54 56 *.plist
55 57 clang_output_*
56 58 .gitignore~
... ...
ChangeLog
1   -2017-03-16
  1 +2017-03-17
2 2  
3 3 * Version 1.3.0 released
4 4 =========================
5 5  
  6 + Do no longer interpret a CTA calibration database as file path (#1969)
6 7 GWcs now supports CD keywords instead of CDELT (#1951)
7 8 Correct GCTAPsf2D containment radius computation (#1876)
8 9 Add GLS and SFL WCS projections (#1851)
... ...
1 1 New Features and Important Changes in GammaLib 1.3.0
2 2  
3   -16 March 2017
  3 +17 March 2017
4 4  
5 5  
6 6 1. Introduction
... ... @@ -131,6 +131,9 @@ None
131 131 -----------------
132 132 Correct the containment radius computation in GCTAPsf2D (#1876).
133 133  
  134 +Do no longer interpret a CTA calibration database as a file path in the
  135 +GCTAResponseIrf::read() method (#1969).
  136 +
134 137  
135 138 21. COMPTEL interface
136 139 ---------------------
... ...
inst/cta/src/GCTAResponseIrf.cpp
1 1 /***************************************************************************
2 2 * GCTAResponseIrf.cpp - CTA instrument response function class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2016 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2017 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -728,13 +728,7 @@ void GCTAResponseIrf::read(const GXmlElement& xml)
728 728 std::string xml_rspname = gammalib::strip_whitespace(par->attribute("response"));
729 729  
730 730 // Set calibration database
731   - GCaldb caldb;
732   - if (gammalib::dir_exists(xml_caldb)) {
733   - caldb.rootdir(xml_caldb);
734   - }
735   - else {
736   - caldb.open("cta", xml_caldb);
737   - }
  731 + GCaldb caldb("cta", xml_caldb);
738 732 this->caldb(caldb);
739 733  
740 734 // Load response
... ...