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

fix(PET vs PT): Change all to PT for consistency #676

Merged
merged 3 commits into from
Jul 4, 2023
Merged

Conversation

sedghi
Copy link
Member

@sedghi sedghi commented Jul 3, 2023

Context

This Pull Request addresses an issue of inconsistency in the naming convention used in the codebase. The problem was between using "PET" and "PT" terms. To ensure consistency across the project, all instances of "PET" have been changed to "PT"​1​.

Also isPrescaled was wrong and it should be isPreScaled

Changes & Results

Change PET -> PT
and isPrescaled -> isPreScaled

Testing

OHIF MPR for PT does not work because of this check but the volume has isPrescaled :(

Checklist

PR

  • [] My Pull Request title is descriptive, accurate and follows the
    semantic-release format and guidelines.

Code

Public Documentation Updates

  • [] The documentation page has been updated as necessary for any public API
    additions or removals.

Tested Environment

  • [] "OS:
  • [] "Node version:
  • [] "Browser:

@netlify
Copy link

netlify bot commented Jul 3, 2023

Deploy Preview for cornerstone-3d-docs ready!

Name Link
🔨 Latest commit ad502ba
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-3d-docs/deploys/64a463593b299c0008d8598a
😎 Deploy Preview https://deploy-preview-676--cornerstone-3d-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@sedghi sedghi requested a review from jbocce July 3, 2023 20:51
Copy link
Contributor

@jbocce jbocce left a comment

Choose a reason for hiding this comment

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

The changes thus far seem fine.

It looks like the API check is failing due to the rename.

Also, I did a search of pet and found many references (mostly in comments and docs). Do we care about these? There were also a few in uids.ts. Not sure how important those are.

@sedghi
Copy link
Member Author

sedghi commented Jul 4, 2023

@jbocce The rest are documentations, there shouldn't be any property of a class or variable called PET, I think I got them all, no?

@jbocce
Copy link
Contributor

jbocce commented Jul 4, 2023

@jbocce The rest are documentations, there shouldn't be any property of a class or variable called PET, I think I got them all, no?

I suppose uids.ts is in examples, so I think we are good, yes.

Copy link
Contributor

@jbocce jbocce left a comment

Choose a reason for hiding this comment

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

Approved.

@sedghi sedghi merged commit 813e5ba into main Jul 4, 2023
@sedghi sedghi deleted the fix/pt-vs-pet branch August 2, 2023 20:31
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.

2 participants