@@ -60,7 +60,10 @@ class Engine:
60
60
61
61
.. TODO:: Search by Name. See page 13 of the documentation.
62
62
63
- :param lib_path: The path to the mass spectral library.
63
+ .. versionchanged:: 0.6.0 Added context manager support.
64
+ .. versionchanged:: 0.8.0 Add support for searching multiple libraries.
65
+
66
+ :param lib_path: The path to the mass spectral library, or a list of ``(<lib_path>, <lib_type>)`` tuples giving multiple libraries to search.
64
67
:param lib_type: The type of library. One of ``NISTMS_MAIN_LIB``, ``NISTMS_USER_LIB``, ``NISTMS_REP_LIB``.
65
68
:param work_dir: The path to the working directory.
66
69
"""
@@ -234,6 +237,8 @@ def get_reference_data(spec_loc: int) -> ReferenceData:
234
237
def get_lib_paths (self ) -> List [str ]:
235
238
"""
236
239
Returns the list of library names currently in use.
240
+
241
+ .. versionadded:: 0.8.0
237
242
"""
238
243
239
244
return self ._lib_paths .rstrip ('\x00 ' ).split (_core .NISTMS_PATH_SEPARATOR )
@@ -242,7 +247,9 @@ def get_lib_paths(self) -> List[str]:
242
247
@staticmethod
243
248
def get_active_libs () -> List [int ]:
244
249
"""
245
- Returns the active librararies, as their (zero-based) indices in the output of :meth:`~.WinEngine.get_lib_names()`.
250
+ Returns the active librararies, as their (zero-based) indices in the output of :meth:~.win_engine.Engine.get_lib_paths`.
251
+
252
+ .. versionadded:: 0.8.0
246
253
"""
247
254
248
255
return _core ._get_active_libs ()
0 commit comments