-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
88 lines (79 loc) · 2.9 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
from setuptools import setup
import os
import sys
import json
from pathlib import Path
sys.path.append("hera_cal")
def package_files(package_dir, subdirectory):
# walk the input package_dir/subdirectory
# return a package_data list
paths = []
directory = os.path.join(package_dir, subdirectory)
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
path = path.replace(package_dir + '/', '')
paths.append(os.path.join(path, filename))
return paths
data_files = package_files('hera_cal', 'data')
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
setup_args = {
'name': 'hera-calibration',
'author': 'HERA Team',
'url': 'https://github.com/HERA-Team/hera_cal',
'license': 'BSD',
'description': 'collection of calibration routines to run on the HERA instrument.',
'long_description': long_description,
'long_description_content_type': 'text/markdown',
'package_dir': {'hera_cal': 'hera_cal'},
'packages': ['hera_cal'],
'include_package_data': True,
'scripts': ['scripts/extract_hh.py', 'scripts/post_redcal_abscal_run.py',
'scripts/apply_cal.py', 'scripts/delay_filter_run.py',
'scripts/lstbin_run.py', 'scripts/extract_autos.py',
'scripts/smooth_cal_run.py', 'scripts/redcal_run.py',
'scripts/auto_reflection_run.py', 'scripts/noise_from_autos.py',
'scripts/query_ex_ants.py', 'scripts/red_average.py',
'scripts/time_average.py', 'scripts/tophat_frfilter_run.py', 'scripts/model_calibration_run.py',
'scripts/time_chunk_from_baseline_chunks_run.py', 'scripts/chunk_files.py', 'scripts/transfer_flags.py',
'scripts/flag_all.py', 'scripts/throw_away_flagged_antennas.py', 'scripts/select_spw_ranges.py',
'scripts/multiply_gains.py', 'scripts/lstbin_simple.py', 'scripts/subselect.py'],
'package_data': {'hera_cal': data_files},
'python_requires': '>=3.9',
'install_requires': [
'numpy>=1.10',
'scipy>=1.9.0',
'h5py',
'hdf5plugin',
'astropy',
'astropy-healpix',
'pyuvdata@git+https://github.com/RadioAstronomySoftwareGroup/pyuvdata',
'linsolve',
'hera_qm>=2.2.0',
'scikit-learn',
'hera-filters',
"line_profiler",
'aipy',
"rich",
"jax",
"jaxlib",
"optax",
'attrs',
'frozendict',
"toml",
],
'extras_require': {
'dev': [
"pytest",
"pre-commit",
"pytest-cov",
"hera_sim @ git+https://github.com/hera-team/hera_sim@use-uvdata-new",
"pytest-xdist",
"hypothesis",
"ruff",
]
},
'zip_safe': False,
}
if __name__ == '__main__':
setup(*(), **setup_args)