Skip to content

Commit

Permalink
fix xdoctest
Browse files Browse the repository at this point in the history
  • Loading branch information
picciama committed Sep 13, 2024
1 parent 9c24d1c commit 3490afa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions oktoberfest/predict/predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,15 +258,15 @@ def predict_in_chunks(self, data: pd.DataFrame, chunk_idx: list[pd.Index], **kwa
>>> "PRECURSOR_CHARGE": [1,2],
>>> "FRAGMENTATION": ["HCD","HCD"],
>>> "PEPTIDE_LENGTH": [8,9]})
>>> idx = list(group_iterator(df=meta_df, group_by_column="PEPTIDE_LENGTH"))
>>> var = Spectra._gen_vars_df()
>>> library = Spectra(obs=meta_df, var=var)
>>> idx = list(group_iterator(df=library.obs, group_by_column="PEPTIDE_LENGTH"))
>>> intensity_predictor = pr.Predictor.from_koina(
>>> model_name="Prosit_2020_intensity_HCD",
>>> server_url="koina.wilhelmlab.org:443",
>>> ssl=True,
>>> targets=["intensities", "annotation"])
>>> predictions = intensity_predictor.predict_in_chunks(data=library, chunk_idx=idx)
>>> predictions = intensity_predictor.predict_in_chunks(data=library.obs, chunk_idx=idx)
>>> print(predictions)
"""
results = []
Expand Down
1 change: 0 additions & 1 deletion oktoberfest/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def _make_predictions_error_callback(failure_progress_tracker, failure_lock, err


def _make_predictions(config, queue_out, progress, lock, batch_df):
print("depp")
predictors = {model_key: pr.Predictor.from_config(config, model_type=model_key) for model_key in config.models}
predictions = {
output_name: output
Expand Down

0 comments on commit 3490afa

Please sign in to comment.