Logo white

Iftach Sadeh / ctools

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Snippets
  • Commits 3,615
  • Compare
  • Branches 30
  • Tags 37
  • ctools
  • cscripts
  • obsutils.py
14 Mar, 2017
1 commit
  • Set default deadc value to 0.98
    66518ce6
    Jürgen Knödlseder authored
    2017-03-14 17:12:07 +0100  
    Browse File »

11 Aug, 2016
2 commits
  • Response cubes computed by get_stacked_response() have at least 30 energy bins per decade
    581a934b
    Jürgen Knödlseder authored
    2016-08-11 02:49:29 +0200  
    Browse File »
  • Use pointing in get_stacked_response() if xref and yref arguments are None
    23bd532e
    Jürgen Knödlseder authored
    2016-08-11 01:59:27 +0200  
    Browse File »

03 Aug, 2016
1 commit
  • ctbin::cube() now returns a reference to a member ...
    96842f77
    The building of a cuve on the fly raised issue with memory going out of scope. This is fixed by making the CTA event cube a member of ctbin, and having the cube() method returning a reference to that member
    Jürgen Knödlseder authored
    2016-08-03 00:43:17 +0200  
    Browse File »

01 Aug, 2016
1 commit
  • Improve code quality of example scripts (#1828)
    a3e660e3
    Jürgen Knödlseder authored
    2016-08-01 14:10:48 +0200  
    Browse File »

31 Jul, 2016
3 commits
  • Use setdefault() to set dictionary default values in obsutils
    3cc46b26
    Jürgen Knödlseder authored
    2016-07-31 22:11:06 +0200  
    Browse File »
  • Remove also fit() and cterror() function from "obsutils" (#1830) ...
    479bb6d0
    These functions are not really observation utilities, and they are not really needed either since they encapsulate only a few lines of code.
    Jürgen Knödlseder authored
    2016-07-31 21:53:20 +0200  
    Browse File »
  • Add support modules to cscripts (#1830) ...
    0a5b1abe
    To avoid code duplication in cscripts the support modules "modutils' and "ioutils" have been added. The obsolete functions cntmap() and modmap() have been removed from the "obsutils" module.
    Jürgen Knödlseder authored
    2016-07-31 21:34:21 +0200  
    Browse File »

30 Jul, 2016
2 commits
  • Correct bad indentation in obsutils
    63fe865c
    Jürgen Knödlseder authored
    2016-07-30 02:55:33 +0200  
    Browse File »
  • Refactor cscripts and add some functions to obsutils (#1828) ...
    80854348
    The obsutils.sim() function does not correctly handle stacked observations. It appends stacked response cubes to a counts cube in case that multiple observations have been simulated and stacked analysis was requested.
    
    The stacked response cube computation is done using the obsutils.get_stacked_response() function.
    
    The function obsutils.set_ts_model() has been added to setup a model for TS determination. This is used by some of the cscripts, and avoids code duplication.
    
    Finally, the cstsdist and cspull scripts have been refactored.
    Jürgen Knödlseder authored
    2016-07-30 02:26:23 +0200  
    Browse File »

21 Jul, 2016
1 commit
  • Tune cspull scripts and associated scripts ...
    74bcfe43
    (still need to remove some debug statements later)
    Jürgen Knödlseder authored
    2016-07-21 10:34:09 +0200  
    Browse File »

30 Jun, 2016
1 commit
  • Import Python native modules first
    105497eb
    Jürgen Knödlseder authored
    2016-06-30 12:08:13 +0200  
    Browse File »

21 Mar, 2016
1 commit
  • Do not import math module.
    5cd517cf
    Jürgen Knödlseder authored
    2016-03-21 14:47:21 +0100  
    Browse File »

15 Mar, 2016
2 commits
  • Correct documentation.
    a03d24de
    Jürgen Knödlseder authored
    2016-03-15 01:32:25 +0100  
    Browse File »
  • Enhance ctbin Python module test.
    0847394c
    Jürgen Knödlseder authored
    2016-03-15 00:15:01 +0100  
    Browse File »

03 Jul, 2015
3 commits
  • Rename GSkymap to GSkyMap.
    88c2e557
    Jürgen Knödlseder authored
    2015-07-03 22:59:15 +0200  
    Browse File »
  • Fix Python source code formatting (PEP8) ...
    5c53c14a
    This command was run:
      autopep8 --select E101,W191 --in-place --recursive .
    
    It fixes only these two issues:
      - W191 indentation contains tabs
      - E101 indentation contains mixed spaces and tabs
    Christoph Deil authored
    2015-07-03 17:19:41 +0200  
    Browse File »
  • Rename scripts folder into cscripts.
    92c56c25
    Jürgen Knödlseder authored
    2015-07-03 13:09:25 +0200  
    Browse File »