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

merging project top and project subtomograms into project subtomograms #183

Closed
wants to merge 3 commits into from

Conversation

Vilax
Copy link
Collaborator

@Vilax Vilax commented May 20, 2024

No description provided.

@Vilax Vilax requested a review from MartinSalinas98 May 20, 2024 14:45
@albertmena
Copy link
Contributor

Fix the test please

@@ -154,7 +154,7 @@ def createOutputStep(self):
# Input could be SetOfVolumes or SetOfSubtomograms
for item in input.iterItems():
idx = item.getObjId()
p = Particle()
p = Particle(objId=item.getObjId())
Copy link
Contributor

Choose a reason for hiding this comment

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

If project top is getting absorbed by project subtomograms, shouldn't this protocol get deleted?

Comment on lines +257 to +271
# X axis
if dir == self.AXIS_X:
for zi in range(z):
for yi in range(y):
proj[yi, zi] = np.sum(volData[zi, yi, :])
# Y axis
elif dir == self.AXIS_Y:
for zi in range(z):
for xi in range(x):
proj[zi, xi] = np.sum(volData[zi, :, xi])
# Z axis
elif dir == self.AXIS_Z:
for xi in range(x):
for yi in range(y):
proj[yi, xi] = np.sum(volData[:, yi, xi])
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be separated into a private function

@MartinSalinas98
Copy link
Contributor

I need to properly understand the new features included in the protocol before i can really check this code.

Copy link

sonarcloud bot commented May 31, 2024

Quality Gate Passed Quality Gate passed

Issues
7 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@MartinSalinas98
Copy link
Contributor

Not needed any more, can be replaced by #196.

In such Pull Request, you can project in whichever axis you want just setting your NSamples to 1 and adding the same value to tilt range start and end.

For example, to proyect on to Z axis:

  • NSamples: 1
  • Tilit range start: 0
  • Tilt range end: 0

@MartinSalinas98 MartinSalinas98 deleted the mergedAxisproj branch June 29, 2024 11:15
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.

3 participants