{"id":17190906,"url":"https://github.com/dfm/bls.py","last_synced_at":"2025-04-13T19:42:44.782Z","repository":{"id":57415718,"uuid":"123719640","full_name":"dfm/bls.py","owner":"dfm","description":"A reference implementation of box least squares in Python","archived":false,"fork":false,"pushed_at":"2020-06-12T18:16:25.000Z","size":2692,"stargazers_count":5,"open_issues_count":6,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-12T01:48:08.473Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dfm.png","metadata":{"files":{"readme":"README.rst","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":"2018-03-03T18:25:09.000Z","updated_at":"2021-08-17T14:22:56.000Z","dependencies_parsed_at":"2022-09-01T18:22:26.572Z","dependency_job_id":null,"html_url":"https://github.com/dfm/bls.py","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfm%2Fbls.py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfm%2Fbls.py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfm%2Fbls.py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfm%2Fbls.py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dfm","download_url":"https://codeload.github.com/dfm/bls.py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248771284,"owners_count":21159118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-15T01:24:21.821Z","updated_at":"2025-04-13T19:42:44.739Z","avatar_url":"https://github.com/dfm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"bls.py\n======\n\nAn efficient reference implementation of the box least squares algorithm for\ntransiting exoplanet search in Python.\nThis will eventually be submitted as a pull request to the core AstroPy package, but\nwe're making it available here for now to make it easy to use right away.\n\nPrerequisites\n-------------\n\nTo install and run this package, you will need to have NumPy, Cython, and AstroPy installed.\nThe recommended installation method is:\n\n.. code-block:: bash\n \n    conda install numpy cython astropy\n\nInstallation\n------------\n\nTo install, clone this repository and build the extension as follows:\n\n.. code-block:: bash\n    \n    git clone https://github.com/dfm/bls.py.git\n    cd bls.py\n    python setup.py install\n    \nor, install using ``pip``:\n\n.. code-block:: bash\n\n    pip install bls.py\n    \n**OpenMP support**: This algorithm can optionally be parallelized using OpenMP.\nTo enable this feature, you must compile with a compiler that supports OpenMP and the\nrelevant flags. On macOS, this can be achieved by installing a recent ``llvm``:\n\n.. code-block:: bash\n\n    brew install llvm\n \nand then building using the following flags:\n\n.. code-block:: bash\n\n    CC=/usr/local/opt/llvm/bin/clang \\\n     LDFLAGS=\"-L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib -liomp5\" \\\n     CFLAGS=\"-I/usr/local/opt/llvm/include -fopenmp\" \\\n     python setup.py install\n    \nOn other platforms, a command like the following might be sufficient:\n\n.. code-block:: bash\n\n    CFLAGS=\"-lgomp -fopenmp\" python setup.py install\n\nUsage\n-----\n\nSee ``tutorial.ipynb`` for a demonstration of how to use the code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfm%2Fbls.py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdfm%2Fbls.py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfm%2Fbls.py/lists"}