Skip to content
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

Added URL posts to register CLEM workflow files #357

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tieneupin
Copy link
Contributor

  • Additionally, fixed minor bugs found in code after last minor update.

@tieneupin tieneupin added enhancement New feature or request server Relates to the server component client Relates to the client component cryo-clem Part of the cryo-CLEM pipeline extension labels Oct 2, 2024
@tieneupin tieneupin self-assigned this Oct 2, 2024
Comment on lines +422 to +426
def register_tiff_file(
self,
tiff_file: Path,
environment: MurfeyInstanceEnvironment,
):

Check notice

Code scanning / CodeQL

Explicit returns mixed with implicit (fall through) returns Note

Mixing implicit and explicit returns may indicate an error as implicit returns always return None.
Comment on lines +449 to +453
def process_tiff_series(
self,
tiff_dataset: dict,
environment: MurfeyInstanceEnvironment,
):

Check notice

Code scanning / CodeQL

Explicit returns mixed with implicit (fall through) returns Note

Mixing implicit and explicit returns may indicate an error as implicit returns always return None.
Copy link

codecov bot commented Oct 2, 2024

Codecov Report

Attention: Patch coverage is 9.78261% with 83 lines in your changes missing coverage. Please review.

Project coverage is 28.98%. Comparing base (0fa51e3) to head (bbd3e29).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #357      +/-   ##
==========================================
- Coverage   29.12%   28.98%   -0.14%     
==========================================
  Files          70       70              
  Lines        9481     9540      +59     
  Branches     1747     1756       +9     
==========================================
+ Hits         2761     2765       +4     
- Misses       6618     6673      +55     
  Partials      102      102              

@tieneupin
Copy link
Contributor Author

tieneupin commented Oct 3, 2024

Validation checks:

  • register_lif_file request post works
  • process_lif_file request post works
  • register_tiff_file request post works
  • process_tiff_dataset request post works

The cluster submission ones are too challenging for me to test at present, but both registration functions work when I construct the URL and post it via requests.post().

…ed additional 'raise Exception' to catch unexpected ones when loading rsync_basepath
src/murfey/server/api/clem.py Dismissed Show dismissed Hide dismissed
src/murfey/server/api/clem.py Dismissed Show dismissed Hide dismissed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Relates to the client component cryo-clem Part of the cryo-CLEM pipeline extension enhancement New feature or request server Relates to the server component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant