ACID-code-v2 0.2.2a5__tar.gz → 0.2.3a2__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.3a2}/PKG-INFO +1 -1
  2. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/docs/installation.rst +6 -6
  3. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/example/tutorial_code.py +1 -1
  4. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/src/ACID_code_v2.egg-info/PKG-INFO +1 -1
  5. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/tests/tests.py +9 -3
  6. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/tests/tutorial_test.py +9 -2
  7. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/.gitattributes +0 -0
  8. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/.github/workflows/publish.yml +0 -0
  9. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/.gitignore +0 -0
  10. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/.other_scripts/5_residual_profiles.py +0 -0
  11. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/.other_scripts/8_master_out_profiles.py +0 -0
  12. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/.readthedocs.yaml +0 -0
  13. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/.vscode/launch.json +0 -0
  14. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/LICENSE +0 -0
  15. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/README.md +0 -0
  16. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/acid.yml +0 -0
  17. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/docs/ACID.rst +0 -0
  18. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/docs/conf.py +0 -0
  19. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/docs/index.rst +0 -0
  20. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/docs/make.bat +0 -0
  21. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/docs/requirements.txt +0 -0
  22. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/docs/using_ACID.rst +0 -0
  23. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/example/.make_syn_dat.py +0 -0
  24. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/example/example_linelist.txt +0 -0
  25. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/example/sample_spec_1.fits +0 -0
  26. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/example/sample_spec_2.fits +0 -0
  27. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/example/sample_spec_3.fits +0 -0
  28. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/pyproject.toml +0 -0
  29. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/setup.cfg +0 -0
  30. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/src/ACID_code_v2/ACID.py +0 -0
  31. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/src/ACID_code_v2/LSD.py +0 -0
  32. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/src/ACID_code_v2/__init__.py +0 -0
  33. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/src/ACID_code_v2/utils.py +0 -0
  34. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/src/ACID_code_v2.egg-info/SOURCES.txt +0 -0
  35. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/src/ACID_code_v2.egg-info/dependency_links.txt +0 -0
  36. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/src/ACID_code_v2.egg-info/requires.txt +0 -0
  37. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/src/ACID_code_v2.egg-info/top_level.txt +0 -0
  38. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/tests/data/.DS_Store +0 -0
  39. {acid_code_v2-0.2.2a5 → acid_code_v2-0.2.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2}/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.3a2
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
 
@@ -5,13 +5,13 @@ import multiprocessing as mp
5
5
  import numpy as np
6
6
  import matplotlib.pyplot as plt
7
7
  try:
8
- raise Exception("Force except block")
9
8
  import ACID_code_v2 as acid
10
9
  except:
11
10
  os.chdir(os.path.dirname(__file__))
12
11
  os.chdir("../src") # ensures we are in the main directory
13
12
  import ACID_code_v2 as acid
14
13
  os.chdir("../example") # change back to example directory
14
+ print("pip module failed to import, imported from local instead")
15
15
  importlib.reload(acid)
16
16
 
17
17
  spec_file = fits.open('sample_spec_1.fits')
@@ -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.3a2
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,17 @@
1
1
  #%%
2
2
  from astropy.io import fits
3
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
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
+ os.chdir("src")
12
+ import ACID_code_v2 as acid
13
+ os.chdir("..")
14
+ print("pip module failed to import, imported from local instead")
9
15
  importlib.reload(acid)
10
16
 
11
17
  def test_run_e2ds():
@@ -1,8 +1,15 @@
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
5
+ os.chdir(os.path.dirname(__file__))
6
+ try:
7
+ import ACID_code_v2 as acid
8
+ except:
9
+ os.chdir("../src")
10
+ import ACID_code_v2 as acid
11
+ os.chdir(os.path.dirname(__file__))
12
+ print("pip module failed to import, imported from local instead")
6
13
 
7
14
  def quickstart():
8
15
  spec_file = fits.open('../example/sample_spec_1.fits')
File without changes
File without changes
File without changes
File without changes