Commit 9fd8ce1a161a7f1eb72f232e9f76b9cc61485a68
1 parent
a32545cc
Code integration (some minor tweeking of code formatting and code documentation)
Showing
1 changed file
with
3 additions
and
8 deletions
scripts/csresmap.py
| 1 | #! /usr/bin/env python | 1 | #! /usr/bin/env python |
| 2 | # ========================================================================== | 2 | # ========================================================================== |
| 3 | -# This script generates the TS distribution for a particular model based | ||
| 4 | -# on Monte-Carlo simulations. | 3 | +# Residual map generation script. |
| 5 | # | 4 | # |
| 6 | -# Copyright (C) 2011-2014 Juergen Knoedlseder | 5 | +# Copyright (C) 2014 Michael Mayer |
| 7 | # | 6 | # |
| 8 | # This program is free software: you can redistribute it and/or modify | 7 | # This program is free software: you can redistribute it and/or modify |
| 9 | # it under the terms of the GNU General Public License as published by | 8 | # it under the terms of the GNU General Public License as published by |
| @@ -56,6 +55,7 @@ class csresmap(gammalib.GApplication): | @@ -56,6 +55,7 @@ class csresmap(gammalib.GApplication): | ||
| 56 | self.obs = gammalib.GObservations() | 55 | self.obs = gammalib.GObservations() |
| 57 | self.obs.clear() | 56 | self.obs.clear() |
| 58 | self.outfile = "" | 57 | self.outfile = "" |
| 58 | + | ||
| 59 | # Make sure that parfile exists | 59 | # Make sure that parfile exists |
| 60 | file = self.parfile() | 60 | file = self.parfile() |
| 61 | 61 | ||
| @@ -281,9 +281,6 @@ class csresmap(gammalib.GApplication): | @@ -281,9 +281,6 @@ class csresmap(gammalib.GApplication): | ||
| 281 | residualmap = gammalib.GSkymap(bin["outfile"].filename()) | 281 | residualmap = gammalib.GSkymap(bin["outfile"].filename()) |
| 282 | residualmap.stack_maps() | 282 | residualmap.stack_maps() |
| 283 | 283 | ||
| 284 | - | ||
| 285 | - | ||
| 286 | - | ||
| 287 | # continue calculations depending on given algorithm | 284 | # continue calculations depending on given algorithm |
| 288 | if self.m_algorithm == "SUB": | 285 | if self.m_algorithm == "SUB": |
| 289 | 286 | ||
| @@ -318,8 +315,6 @@ class csresmap(gammalib.GApplication): | @@ -318,8 +315,6 @@ class csresmap(gammalib.GApplication): | ||
| 318 | 315 | ||
| 319 | # Return | 316 | # Return |
| 320 | return | 317 | return |
| 321 | - | ||
| 322 | - | ||
| 323 | 318 | ||
| 324 | 319 | ||
| 325 | # ======================== # | 320 | # ======================== # |