-
Notifications
You must be signed in to change notification settings - Fork 2
IM2Deep 2.0 API #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rodvrees
wants to merge
28
commits into
main
Choose a base branch
from
new-api
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
IM2Deep 2.0 API #18
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
1f206d6
Add core module, outline core functionality
rodvrees 9735019
model_ops and calibration
rodvrees 52a6b0e
Calibration refactoring done
rodvrees 7c12fc5
CLI functionality start
rodvrees e2f69d0
Implement prediction logic
rodvrees 07428d7
New model
rodvrees 3ff0946
get_default_reference in Calibration class
rodvrees 436fb18
Do not use PSMList during calibration
rodvrees 8943fb1
Fix calibration logic
rodvrees 1e2a027
Fix calibration for multiconformer prediction
rodvrees 8206671
delete outdated modules and model files
rodvrees dca3582
add tests + adapt code where needed
rodvrees b9e1fb4
Add test workflow
rodvrees e99a871
update dependencies
rodvrees 49bc58f
pytorch-lightning -> lightning
rodvrees 35ccac0
update pyproject and README.md
rodvrees 1a4c5ce
Remove non-optional optional dependencies
rodvrees 52e1999
Add profiling + use dataframes for calibration
rodvrees 8902973
Fix tests
rodvrees 35f4451
Fix error if CCS is directly in df
rodvrees 10b7c32
Fix tests
rodvrees e3c0a18
Fix if CCS is directly in df
rodvrees 074cb9c
Further fixes
rodvrees e3c39eb
Fix general shift allocation
rodvrees 40ca412
throw out im2deeptrainer dependency
rodvrees ddd62ef
update pyproject.toml
rodvrees be33db8
wandb optional
rodvrees 681998e
update version
rodvrees File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: Python package test | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| test: | ||
| strategy: | ||
| matrix: | ||
| system: [["3.11", "ubuntu-latest"], ["3.12", "macos-latest"], ["3.12", "ubuntu-latest"]] | ||
| runs-on: ${{ matrix.system[1] }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up Python ${{ matrix.system[0] }} | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.system[0] }} | ||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install flake8 pytest | ||
| pip install --editable .[test] | ||
| - name: Lint with flake8 | ||
| run: | | ||
| # stop the build if there are Python syntax errors or undefined names | ||
| flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
| # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
| flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
| - name: Test with pytest | ||
| run: | | ||
| pytest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -111,4 +111,7 @@ IM2Deep.code-workspace | |
|
|
||
| # Testing | ||
| test_data/ | ||
| test.ipynb | ||
| test.ipynb | ||
|
|
||
| # Profiles | ||
| profiles/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -36,19 +36,16 @@ | |||
| Apache License 2.0 | ||||
| """ | ||||
|
|
||||
| __version__ = "1.2.0" | ||||
| __version__ = "2.0.0-beta" | ||||
|
|
||||
| # Import main functionality for easier access | ||||
| from im2deep.im2deep import predict_ccs | ||||
| from im2deep.calibrate import linear_calibration | ||||
| from importlib.metadata import version | ||||
| from im2deep.utils import ccs2im, im2ccs | ||||
| from im2deep._exceptions import IM2DeepError, CalibrationError | ||||
|
|
||||
| __version__: str = version("im2deep") | ||||
| __all__ = [ | ||||
| "predict_ccs", | ||||
| "linear_calibration", | ||||
| "predict", | ||||
| "calibrate_and_predict", | ||||
|
||||
| "calibrate_and_predict", |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name 'predict' is exported by all but is not defined.