Logo white

Karim Sabri / ctools

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Snippets
  • Commits 3,716
  • Compare
  • Branches 30
  • Tags 38
  • ctools
  • cscripts
  • cssens.py
22 Feb, 2022
1 commit
  • Rename virtual abstract ctool::run() method to ctool::process() and add non-abst… ...
    d72c13e6
    …ract ctool::run() method (#3592)
    Jürgen Knödlseder authored
    2022-02-22 15:45:59 +0100  
    Browse File »

21 May, 2021
2 commits
  • Fix compatibility issue with Python 2.3
    30acb68c
    Jürgen Knödlseder authored
    2021-05-21 10:57:43 +0200  
    Browse File »
  • Fix compatibility issue with Python 2.3-2.5
    0d048c18
    Jürgen Knödlseder authored
    2021-05-21 08:25:40 +0200  
    Browse File »

20 May, 2021
7 commits
  • Rebase code and update documentation (#3668)
    6fc75aff
    Jürgen Knödlseder authored
    2021-05-20 13:05:06 +0200  
    Browse File »
  • Refactor code, change names of new parameters and adapt code to coding conventions (#3668)
    955940f1
    Jürgen Knödlseder authored
    2021-05-20 12:13:10 +0200  
    Browse File »
  • avoid math errors in exponent in _predict_flux
    e8f4b286
    Iftach Sadeh authored
    2021-05-20 12:13:10 +0200  
    Browse File »
  • add optional seed parameter for generating events
    632aa09f
    Iftach Sadeh authored
    2021-05-20 12:13:10 +0200  
    Browse File »
  • faster edisp ...
    a6aedae3
    in case `edisp=True`, only use it in practice once the flux calculation is near convergence
    Iftach Sadeh authored
    2021-05-20 12:13:10 +0200  
    Browse File »
  • add log msg to _set_src_prefactor in cssens
    11df2d07
    Iftach Sadeh authored
    2021-05-20 12:13:10 +0200  
    Browse File »
  • add _sim_evt_excess ...
    e18c2a06
    - add `_set_src_prefactor` function, which sets the test prefactor while checking that the limits are not violated
    - add safety check as part of `_predict_flux`, to avoid division by zero
    - add `_sim_evt_excess` function, which is used to increase the test source flux in case the optional conditions on the number of source counts are not met
    Iftach Sadeh authored
    2021-05-20 12:13:10 +0200  
    Browse File »

11 May, 2021
1 commit
  • Replace ASCII output files by FITS files in cssens (#1707)
    2de0afea
    Jürgen Knödlseder authored
    2021-05-11 22:45:07 +0200  
    Browse File »

07 May, 2021
2 commits
  • Refactor test source position and pointing direction setting in cssens (#3555). ...
    834a7cec
    A _set_source() method was introduced in cssens that deals with the setting of the test source direction independent of the code in the _set_obs() method, since that latter method is not necessarily called. The _set_obs() method now only deals with setting of the pointing direction of a single observation, in case that no observation definition XML file was specified on input.
    Jürgen Knödlseder authored
    2021-05-07 22:38:17 +0200  
    Browse File »
  • Integrate code
    ba197c90
    Jürgen Knödlseder authored
    2021-05-07 22:07:43 +0200  
    Browse File »

08 Mar, 2021
1 commit
  • update _set_obs
    f16e6233
    IftachSadeh authored
    2021-03-08 19:00:02 +0100  
    Browse File »

31 Oct, 2019
1 commit
  • Allow using spectral models without a 'Prefactor' parameter in cssens and cstsdist (#1889)
    c4bc62ff
    Jürgen Knödlseder authored
    2019-10-31 12:32:40 +0100  
    Browse File »

30 Jan, 2019
1 commit
  • Add nthreads parameter to obsutils.get_stacked_obs() and set parameter to 1 in cslightcrv
    29d88dfd
    Jürgen Knödlseder authored
    2019-01-30 12:04:55 +0100  
    Browse File »

31 Jul, 2018
1 commit
  • Revisit comments of cscripts
    0d08d71f
    Jürgen Knödlseder authored
    2018-07-31 12:43:47 +0200  
    Browse File »

30 Jul, 2018
1 commit
  • Reduce code duplication for multiprocessing in cscripts
    87ec65c8
    Jürgen Knödlseder authored
    2018-07-30 15:38:46 +0200  
    Browse File »

28 Jul, 2018
1 commit
  • Fix a couple of minor code quality issues
    5aeb1560
    Jürgen Knödlseder authored
    2018-07-28 00:04:38 +0200  
    Browse File »

27 Jul, 2018
1 commit
  • Add mputils.process() function and reduce code duplication
    9b24f41f
    Jürgen Knödlseder authored
    2018-07-27 10:37:15 +0200  
    Browse File »

20 Jul, 2018
1 commit
  • Add nthreads parameter to ctlike and cterror (#2421)
    b39b19cb
    Jürgen Knödlseder authored
    2018-07-20 08:51:50 +0200  
    Browse File »

06 Jul, 2018
1 commit
  • control of nthreads for use of csphagen within obsutils.sim
    1974e9c2
    Luigi Tibaldo authored
    2018-07-06 08:45:50 +0200  
    Browse File »

05 Jul, 2018
1 commit
  • parallelised cssens
    92a76a88
    Luigi Tibaldo authored
    2018-07-05 11:44:21 +0200  
    Browse File »

08 Jun, 2018
1 commit
  • Adapt to removal of ctools::is_valid_filename() method
    5d64b0db
    Jürgen Knödlseder authored
    2018-06-08 11:35:13 +0200  
    Browse File »

23 Oct, 2017
3 commits
  • Use self.__class__.__name__ instead of class name strings in cscripts
    07c8ec4a
    Jürgen Knödlseder authored
    2017-10-23 17:06:11 +0200  
    Browse File »
  • The following scripts now have csobservation as base class: csebins, csmodelsele… ...
    699cd5ee
    …ct, csobs2caldb, csobsinfo, csobsselect, and csphagen. The script cstsmapsplit has cslikelihood as base class.
    Jürgen Knödlseder authored
    2017-10-23 12:31:40 +0200  
    Browse File »
  • Move set_obs_statistic() method from ctlikelihood to ctobservation and derive cs… ...
    9dc564c7
    …cripts now from csobservation instead of cslikelihood since they do not use proper optimizers.
    Jürgen Knödlseder authored
    2017-10-23 08:30:43 +0200  
    Browse File »

22 Oct, 2017
1 commit
  • Add "statistic" parameter to all likelihood scripts (#2237) ...
    734b3482
    The scripts cslightcrv, csphasecrv, cspull, cssens, csspec, cstsdist, and cstsmapsplit now have a "statistics" parameter to allow setting of the optimizer statistic. Except of cstsmapsplit, all of the scripts now derive from the cslikelihood base class.
    Jürgen Knödlseder authored
    2017-10-22 21:44:40 +0200  
    Browse File »

21 Oct, 2017
1 commit
  • Solve some minor issues
    e0d30823
    Jürgen Knödlseder authored
    2017-10-21 01:30:02 +0200  
    Browse File »

20 Oct, 2017
1 commit
  • Put cscript.execute() method in the cscripts base class
    72aad6b0
    Jürgen Knödlseder authored
    2017-10-20 10:56:28 +0200  
    Browse File »

03 Jul, 2017
1 commit
  • Add self.logFileOpen() to cstsmapsplit.execute() method (#2127)
    f573d219
    Jürgen Knödlseder authored
    2017-07-03 14:56:52 +0200  
    Browse File »

13 Apr, 2017
1 commit
  • Add csphasecrv unit test, use global ctools version and update parameter files
    b1bd4caa
    Jürgen Knödlseder authored
    2017-04-13 11:22:27 +0200  
    Browse File »

07 Apr, 2017
1 commit
  • Update default cssens.py parameters.
    1d41698d
    Jürgen Knödlseder authored
    2017-04-07 00:20:32 +0200  
    Browse File »

06 Apr, 2017
1 commit
  • Replace averaging by regression method in cssens (#1989)
    b9778a81
    Jürgen Knödlseder authored
    2017-04-06 02:18:17 +0200  
    Browse File »

10 Nov, 2016
1 commit
  • Fix energy boundary handline in cssens (#1873)
    e7dee704
    Jürgen Knödlseder authored
    2016-11-10 21:18:16 +0100  
    Browse File »

14 Aug, 2016
1 commit
  • Enhance coverage and comment density (#1828)
    e8978f2a
    Jürgen Knödlseder authored
    2016-08-14 02:46:45 +0200  
    Browse File »

03 Aug, 2016
2 commits
  • Adapt to new GApplication logging interface (#1828) ...
    ff0d52ee
    The new GApplication logger support function take the chattiness level as the first argument.
    Jürgen Knödlseder authored
    2016-08-03 15:21:56 +0200  
    Browse File »
  • Use log_parameters() with GClobber argument (#1828)
    b3540bee
    Jürgen Knödlseder authored
    2016-08-03 13:57:15 +0200  
    Browse File »

02 Aug, 2016
1 commit
  • Improve commenting of cscripts (#1828)
    a446d51c
    Jürgen Knödlseder authored
    2016-08-02 16:54:26 +0200  
    Browse File »

01 Aug, 2016
1 commit
  • Fix regression bug introduces in cssens.py during refactoring
    1661676c
    Jürgen Knödlseder authored
    2016-08-01 22:56:31 +0200  
    Browse File »