-
Notifications
You must be signed in to change notification settings - Fork 1
Resolved client-server import chain and added installation key for instrument server dependencies #448
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
Merged
Merged
Resolved client-server import chain and added installation key for instrument server dependencies #448
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
2e2a7c0
Duplicated '_midpoint' function from 'murfey.client.contexts.tomo' to…
tieneupin 6988807
Moved 'midpoint' function to 'murfey.util.tomo' to function duplication
tieneupin a67ae92
Added new optional dependency key for client-side instrument server
tieneupin 45590a9
Replaced remaining instances of 'procrunner' with 'subprocess'
tieneupin 2bb132a
Updated descriptive comments on 'pyproject.toml'
tieneupin bb0ec71
Implemented sanitisation to satisfy CodeQL warning on uncontrolled co…
tieneupin b3c8e3d
Added 'jose' as an 'instrument-server' dependency
tieneupin b55ae5f
Added 'jose' as a 'server' dependency
tieneupin 933cfe6
Package is 'python-jose[cryptography], not 'jose'
tieneupin 72548e2
Updated '_parse_rsync_stdout/stderr()' functions to read stringified …
tieneupin 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
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
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
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
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,16 @@ | ||
| def midpoint(angles: list[float]) -> int: | ||
| """ | ||
| Utility function to calculate the midpoint of the angles used in a tilt series. | ||
| Used primarily in the tomography workflow. | ||
| """ | ||
| if not angles: | ||
| return 0 | ||
| if len(angles) <= 2: | ||
| return round(angles[0]) | ||
| sorted_angles = sorted(angles) | ||
| return round( | ||
| sorted_angles[len(sorted_angles) // 2] | ||
| if sorted_angles[len(sorted_angles) // 2] | ||
| and sorted_angles[len(sorted_angles) // 2 + 1] | ||
| else 0 | ||
| ) | ||
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.
Uh oh!
There was an error while loading. Please reload this page.