Skip to content

Commit

Permalink
Merge pull request #198 from ctlearn-project/issueHotfix
Browse files Browse the repository at this point in the history
Issue hotfix
  • Loading branch information
rcervinoucm authored Jul 15, 2024
2 parents 709d73f + d5c85e6 commit 6d2bed3
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
CTLearn: Deep Learning for IACT Event Reconstruction
====================================================

.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.3342952.svg
:target: https://doi.org/10.5281/zenodo.3342952
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.11475531.svg
:target: https://doi.org/10.5281/zenodo.11475531
:alt: DOI


Expand Down Expand Up @@ -37,7 +37,7 @@ necessary package channels, and install CTLearn specified version and its depend

.. code-block:: bash
CTLEARN_VER=0.8.0
CTLEARN_VER=0.9.0
wget https://raw.githubusercontent.com/ctlearn-project/ctlearn/v$CTLEARN_VER/environment.yml
conda env create -n [ENVIRONMENT_NAME] -f environment.yml
conda activate [ENVIRONMENT_NAME]
Expand All @@ -54,10 +54,10 @@ Citing this software

Please cite the corresponding version using the DOIs below if this software package is used to produce results for any publication:

.. |zendoi070| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.7908252.svg
:target: https://doi.org/10.5281/zenodo.7908252
.. |zendoi080| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.11475531.svg
:target: https://doi.org/10.5281/zenodo.11475531

* 0.7.0 : |zendoi070|
* 0.8.0 : |zendoi080|

Team
----
Expand Down
5 changes: 4 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ pip
pyyaml
scikit-learn
tensorflow
tf2onnx
ctaplot
dl1_data_handler
numba
pydot
pyirf
53 changes: 53 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
[build-system]
requires = ["setuptools >= 65", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[project]
name = "CTLearn"
description = "CTLearn is a package under active development to run deep learning models to analyze data from all major current and future arrays of imaging atmospheric Cherenkov telescopes (IACTs)."
readme = "README.md"
license = {text = "BSD-3-Clause"}
authors = [
{name = "Ari Brill"},
{name = "Bryan Kim"},
{name = "Tjark Miener"},
{name = "Daniel Nieto"}
]

classifiers = [
"License :: OSI Approved :: BSD License",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Physics",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

requires-python = ">=3.10"
dependencies = [
"dl1_data_handler>=0.12.0",
"astropy",
"matplotlib",
"numpy",
"pandas",
"pip",
"pyyaml",
"scikit-learn",
"ctaplot",
"numba>=0.56.2,<0.57",
"tensorflow>=2.15,<2.16",
"pydot",
"pyirf",
]

dynamic = ["version"]

[project.urls]
repository = "https://github.com/ctlearn-project/ctlearn"
documentation = "https://ctlearn.readthedocs.io/en/latest/"

[project.scripts]
ctlearn="ctlearn.run_model:main"
build_irf="ctlearn.build_irf:main"
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ def getVersionFromFile():

here = path.abspath(path.dirname(__file__))

def getRequirements():
return open("docs/requirements.txt").readlines()

with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()

Expand All @@ -22,9 +25,11 @@ def getVersionFromFile():
url='https://github.com/ctlearn-project/ctlearn',
license='BSD-3-Clause',
packages=['ctlearn'],
install_requires=getRequirements(),
entry_points = {
'console_scripts': ['ctlearn=ctlearn.run_model:main',
'build_irf=ctlearn.build_irf:main'],
},

dependency_links=[],
zip_safe=True)

0 comments on commit 6d2bed3

Please sign in to comment.