Conditions | 1 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import os as _os |
||
10 | def set_coeff_path(): |
||
11 | '''Sets the environment variables ``AACGM_v2_DAT_PREFIX`` and |
||
12 | ``IGRF_12_COEFFS`` (for the current process). These are required for the |
||
13 | C library to function correctly. This function is automatically called |
||
14 | when importing aacgm2. You may need to call this manually if you use |
||
15 | multithreading or spawn child processes (untested). |
||
16 | ''' |
||
17 | _os.environ['AACGM_v2_DAT_PREFIX'] = AACGM_v2_DAT_PREFIX |
||
18 | _os.environ['IGRF_12_COEFFS'] = IGRF_12_COEFFS |
||
19 | _os.environ['IGRF_COEFFS'] = IGRF_12_COEFFS |
||
20 | |||
32 |