Skip to content

2d_cross to 2d_line#111

Merged
ttricco merged 3 commits intottricco:mainfrom
FathimaCSgithub:2d-line
Jul 8, 2025
Merged

2d_cross to 2d_line#111
ttricco merged 3 commits intottricco:mainfrom
FathimaCSgithub:2d-line

Conversation

@FathimaCSgithub
Copy link
Contributor

Updating the name from 2d_cross to 2d_line

@njit(parallel=True, fastmath=True)
def _fast_2d_cross_cpu(x_data, y_data, w_data, h_data, weight_function,
kernel_radius, pixels, x1, x2, y1, y2):
def _fast_2d_line_cpu(x_data, y_data, w_data, h_data, weight_function,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we need the cpu suffix? It is the only one that has it

Copy link
Owner

Choose a reason for hiding this comment

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

We can remove the _cpu and just name this _fast_2d_line()

@njit(parallel=True, fastmath=True)
def _fast_2d_cross_cpu(x_data, y_data, w_data, h_data, weight_function,
kernel_radius, pixels, x1, x2, y1, y2):
def _fast_2d_line_cpu(x_data, y_data, w_data, h_data, weight_function,
Copy link
Owner

Choose a reason for hiding this comment

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

We can remove the _cpu and just name this _fast_2d_line()

.interpolate_2d_line(data[x].to_numpy(), data[y].to_numpy(),
w_norm, h_data, kernel.w,
kernel.get_radius(), pixels, xlim[0],
xlim[1], ylim[0], ylim[1])
Copy link
Owner

Choose a reason for hiding this comment

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

The linter has picked up that lines 774/775 and 781-783 no longer have indentation that line up with the preceding lines. These need to be shifted left 1 space.

@ttricco ttricco merged commit 2dffe1b into ttricco:main Jul 8, 2025
1 check passed
@FathimaCSgithub FathimaCSgithub deleted the 2d-line branch July 9, 2025 04: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