Skip to content

Conversation

@melissalinkert
Copy link
Member

Trying out a less restrictive check on timestamps for file grouping, intended to help with WSI data.

Mostly opening to check for test failures at this point, anticipating that some refinement may be needed.


if (date.equals(originalDate) && (Math.abs(stamp - timestamp) < 150000000)) {
double timeDifference = Math.abs(stamp - timestamp);
LOGGER.trace(" time difference (microsecs) = {}", timeDifference);
Copy link

Choose a reason for hiding this comment

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

Very minor point but is it worth taking the abs after the log so that direction is preserved in the log?

Copy link
Member

Choose a reason for hiding this comment

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

I would be inclined to keep things as they are:

  • the conditional check is made on the absolute difference between the two timestamps
  • the new logging statement essentially prints this absolute difference at the TRACE level
  • the values of the individual timestamps are also logged at the TRACE level above

For debugging purposes, it should be possible to deduce the direction of the difference using this combination of values if desired

@imagesc-bot
Copy link

This pull request has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/qupath-closing-with-40x-dicom-layer/117202/6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants