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

Add R dimension for template generation #74

Merged
merged 3 commits into from
Dec 19, 2022
Merged

Add R dimension for template generation #74

merged 3 commits into from
Dec 19, 2022

Conversation

zihaoxu98
Copy link
Collaborator

Add rec_r in pos_rec if we wanna use binning in r

return key, x + delta_x, y + delta_y, z
x_rec = x + delta_x
y_rec = y + delta_y
return key, x_rec, y_rec, z, jnp.sqrt(x_rec**2 + y_rec**2)

Choose a reason for hiding this comment

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

[pep8] reported by reviewdog 🐶
WPS221 Found line with high Jones Complexity: 16 > 14

Copy link
Collaborator

Choose a reason for hiding this comment

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

@xzh19980906 Better assign r_rec first then return it.

rec_x = x + delta_x
rec_y = y + delta_y
rec_z = z
rec_r = jnp.sqrt(x_rec**2 + y_rec**2)

Choose a reason for hiding this comment

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

[pep8] reported by reviewdog 🐶
F821 undefined name 'x_rec'

rec_x = x + delta_x
rec_y = y + delta_y
rec_z = z
rec_r = jnp.sqrt(x_rec**2 + y_rec**2)

Choose a reason for hiding this comment

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

[pep8] reported by reviewdog 🐶
F821 undefined name 'y_rec'

@coveralls
Copy link

coveralls commented Dec 19, 2022

Pull Request Test Coverage Report for Build 3733139391

  • 6 of 6 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.05%) to 79.067%

Totals Coverage Status
Change from base Build 3733057169: 0.05%
Covered Lines: 1356
Relevant Lines: 1715

💛 - Coveralls

@dachengx dachengx merged commit 8a0fde9 into master Dec 19, 2022
@dachengx dachengx deleted the r_dim branch December 19, 2022 17:28
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.

None yet

3 participants