Commit 441490c6ed532e2cb57bd43ac7bf325cd5d8f7de
1 parent
40eb5ca0
removed empty lines
Showing
1 changed file
with
2 additions
and
104 deletions
cscripts/__init__.py.in
| 1 | # ========================================================================== | 1 | # ========================================================================== |
| 2 | - | ||
| 3 | # cscripts Python module | 2 | # cscripts Python module |
| 4 | - | ||
| 5 | # | 3 | # |
| 6 | - | ||
| 7 | # Copyright (C) 2015-2018 Juergen Knoedlseder | 4 | # Copyright (C) 2015-2018 Juergen Knoedlseder |
| 8 | - | ||
| 9 | # | 5 | # |
| 10 | - | ||
| 11 | # This program is free software: you can redistribute it and/or modify | 6 | # This program is free software: you can redistribute it and/or modify |
| 12 | - | ||
| 13 | # it under the terms of the GNU General Public License as published by | 7 | # it under the terms of the GNU General Public License as published by |
| 14 | - | ||
| 15 | # the Free Software Foundation, either version 3 of the License, or | 8 | # the Free Software Foundation, either version 3 of the License, or |
| 16 | - | ||
| 17 | # (at your option) any later version. | 9 | # (at your option) any later version. |
| 18 | - | ||
| 19 | # | 10 | # |
| 20 | - | ||
| 21 | # This program is distributed in the hope that it will be useful, | 11 | # This program is distributed in the hope that it will be useful, |
| 22 | - | ||
| 23 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 24 | - | ||
| 25 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 26 | - | ||
| 27 | # GNU General Public License for more details. | 14 | # GNU General Public License for more details. |
| 28 | - | ||
| 29 | # | 15 | # |
| 30 | - | ||
| 31 | # You should have received a copy of the GNU General Public License | 16 | # You should have received a copy of the GNU General Public License |
| 32 | - | ||
| 33 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | 17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 34 | - | ||
| 35 | # | 18 | # |
| 36 | - | ||
| 37 | # ========================================================================== | 19 | # ========================================================================== |
| 38 | 20 | ||
| 39 | # Python version check | 21 | # Python version check |
| 40 | - | ||
| 41 | import sys | 22 | import sys |
| 42 | - | ||
| 43 | req_version = (2,6) | 23 | req_version = (2,6) |
| 44 | - | ||
| 45 | cur_version = sys.version_info | 24 | cur_version = sys.version_info |
| 46 | 25 | ||
| 47 | 26 | ||
| 48 | - | ||
| 49 | # List all scripts in this module | 27 | # List all scripts in this module |
| 50 | - | ||
| 51 | __all__ = [ | 28 | __all__ = [ |
| 52 | - | ||
| 53 | "csbkgmodel", | 29 | "csbkgmodel", |
| 54 | - | ||
| 55 | "cscaldb", | 30 | "cscaldb", |
| 56 | - | ||
| 57 | "csebins", | 31 | "csebins", |
| 58 | - | ||
| 59 | "csinfo", | 32 | "csinfo", |
| 60 | - | ||
| 61 | "cslightcrv", | 33 | "cslightcrv", |
| 62 | - | ||
| 63 | "csmodelinfo", | 34 | "csmodelinfo", |
| 64 | - | ||
| 65 | "csmodelmerge", | 35 | "csmodelmerge", |
| 66 | - | ||
| 67 | "csmodelselect", | 36 | "csmodelselect", |
| 68 | - | ||
| 69 | "csmodelsois", | 37 | "csmodelsois", |
| 70 | - | ||
| 71 | "csobs2caldb", | 38 | "csobs2caldb", |
| 72 | - | ||
| 73 | "csobsdef", | 39 | "csobsdef", |
| 74 | - | ||
| 75 | "csobsinfo", | 40 | "csobsinfo", |
| 76 | - | ||
| 77 | "csobsselect", | 41 | "csobsselect", |
| 78 | - | ||
| 79 | "csphagen", | 42 | "csphagen", |
| 80 | - | ||
| 81 | "csphasecrv", | 43 | "csphasecrv", |
| 82 | - | ||
| 83 | "cspull", | 44 | "cspull", |
| 84 | - | ||
| 85 | "csresmap", | 45 | "csresmap", |
| 86 | - | ||
| 87 | "csresspec", | 46 | "csresspec", |
| 88 | - | ||
| 89 | "csroot2caldb", | 47 | "csroot2caldb", |
| 90 | - | ||
| 91 | "cssens", | 48 | "cssens", |
| 92 | - | ||
| 93 | "csspec", | 49 | "csspec", |
| 94 | - | ||
| 95 | - "cssrcdetect", | ||
| 96 | - | 50 | + "cssrcdetect" |
| 97 | "cstsdist", | 51 | "cstsdist", |
| 98 | - | ||
| 99 | "cstsmapmerge", | 52 | "cstsmapmerge", |
| 100 | - | ||
| 101 | "cstsmapsplit", | 53 | "cstsmapsplit", |
| 102 | - | ||
| 103 | "csviscube", | 54 | "csviscube", |
| 104 | - | ||
| 105 | "csscs", | 55 | "csscs", |
| 106 | "csworkflow", | 56 | "csworkflow", |
| 107 | - | ||
| 108 | "obsutils", | 57 | "obsutils", |
| 109 | - | ||
| 110 | "modutils", | 58 | "modutils", |
| 111 | - | ||
| 112 | "calutils", | 59 | "calutils", |
| 113 | - | ||
| 114 | "ioutils", | 60 | "ioutils", |
| 115 | - | ||
| 116 | "mputils" | 61 | "mputils" |
| 117 | 62 | ||
| 118 | ] | 63 | ] |
| 119 | 64 | ||
| 120 | if cur_version > req_version: | 65 | if cur_version > req_version: |
| 121 | - | ||
| 122 | __all__.extend(["csfindobs", | 66 | __all__.extend(["csfindobs", |
| 123 | - | ||
| 124 | "csiactcopy", | 67 | "csiactcopy", |
| 125 | - | ||
| 126 | "csiactdata", | 68 | "csiactdata", |
| 127 | - | ||
| 128 | "csiactobs"]) | 69 | "csiactobs"]) |
| 129 | 70 | ||
| 130 | 71 | ||
| 131 | 72 | ||
| 132 | # Import | 73 | # Import |
| 133 | - | ||
| 134 | from cscripts.csbkgmodel import csbkgmodel | 74 | from cscripts.csbkgmodel import csbkgmodel |
| 135 | - | ||
| 136 | from cscripts.cscaldb import cscaldb | 75 | from cscripts.cscaldb import cscaldb |
| 137 | - | ||
| 138 | from cscripts.csebins import csebins | 76 | from cscripts.csebins import csebins |
| 139 | - | ||
| 140 | from cscripts.csinfo import csinfo | 77 | from cscripts.csinfo import csinfo |
| 141 | - | ||
| 142 | from cscripts.cslightcrv import cslightcrv | 78 | from cscripts.cslightcrv import cslightcrv |
| 143 | - | ||
| 144 | from cscripts.csmodelinfo import csmodelinfo | 79 | from cscripts.csmodelinfo import csmodelinfo |
| 145 | - | ||
| 146 | from cscripts.csmodelmerge import csmodelmerge | 80 | from cscripts.csmodelmerge import csmodelmerge |
| 147 | - | ||
| 148 | from cscripts.csmodelselect import csmodelselect | 81 | from cscripts.csmodelselect import csmodelselect |
| 149 | - | ||
| 150 | from cscripts.csmodelsois import csmodelsois | 82 | from cscripts.csmodelsois import csmodelsois |
| 151 | - | ||
| 152 | from cscripts.csobs2caldb import csobs2caldb | 83 | from cscripts.csobs2caldb import csobs2caldb |
| 153 | - | ||
| 154 | from cscripts.csobsdef import csobsdef | 84 | from cscripts.csobsdef import csobsdef |
| 155 | - | ||
| 156 | from cscripts.csobsinfo import csobsinfo | 85 | from cscripts.csobsinfo import csobsinfo |
| 157 | - | ||
| 158 | from cscripts.csobsselect import csobsselect | 86 | from cscripts.csobsselect import csobsselect |
| 159 | - | ||
| 160 | from cscripts.csphagen import csphagen | 87 | from cscripts.csphagen import csphagen |
| 161 | - | ||
| 162 | from cscripts.csphasecrv import csphasecrv | 88 | from cscripts.csphasecrv import csphasecrv |
| 163 | - | ||
| 164 | from cscripts.cspull import cspull | 89 | from cscripts.cspull import cspull |
| 165 | - | ||
| 166 | from cscripts.csresmap import csresmap | 90 | from cscripts.csresmap import csresmap |
| 167 | - | ||
| 168 | from cscripts.csresspec import csresspec | 91 | from cscripts.csresspec import csresspec |
| 169 | - | ||
| 170 | from cscripts.csroot2caldb import csroot2caldb | 92 | from cscripts.csroot2caldb import csroot2caldb |
| 171 | - | ||
| 172 | from cscripts.cssens import cssens | 93 | from cscripts.cssens import cssens |
| 173 | - | ||
| 174 | from cscripts.csspec import csspec | 94 | from cscripts.csspec import csspec |
| 175 | - | ||
| 176 | from cscripts.cssrcdetect import cssrcdetect | 95 | from cscripts.cssrcdetect import cssrcdetect |
| 177 | - | ||
| 178 | from cscripts.cstsdist import cstsdist | 96 | from cscripts.cstsdist import cstsdist |
| 179 | - | ||
| 180 | from cscripts.cstsmapmerge import cstsmapmerge | 97 | from cscripts.cstsmapmerge import cstsmapmerge |
| 181 | - | ||
| 182 | from cscripts.cstsmapsplit import cstsmapsplit | 98 | from cscripts.cstsmapsplit import cstsmapsplit |
| 183 | - | ||
| 184 | from cscripts.csviscube import csviscube | 99 | from cscripts.csviscube import csviscube |
| 185 | - | ||
| 186 | -from cscripts.csscs import csscs | 100 | +from cscripts.csscs import csscs |
| 187 | from cscripts.csworkflow import csworkflow | 101 | from cscripts.csworkflow import csworkflow |
| 188 | - | ||
| 189 | from cscripts import obsutils | 102 | from cscripts import obsutils |
| 190 | - | ||
| 191 | from cscripts import modutils | 103 | from cscripts import modutils |
| 192 | - | ||
| 193 | from cscripts import calutils | 104 | from cscripts import calutils |
| 194 | - | ||
| 195 | from cscripts import ioutils | 105 | from cscripts import ioutils |
| 196 | 106 | ||
| 197 | if cur_version > req_version: | 107 | if cur_version > req_version: |
| 198 | - | ||
| 199 | from cscripts.csfindobs import csfindobs | 108 | from cscripts.csfindobs import csfindobs |
| 200 | - | ||
| 201 | from cscripts.csiactcopy import csiactcopy | 109 | from cscripts.csiactcopy import csiactcopy |
| 202 | - | ||
| 203 | from cscripts.csiactdata import csiactdata | 110 | from cscripts.csiactdata import csiactdata |
| 204 | - | ||
| 205 | from cscripts.csiactobs import csiactobs | 111 | from cscripts.csiactobs import csiactobs |
| 206 | 112 | ||
| 207 | 113 | ||
| 208 | 114 | ||
| 209 | # Delete version check variables | 115 | # Delete version check variables |
| 210 | - | ||
| 211 | del sys | 116 | del sys |
| 212 | - | ||
| 213 | del req_version | 117 | del req_version |
| 214 | - | ||
| 215 | del cur_version | 118 | del cur_version |
| 216 | 119 | ||
| 217 | 120 | ||
| @@ -219,19 +122,14 @@ del cur_version | @@ -219,19 +122,14 @@ del cur_version | ||
| 219 | # Add test function | 122 | # Add test function |
| 220 | 123 | ||
| 221 | def test(): | 124 | def test(): |
| 222 | - | ||
| 223 | """ | 125 | """ |
| 224 | - | ||
| 225 | Run cscripts tests. | 126 | Run cscripts tests. |
| 226 | - | ||
| 227 | """ | 127 | """ |
| 228 | 128 | ||
| 229 | from cscripts.tests import test_python_cscripts | 129 | from cscripts.tests import test_python_cscripts |
| 230 | - | ||
| 231 | test_python_cscripts.test(installed=True) | 130 | test_python_cscripts.test(installed=True) |
| 232 | 131 | ||
| 233 | 132 | ||
| 234 | - | ||
| 235 | # Add version | 133 | # Add version |
| 236 | 134 | ||
| 237 | __version__ = '@PACKAGE_VERSION@' | 135 | __version__ = '@PACKAGE_VERSION@' |