Commit 71e98c403bf4373a808f752f76d43a0845257009
1 parent
5c53c14a
Fix docstring indentation in example script
Showing
2 changed files
with
5 additions
and
4 deletions
examples/make_pull_at_sensitivity_limit.py
| @@ -138,14 +138,14 @@ if __name__ == '__main__': | @@ -138,14 +138,14 @@ if __name__ == '__main__': | ||
| 138 | """ | 138 | """ |
| 139 | Create pull distributions for the energy bands and fluxes given in the | 139 | Create pull distributions for the energy bands and fluxes given in the |
| 140 | file specified in the argument. The file needs to be created using the | 140 | file specified in the argument. The file needs to be created using the |
| 141 | -cssens script. | 141 | + cssens script. |
| 142 | """ | 142 | """ |
| 143 | # Get input arguments | 143 | # Get input arguments |
| 144 | usage = """ | 144 | usage = """ |
| 145 | - make_pull_at_sensitivity_limit filename [max_threads] | 145 | + make_pull_at_sensitivity_limit filename [max_threads] |
| 146 | + Run cssens to create the input file. | ||
| 147 | + """ | ||
| 146 | 148 | ||
| 147 | - Run cssens to create the input file. | ||
| 148 | - """ | ||
| 149 | if len(sys.argv) < 2 or len(sys.argv) > 3: | 149 | if len(sys.argv) < 2 or len(sys.argv) > 3: |
| 150 | print(usage) | 150 | print(usage) |
| 151 | sys.exit() | 151 | sys.exit() |
examples/make_spectrum.py
| @@ -33,6 +33,7 @@ except: | @@ -33,6 +33,7 @@ except: | ||
| 33 | # =============== # | 33 | # =============== # |
| 34 | def make_spectrum(): | 34 | def make_spectrum(): |
| 35 | """ | 35 | """ |
| 36 | + Make a spectrum. | ||
| 36 | """ | 37 | """ |
| 37 | # Set script parameters | 38 | # Set script parameters |
| 38 | model_name = "${CTOOLS}/share/models/crab.xml" | 39 | model_name = "${CTOOLS}/share/models/crab.xml" |