{"id":47765220,"url":"https://github.com/waqasbhatti/pyeebls","last_synced_at":"2026-04-03T06:13:36.024Z","repository":{"id":62580119,"uuid":"84257900","full_name":"waqasbhatti/pyeebls","owner":"waqasbhatti","description":"A fork of Dan Foreman-Mackey's python-bls with only the eebls function.","archived":false,"fork":false,"pushed_at":"2025-04-17T04:07:07.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T22:52:31.437Z","etag":null,"topics":["astronomy","bls","fortran","period-finding","python"],"latest_commit_sha":null,"homepage":"","language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/waqasbhatti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-07T23:49:48.000Z","updated_at":"2024-06-22T22:51:44.000Z","dependencies_parsed_at":"2022-11-03T21:02:46.331Z","dependency_job_id":null,"html_url":"https://github.com/waqasbhatti/pyeebls","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/waqasbhatti/pyeebls","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waqasbhatti%2Fpyeebls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waqasbhatti%2Fpyeebls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waqasbhatti%2Fpyeebls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waqasbhatti%2Fpyeebls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waqasbhatti","download_url":"https://codeload.github.com/waqasbhatti/pyeebls/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waqasbhatti%2Fpyeebls/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31338525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T06:12:52.500Z","status":"ssl_error","status_checked_at":"2026-04-03T06:12:08.917Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astronomy","bls","fortran","period-finding","python"],"created_at":"2026-04-03T06:13:33.985Z","updated_at":"2026-04-03T06:13:36.018Z","avatar_url":"https://github.com/waqasbhatti.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyeebls\n\nThis is a module that wraps Geza Kovacs' eebls.f. Taken from Daniel\nForeman-Mackey's [python-bls](https://github.com/dfm/python-bls.git)\nmodule and broken out for easier use by other packages. This is used by the\n[astrobase.periodbase](https://github.com/waqasbhatti/astrobase/tree/master/astrobase/periodbase) module.\n\n## eebls.f\n\n- Kovacs, Zucker \u0026 Mazeh 2002, A\u0026A, Vol. 391, 369\n- http://arxiv.org/abs/astro-ph/0206099\n- http://www.konkoly.hu/staff/kovacs/eebls.f\n\n## python-bls\n\n- Foreman-Mackey, D., Angus, R., et al. 2012\n- https://github.com/dfm/python-bls.git\n\n## pyeebls\n\n- Bhatti, W., et al. 2017\n- https://github.com/waqasbhatti/pyeebls\n\n### Installation\n\nThis package is available from PyPI: https://pypi.python.org/pypi/pyeebls. If\nyou're using Python 2.7, 3.4--3.6 on 64-bit Linux or Python 2.7/3.6 on 64-bit\nWindows or Mac OSX \u003e= 10.12, you should be able to install the binary wheels\nfrom PyPI so no Fortran compiler is needed.\n\n```bash\n(venv)$ pip install pyeebls\n```\n\nIf this is not the case, you'll need to have numpy installed, along with a\nFortran compiler:\n\n```bash\n(venv)$ pip install numpy # in a virtualenv\n# or use dnf/yum/apt install numpy to install systemwide\n\n## you'll need a Fortran compiler to install pyeebls!         ##\n## on Linux: dnf/yum/apt install gcc gcc-gfortran             ##\n## on OSX (using homebrew): brew install gcc \u0026\u0026 brew link gcc ##\n```\n\nThen, install pyeebls using pip (preferably in a virtualenv or use the --user\nflag):\n\n```bash\n(venv)$ pip install pyeebls\n```\n\nOr download the tarball from PyPI, extract the files, and run setup.py:\n\n```bash\n(venv)$ python setup.py install\n```\n\n\n### Documentation\n\nThere's only one function to use in this module.\n\n```python\n\ndef pyeebls.eebls(times, mags, workarr_u, workarr_v,\n                  nfreq, freqmin, stepsize,\n                  nbins, minduration, maxduration):\n```\nCalculates the BLS spectrum for the input times and mags arrays.\n\n### Parameters\n\n`times` : *ndarray* :\n        A numpy array containing the times of the measurements.\n\n`mags` : *ndarray* :\n        A numpy array containing the mags or fluxes to use as measurements.\n\n`workarr_u`, `workarr_v` : *ndarray* :\n        Numpy arrays that must be the same size as times, used as temp\n        workspaces by the Fortran function.\n\n`nfreq` : *int* :\n        The number of frequencies to search for the best period.\n\n`freqmin` : *float* :\n        The minimum frequency to use.\n\n`stepsize` : *float* :\n        The stepsize in frequency units to use while searching.\n\n`nbins` : *int* :\n        The number of bins to use when phasing up the light curve at a\n        single test period.\n\n`minduration` : *float* :\n        The minimum transit duration in phase units to consider when testing for\n        a transit.\n\n`maxduration` : *float* :\n        The minimum transit duration in phase units to consider when testing for\n        a transit.\n\n\n### Returns\n\nA sequence of results:\n\n```\n(power, bestperiod, bestpower, transdepth,\n transduration, transingressbin, transegressbin)\n```\n\n`power` : *ndarray* :\n        A numpy array containing the values of the BLS spectrum at each tested\n        frequency.\n\n`bestperiod` : *float* :\n        The period at the highest peak in the frequency spectrum.\n\n`bestpower` : *float* :\n        The power at the highest peak in the frequency spectrum.\n\n`transdepth` : *float* :\n        The depth of the transit at the best period.\n\n`transduration` : *float* :\n        The length of the transit as a fraction of the phase. This is the\n        so-called 'q' parameter.\n\n`transingressbin` : *int* :\n        The phase bin index for the start of the transit.\n\n`transegressbin` : *int* :\n        The phase bin index for the end of the transit.\n\n\n### See Also\n\n- the comments at the top of eebls.f in this package\n- the [astrobase.periodbase.kbls](https://github.com/waqasbhatti/astrobase/blob/master/astrobase/periodbase/kbls.py) module for a high-level interface to this module\n\n\n## License\n\nThe license for the Python files is the MIT License. eebls.f is provided by\nG. Kovacs; it appears to be re-distributable, but please make sure to cite\nKovacs, et al. 2002 if you use this implementation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaqasbhatti%2Fpyeebls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaqasbhatti%2Fpyeebls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaqasbhatti%2Fpyeebls/lists"}