File tree 6 files changed +29
-2
lines changed
6 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,5 @@ __pycache__/
6
6
.DS_Store
7
7
8
8
v2dl5.egg-info
9
+
10
+ v2dl5 /_version.py
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ dynamic = ["version"]
14
14
description = " High-level analysis for VERITAS with gammapy"
15
15
readme = " README.md"
16
16
license = { file =" LICENSE" }
17
- version = " 0.1.0"
18
17
authors = [
19
18
{
name =
" Gernot Maier" ,
email =
" [email protected] " },
20
19
]
@@ -30,6 +29,7 @@ dependencies = [
30
29
" astropy" ,
31
30
" astroquery" ,
32
31
" gammapy" ,
32
+ " Ipython" ,
33
33
" pydantic<2" ,
34
34
]
35
35
@@ -38,7 +38,7 @@ dependencies = [
38
38
"bug tracker" = " https://github.com/GernotMaier/V2DL5/issues"
39
39
40
40
[project .scripts ]
41
- v2dl5-1d- reflected-region = " v2dl5.scripts.1d_reflected_region :main"
41
+ v2dl5-reflected-region-analysis = " v2dl5.scripts.reflected_region_analysis :main"
42
42
43
43
[tool .black ]
44
44
line_length = 100
Original file line number Diff line number Diff line change
1
+ import logging
2
+
3
+ from .version import __version__
4
+
5
+ logging .basicConfig (format = "%(levelname)s::%(module)s(l%(lineno)s)::%(funcName)s::%(message)s" )
6
+ logging .getLogger ("matplotlib" ).setLevel (logging .WARNING )
7
+
8
+ __all__ = ["__version__" ]
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ # this is adapted from https://github.com/cta-observatory/ctapipe/blob/main/ctapipe/version.py
2
+ # which is adapted from https://github.com/astropy/astropy/blob/master/astropy/version.py
3
+ # see https://github.com/astropy/astropy/pull/10774 for a discussion on why this needed.
4
+
5
+ try :
6
+ try :
7
+ from ._dev .scm_version import version
8
+ except ImportError :
9
+ from ._version import version
10
+ except Exception :
11
+ import warnings
12
+
13
+ warnings .warn ("Could not determine v2dl5 version; this indicates a broken installation." )
14
+ del warnings
15
+ version = "0.0.0"
16
+
17
+ __version__ = version
You can’t perform that action at this time.
0 commit comments