Skip to content

Commit

Permalink
Merge pull request #283 from MannLabs/fix_tests
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
mschwoer authored Jan 21, 2025
2 parents c1efa4b + 3c8fa63 commit 57e58ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/_run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
shell: bash -le {0}
run: |
conda activate alphabase
pip install pytest nbmake==1.5.3
pip install -r requirements/requirements_tests.txt
conda deactivate
- name: Run tests
shell: bash -le {0}
Expand Down
7 changes: 3 additions & 4 deletions nbs_tests/peptide/fragment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"from alphabase.peptide.fragment import get_charged_frag_types, parse_charged_frag_type, \\\n",
" create_fragment_mz_dataframe_by_sort_precursor, get_sliced_fragment_dataframe, update_sliced_fragment_dataframe, \\\n",
" create_fragment_mz_dataframe, flatten_fragments, remove_unused_fragments, join_left, calc_fragment_cardinality\n",
"from alphabase.peptide.precursor import update_precursor_mz "
"from alphabase.peptide.precursor import update_precursor_mz\n",
"from alphabase.peptide.fragment import FRAGMENT_TYPES, FragmentType, sort_charged_frag_types"
]
},
{
Expand Down Expand Up @@ -88,9 +89,7 @@
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"assert sort_charged_frag_types(['b_modloss_z1','a_z1','b_z1','b_z2','b_modloss_z2','a_z2']) == ['a_z1','a_z2','b_z1','b_z2','b_modloss_z1','b_modloss_z2']"
]
"source": "assert sort_charged_frag_types(['b_modloss_z1','a_z1','b_z1','b_z2','b_modloss_z2','a_z2']) == ['a_z1','a_z2','b_z1','b_z2','b_modloss_z1','b_modloss_z2']"
},
{
"cell_type": "code",
Expand Down

0 comments on commit 57e58ab

Please sign in to comment.