Skip to content

Conversation

@CellKai
Copy link
Contributor

@CellKai CellKai commented Mar 12, 2025

No description provided.

@ehrenfeu
Copy link
Member

Waiting for imcf/imcf-fiji-mocks#3 to be completed & 🔀 merged, in order for the tests 🧪 to pass.

@ehrenfeu ehrenfeu self-assigned this Mar 12, 2025
@codecov
Copy link

codecov bot commented Mar 12, 2025

Codecov Report

Attention: Patch coverage is 16.12903% with 26 lines in your changes missing coverage. Please review.

Please upload report for BASE (devel@e0c2108). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/imcflibs/imagej/projections.py 16.12% 26 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             devel      #40   +/-   ##
========================================
  Coverage         ?   28.33%           
========================================
  Files            ?       24           
  Lines            ?     1394           
  Branches         ?        0           
========================================
  Hits             ?      395           
  Misses           ?      999           
  Partials         ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@ehrenfeu ehrenfeu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see the in-line comments / requests.



def project_stack(imp, projected_dimension, projection_type, ops, ds, cs):
"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please have the function summary on the same line as the opening quotes """ and make it less than 88 characters in total.

Try to use minimalist phrasing, this is really meant to be a one-liner that conveys the idea of the function, for example this one could be:

def project_stack(imp, projected_dimension, projection_type, ops, ds, cs):
    """Project along a defined axis using the given projection type.

   [bla...]
   """

Parameters
----------
imp : ImagePlus
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure docstrings do not exceed the 88 chars line length, you may want to consider the Rewrap Revived extension for VS Code for doing this.

Copy link
Member

@ehrenfeu ehrenfeu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️ Thanks a lot!

Unlike what I said when leaving the office a while ago, there's nothing else to fix (I was confusing other linting issues fully unrelated to this PR... 🤦🏼‍♂️).

Ready to be merged! 🔀 🚀

@ehrenfeu ehrenfeu merged commit 28d2184 into imcf:devel Mar 12, 2025
4 checks passed
@CellKai
Copy link
Contributor Author

CellKai commented Mar 12, 2025 via email

@ehrenfeu
Copy link
Member

@CellKai the merge was happening in a slightly unexpected way (GitHub only offered a rebase or squash), so no idea what the status in your fork of the repo would be now (after my rebase-merge).

In case your repo still contains the branch that was used to start this PR, you may delete the branch now.

@ehrenfeu ehrenfeu changed the title Add function Add imagej.projections.project_stack() Mar 13, 2025
@ehrenfeu ehrenfeu added the enhancement New feature or request label Mar 13, 2025
@ehrenfeu ehrenfeu moved this to Done in imcflibs Mar 13, 2025
@ehrenfeu ehrenfeu assigned CellKai and unassigned ehrenfeu Mar 14, 2025
@ehrenfeu ehrenfeu added this to the 1.5.0 milestone Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants