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