Skip to content

Commit 7fc602b

Browse files
author
Kyle Beyer
committed
just expose the db
1 parent 5487c8f commit 7fc602b

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

src/exfor_tools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
AngularDistribution,
88
AngularDistributionSysStatErr,
99
init_exfor_db,
10-
get_db,
1110
filter_out_lab_angle,
1211
plot_angular_distributions,
1312
parse_angle,
1413
parse_inc_energy,
1514
parse_ex_energy,
1615
parse_differential_data,
1716
parse_angular_distribution,
17+
__EXFOR_DB__,
1818
)
1919

2020
init_exfor_db()

src/exfor_tools/exfor_tools.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,6 @@ def init_exfor_db():
3939
__EXFOR_DB__ = exfor_manager.X4DBManagerDefault()
4040

4141

42-
def get_db():
43-
"""
44-
Retrieve the EXFOR database manager.
45-
46-
This function returns the global EXFOR database manager, initializing it if necessary.
47-
48-
Returns:
49-
The global EXFOR database manager instance.
50-
"""
51-
global __EXFOR_DB__
52-
if __EXFOR_DB__ is None:
53-
init_exfor_db()
54-
return __EXFOR_DB__
55-
56-
5742
# these are the supported quantities at the moment
5843
# XS = cross section, A = angle, Ruth = Rutherford cross section, Ay = analyzing power
5944
quantity_matches = {

0 commit comments

Comments
 (0)