ACID-code-v2 0.2.2a5__tar.gz → 0.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/PKG-INFO +1 -1
  2. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/docs/installation.rst +6 -6
  3. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/example/tutorial_code.py +10 -8
  4. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/src/ACID_code_v2.egg-info/PKG-INFO +1 -1
  5. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/tests.py +11 -4
  6. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/tutorial_test.py +18 -8
  7. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/.gitattributes +0 -0
  8. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/.github/workflows/publish.yml +0 -0
  9. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/.gitignore +0 -0
  10. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/.other_scripts/5_residual_profiles.py +0 -0
  11. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/.other_scripts/8_master_out_profiles.py +0 -0
  12. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/.readthedocs.yaml +0 -0
  13. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/.vscode/launch.json +0 -0
  14. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/LICENSE +0 -0
  15. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/README.md +0 -0
  16. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/acid.yml +0 -0
  17. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/docs/ACID.rst +0 -0
  18. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/docs/conf.py +0 -0
  19. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/docs/index.rst +0 -0
  20. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/docs/make.bat +0 -0
  21. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/docs/requirements.txt +0 -0
  22. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/docs/using_ACID.rst +0 -0
  23. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/example/.make_syn_dat.py +0 -0
  24. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/example/example_linelist.txt +0 -0
  25. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/example/sample_spec_1.fits +0 -0
  26. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/example/sample_spec_2.fits +0 -0
  27. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/example/sample_spec_3.fits +0 -0
  28. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/pyproject.toml +0 -0
  29. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/setup.cfg +0 -0
  30. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/src/ACID_code_v2/ACID.py +0 -0
  31. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/src/ACID_code_v2/LSD.py +0 -0
  32. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/src/ACID_code_v2/__init__.py +0 -0
  33. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/src/ACID_code_v2/utils.py +0 -0
  34. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/src/ACID_code_v2.egg-info/SOURCES.txt +0 -0
  35. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/src/ACID_code_v2.egg-info/dependency_links.txt +0 -0
  36. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/src/ACID_code_v2.egg-info/requires.txt +0 -0
  37. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/src/ACID_code_v2.egg-info/top_level.txt +0 -0
  38. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/.DS_Store +0 -0
  39. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-28T21:11:56.678_blaze_B.fits +0 -0
  40. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-28T21:11:56.678_flat_A.fits +0 -0
  41. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-28T21:11:56.678_flat_B.fits +0 -0
  42. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-28T21:11:56.678_lamp_A.fits +0 -0
  43. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-28T21:11:56.678_lamp_B.fits +0 -0
  44. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-28T21:11:56.678_order_profile.fits +0 -0
  45. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_bis_G2_A.fits +0 -0
  46. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_bis_G2_B.fits +0 -0
  47. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_bis_K5_A.fits +0 -0
  48. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_ccf_G2_A.fits +0 -0
  49. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_ccf_G2_B.fits +0 -0
  50. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_ccf_K5_A.fits +0 -0
  51. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_e2ds_A.fits +0 -0
  52. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_e2ds_B.fits +0 -0
  53. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_s1d_A.fits +0 -0
  54. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:02:50.897_s1d_B.fits +0 -0
  55. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_bis_G2_A.fits +0 -0
  56. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_bis_G2_B.fits +0 -0
  57. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_bis_K5_A.fits +0 -0
  58. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_ccf_G2_A.fits +0 -0
  59. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_ccf_G2_B.fits +0 -0
  60. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_ccf_K5_A.fits +0 -0
  61. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_e2ds_A.fits +0 -0
  62. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_e2ds_B.fits +0 -0
  63. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_s1d_A.fits +0 -0
  64. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:08:22.216_s1d_B.fits +0 -0
  65. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_bis_G2_A.fits +0 -0
  66. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_bis_G2_B.fits +0 -0
  67. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_bis_K5_A.fits +0 -0
  68. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_ccf_G2_A.fits +0 -0
  69. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_ccf_G2_B.fits +0 -0
  70. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_ccf_K5_A.fits +0 -0
  71. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_e2ds_A.fits +0 -0
  72. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_e2ds_B.fits +0 -0
  73. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_s1d_A.fits +0 -0
  74. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:13:54.107_s1d_B.fits +0 -0
  75. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_bis_G2_A.fits +0 -0
  76. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_bis_G2_B.fits +0 -0
  77. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_bis_K5_A.fits +0 -0
  78. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_ccf_G2_A.fits +0 -0
  79. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_ccf_G2_B.fits +0 -0
  80. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_ccf_K5_A.fits +0 -0
  81. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_e2ds_A.fits +0 -0
  82. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_e2ds_B.fits +0 -0
  83. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_s1d_A.fits +0 -0
  84. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:19:25.377_s1d_B.fits +0 -0
  85. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_bis_G2_A.fits +0 -0
  86. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_bis_G2_B.fits +0 -0
  87. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_bis_K5_A.fits +0 -0
  88. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_ccf_G2_A.fits +0 -0
  89. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_ccf_G2_B.fits +0 -0
  90. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_ccf_K5_A.fits +0 -0
  91. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_e2ds_A.fits +0 -0
  92. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_e2ds_B.fits +0 -0
  93. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_s1d_A.fits +0 -0
  94. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:24:57.238_s1d_B.fits +0 -0
  95. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_bis_G2_A.fits +0 -0
  96. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_bis_G2_B.fits +0 -0
  97. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_bis_K5_A.fits +0 -0
  98. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_ccf_G2_A.fits +0 -0
  99. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_ccf_G2_B.fits +0 -0
  100. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_ccf_K5_A.fits +0 -0
  101. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_e2ds_A.fits +0 -0
  102. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_e2ds_B.fits +0 -0
  103. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_s1d_A.fits +0 -0
  104. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3}/tests/data/HARPS.2007-08-29T00:30:28.617_s1d_B.fits +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ACID_code_v2
3
- Version: 0.2.2a5
3
+ Version: 0.2.3
4
4
  Summary: Returns line profiles from input spectra by fitting the stellar continuum and performing LSD
5
5
  Author: Lucy Dolan
6
6
  Author-email: Benjamin Cadell <bcadell01@qub.ac.uk>
@@ -25,16 +25,16 @@ Once the environment has been activated ACID can be installed using pip_:
25
25
 
26
26
  .. _source:
27
27
 
28
- Installing from the source
28
+ Cloning the repository
29
29
  ===========================
30
30
  In order to use the example data (for the tutorials) or the test suite ACID will need to be installed from the source (i.e. directly from the GitHub repository).
31
- This can be done by cloning the source repository and installing from there.
31
+ This can be done by cloning the source repository. All examples and tests attempt first to import from your pip installation.
32
+ If this fails they will attempt to import from the local source directory instead.
32
33
 
33
34
  .. code-block:: bash
34
35
 
35
- git clone https://github.com/ldolan05/ACID.git
36
- cd ACID
37
- python -m pip install -e .
36
+ git clone https://github.com/Benjamin-Cadell/ACID_v2.git
37
+ cd ACID_v2
38
38
 
39
39
  .. _test:
40
40
 
@@ -47,6 +47,6 @@ Test your installation by running our test file in the test directory using pyte
47
47
 
48
48
  .. code-block:: bash
49
49
 
50
- pytest tests.py
50
+ pytest tests/tests.py
51
51
 
52
52
 
@@ -1,27 +1,29 @@
1
1
  #%%
2
2
  from astropy.io import fits
3
- import importlib, os
3
+ import importlib, os, sys
4
4
  import multiprocessing as mp
5
5
  import numpy as np
6
6
  import matplotlib.pyplot as plt
7
+ os.chdir(os.path.dirname(__file__))
8
+ os.chdir("..") # ensures we are in the main directory
7
9
  try:
8
- raise Exception("Force except block")
9
10
  import ACID_code_v2 as acid
10
11
  except:
11
- os.chdir(os.path.dirname(__file__))
12
- os.chdir("../src") # ensures we are in the main directory
13
- import ACID_code_v2 as acid
14
- os.chdir("../example") # change back to example directory
12
+ SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
13
+ PROJECT_ROOT = os.path.dirname(SCRIPT_DIR)
14
+ sys.path.append(PROJECT_ROOT)
15
+ from src import ACID_code_v2 as acid
16
+ print("pip module failed to import, imported from local instead")
15
17
  importlib.reload(acid)
16
18
 
17
- spec_file = fits.open('sample_spec_1.fits')
19
+ spec_file = fits.open('example/sample_spec_1.fits')
18
20
 
19
21
  wavelength = spec_file[0].data # Wavelengths in Angstroms
20
22
  spectrum = spec_file[1].data # Spectral Flux
21
23
  error = spec_file[2].data # Spectral Flux Errors
22
24
  sn = spec_file[3].data # SN of Spectrum
23
25
 
24
- linelist = 'example_linelist.txt' # Insert path to line list
26
+ linelist = 'example/example_linelist.txt' # Insert path to line list
25
27
 
26
28
  # choose a velocity grid for the final profile(s)
27
29
  deltav = 0.82 # velocity pixel size must not be smaller than the spectral pixel size
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ACID_code_v2
3
- Version: 0.2.2a5
3
+ Version: 0.2.3
4
4
  Summary: Returns line profiles from input spectra by fitting the stellar continuum and performing LSD
5
5
  Author: Lucy Dolan
6
6
  Author-email: Benjamin Cadell <bcadell01@qub.ac.uk>
@@ -1,11 +1,18 @@
1
1
  #%%
2
2
  from astropy.io import fits
3
- import os, glob, importlib
4
- os.chdir(os.path.dirname(__file__))
5
- os.chdir("..") # ensures we are in the main directory
6
- import ACID_code_v2 as acid
3
+ import os, glob, importlib, sys
7
4
  import numpy as np
8
5
  import matplotlib.pyplot as plt
6
+ os.chdir(os.path.dirname(__file__))
7
+ os.chdir("..") # ensures we are in the main directory
8
+ try:
9
+ import ACID_code_v2 as acid
10
+ except:
11
+ SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
12
+ PROJECT_ROOT = os.path.dirname(SCRIPT_DIR)
13
+ sys.path.append(PROJECT_ROOT)
14
+ from src import ACID_code_v2 as acid
15
+ print("pip module failed to import, imported from local instead")
9
16
  importlib.reload(acid)
10
17
 
11
18
  def test_run_e2ds():
@@ -1,18 +1,28 @@
1
1
  from astropy.io import fits
2
- import ACID_code_v2.ACID as acid
3
2
  import numpy as np
4
3
  import matplotlib.pyplot as plt
5
- import glob
4
+ import glob, os, importlib, sys
5
+ os.chdir(os.path.dirname(__file__))
6
+ os.chdir("..") # ensures we are in the main directory
7
+ try:
8
+ import ACID_code_v2 as acid
9
+ except:
10
+ SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
11
+ PROJECT_ROOT = os.path.dirname(SCRIPT_DIR)
12
+ sys.path.append(PROJECT_ROOT)
13
+ from src import ACID_code_v2 as acid
14
+ print("pip module failed to import, imported from local instead")
15
+ importlib.reload(acid)
6
16
 
7
17
  def quickstart():
8
- spec_file = fits.open('../example/sample_spec_1.fits')
18
+ spec_file = fits.open('example/sample_spec_1.fits')
9
19
 
10
20
  wavelength = spec_file[0].data # Wavelengths in Angstroms
11
21
  spectrum = spec_file[1].data # Spectral Flux
12
22
  error = spec_file[2].data # Spectral Flux Errors
13
23
  sn = spec_file[3].data # SN of Spectrum
14
24
 
15
- linelist = '../example/example_linelist.txt' # Insert path to line list
25
+ linelist = 'example/example_linelist.txt' # Insert path to line list
16
26
 
17
27
  # choose a velocity grid for the final profile(s)
18
28
  deltav = acid.calc_deltav(wavelength) # velocity pixel size must not be smaller than the spectral pixel size
@@ -35,7 +45,7 @@ def quickstart():
35
45
  def multiple_frames():
36
46
 
37
47
  # finds sample files in 'example directory'. Each file is a different frame.
38
- files = glob.glob('../example/sample_spec_*.fits')
48
+ files = glob.glob('example/sample_spec_*.fits')
39
49
 
40
50
  # create lists for wavelengths, spectra, errors and sn for all frames
41
51
  wavelengths = []
@@ -51,7 +61,7 @@ def multiple_frames():
51
61
  errors.append(spec_file[2].data) # Spectral Flux Errors
52
62
  sns.append(float(spec_file[3].data)) # SN of Spectrum
53
63
 
54
- linelist = '../example/example_linelist.txt' # Insert path to line list
64
+ linelist = 'example/example_linelist.txt' # Insert path to line list
55
65
 
56
66
  # choose a velocity grid for the final profile(s)
57
67
  deltav = acid.calc_deltav(wavelengths[0])
@@ -74,14 +84,14 @@ def multiple_frames():
74
84
  plt.close('all')
75
85
 
76
86
  def mulitple_orders():
77
- spec_file = fits.open('../example/sample_spec_1.fits')
87
+ spec_file = fits.open('example/sample_spec_1.fits')
78
88
 
79
89
  wavelength = spec_file[0].data # Wavelengths in Angstroms
80
90
  spectrum = spec_file[1].data # Spectral Flux
81
91
  error = spec_file[2].data # Spectral Flux Errors
82
92
  sn = spec_file[3].data # SN of Spectrum
83
93
 
84
- linelist = '../example/example_linelist.txt' # Insert path to line list
94
+ linelist = 'example/example_linelist.txt' # Insert path to line list
85
95
 
86
96
  # choose a velocity grid for the final profile(s)
87
97
  deltav = acid.calc_deltav(wavelength)
File without changes
File without changes
File without changes
File without changes
File without changes