Skip to content

Commit 48258fd

Browse files
committed
fix: rename some functions to be Pythonic
1 parent 9e3a1fd commit 48258fd

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

test/test_basics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
def test_powerlaw():
7-
lib = xspectrampoline.get_libXSPEC()
7+
lib = xspectrampoline.get_libraries()
88
powerlaw = lib.get_model("C_powerlaw")
99

1010
energy = np.linspace(0.01, 10.0, 100, dtype=np.float64)

xspectrampoline/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,18 +140,18 @@ def get_model(self, symbol: str, interface: Optional[str] = None) -> callable:
140140
lib_XSFunctions.FNINIT()
141141

142142

143-
def get_libXSPEC() -> LibXSPEC:
143+
def get_libraries() -> LibXSPEC:
144144
"""
145145
Get a handle to all of the XSPEC libraries.
146146
"""
147147
return LibXSPEC(lib_XS, lib_XSFunctions, lib_XSUtil)
148148

149149

150-
def getHEADAS() -> str:
150+
def get_HEADAS() -> str:
151151
"""
152152
Returns the HEADAS path currently used by the library.
153153
"""
154154
return str(__headas_path)
155155

156156

157-
__all__ = [getHEADAS]
157+
__all__ = [get_HEADAS, get_libraries]

0 commit comments

Comments
 (0)