masster 0.5.17__py3-none-any.whl → 0.5.19__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of masster might be problematic. Click here for more details.

masster/study/id.py CHANGED
@@ -22,7 +22,8 @@ def lib_load(
22
22
  Args:
23
23
  study: Study instance
24
24
  lib_source: either a CSV file path (str) or a Lib instance
25
- polarity: ionization polarity ("positive" or "negative") - used when lib_source is a CSV path
25
+ polarity: ionization polarity ("positive" or "negative") - used when lib_source is a CSV path.
26
+ If None, uses study.polarity automatically.
26
27
  adducts: specific adducts to generate - used when lib_source is a CSV path
27
28
  iso: isotope generation mode ("13C" to generate 13C isotopes, None for no isotopes)
28
29
 
@@ -49,6 +50,7 @@ def lib_load(
49
50
  polarity = "negative"
50
51
  else:
51
52
  polarity = "positive" # Default fallback
53
+ study.logger.debug(f"Using study polarity: {polarity}")
52
54
 
53
55
  # Handle string input (CSV file path)
54
56
  if isinstance(lib_source, str):