UCBerkeleySETI / hyperseti

A SETI / technosignature search code to find intelligent life beyond Earth
https://hyperseti.readthedocs.io
11 stars 4 forks source link

Code tidy-up: adding type hints to older functions #108

Closed telegraphic closed 1 year ago

what-the-diff[bot] commented 1 year ago

PR Summary

telegraphic commented 1 year ago

(wtd is pretty far off on some of these -- primarily just added type hints)

telegraphic commented 1 year ago

Unit tests ran manually, passing at 94% coverage

---------- coverage: platform linux, python 3.11.3-final-0 -----------
Name                               Stmts   Miss  Cover
------------------------------------------------------
hyperseti/__init__.py                  6      0   100%
hyperseti/blanking.py                 64      5    92%
hyperseti/data_array.py              184      9    95%
hyperseti/dedoppler.py               155      9    94%
hyperseti/dimension_scale.py         200      6    97%
hyperseti/filter.py                   21      3    86%
hyperseti/findET.py                   42      8    81%
hyperseti/hit_browser.py             100      7    93%
hyperseti/hits.py                    136      7    95%
hyperseti/io/__init__.py               6      0   100%
hyperseti/io/filterbank.py            18      0   100%
hyperseti/io/hdf5.py                  17      0   100%
hyperseti/io/hit_db.py               104      7    93%
hyperseti/io/hit_db_schema.py         31      0   100%
hyperseti/io/load_config.py            5      0   100%
hyperseti/io/load_data.py             20      4    80%
hyperseti/io/setigen.py               13      0   100%
hyperseti/kernels/__init__.py          0      0   100%
hyperseti/kernels/blank_hits.py        2      0   100%
hyperseti/kernels/dedoppler.py         4      0   100%
hyperseti/kernels/peak_finder.py     123      5    96%
hyperseti/kurtosis.py                 38      3    92%
hyperseti/log.py                      30      1    97%
hyperseti/normalize.py                65      7    89%
hyperseti/pipeline.py                208      5    98%
hyperseti/plotting.py                 47      3    94%
hyperseti/singletons.py                2      0   100%
hyperseti/test_data/__init__.py       23      3    87%
hyperseti/tsdat.py                    90      3    97%
hyperseti/utils.py                    34      5    85%
hyperseti/version.py                   2      0   100%
------------------------------------------------------
TOTAL                               1790    100    94%

============================================================== 48 passed, 12 warnings in 82.01s (0:01:22) ===============================================================