Skip to content

Commit

Permalink
✨ set logger to debug; describe into column that leads to bad training
Browse files Browse the repository at this point in the history
  • Loading branch information
gessulat committed Oct 8, 2024
1 parent 894a10c commit c6089be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mokapot/brew.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def brew(
max_workers=max_workers,
)
for psms in train_psms:
LOGGER.info(psms.describe())
LOGGER.info(psms.NegLog10CombinePValue.describe())
del train_sets
fitted = Parallel(n_jobs=max_workers, require="sharedmem")(
delayed(_fit_model)(d, datasets, copy.deepcopy(model), f)
Expand Down
2 changes: 2 additions & 0 deletions mokapot/mokapot.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def main(main_args=None):
level=verbosity_dict[config.verbosity],
)
logging.captureWarnings(True)
numba_logger = logging.getLogger('numba')
numba_logger.setLevel(logging.WARNING)

# Suppress warning if asked for
if config.suppress_warnings:
Expand Down
5 changes: 4 additions & 1 deletion tests/system_tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# tests/system_tests/test_cli.py


"""
These tests verify that the CLI works as expected.
Expand Down Expand Up @@ -30,7 +33,7 @@ def phospho_files():

def test_basic_cli(tmp_path, scope_files):
"""Test that basic cli works."""
params = [scope_files[0], "--dest_dir", tmp_path]
params = [scope_files[0], "--dest_dir", tmp_path, "--verbosity", 3]
run_mokapot_cli(params)
assert file_approx_len(tmp_path, "targets.psms.csv", 5487)
assert file_approx_len(tmp_path, "targets.peptides.csv", 5183)
Expand Down

0 comments on commit c6089be

Please sign in to comment.