Commit 49530689980ab6e75dd6b82f73f3f56d5c8c0c36
1 parent
90573cc9
Enhance code commenting
Showing
1 changed file
with
9 additions
and
1 deletions
test/science_verification.py
| ... | ... | @@ -326,6 +326,10 @@ class sciver(gammalib.GPythonTestSuite): |
| 326 | 326 | ---------- |
| 327 | 327 | name : str |
| 328 | 328 | Parameter name |
| 329 | + lim_mean : float, optional | |
| 330 | + Limit for mean value | |
| 331 | + lim_std : float, optional | |
| 332 | + Limit for standard deviation | |
| 329 | 333 | """ |
| 330 | 334 | # Set minima and maximum |
| 331 | 335 | mean_min = -lim_mean |
| ... | ... | @@ -670,12 +674,16 @@ if __name__ == '__main__': |
| 670 | 674 | # Append test suite to container |
| 671 | 675 | suites.append(suite_sciver) |
| 672 | 676 | |
| 673 | - # Set PFILES environment variable | |
| 677 | + # Create pfiles directory | |
| 674 | 678 | try: |
| 675 | 679 | os.mkdir('pfiles') |
| 676 | 680 | except: |
| 677 | 681 | pass |
| 682 | + | |
| 683 | + # Copy ctools parameter files into pfiles directory | |
| 678 | 684 | os.system('cp -r ../src/*/*.par pfiles/') |
| 685 | + | |
| 686 | + # Set PFILES environment variable | |
| 679 | 687 | os.environ['PFILES'] = 'pfiles' |
| 680 | 688 | |
| 681 | 689 | # Run test suite | ... | ... |