Skip to content

Diffusion #8

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

Open
wants to merge 65 commits into
base: main
Choose a base branch
from
Open

Diffusion #8

wants to merge 65 commits into from

Conversation

edeno
Copy link
Contributor

@edeno edeno commented May 5, 2025

No description provided.

@edeno edeno requested a review from Copilot May 8, 2025 14:39
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request refactors environment attribute names and method calls for improved consistency and clarity while adding a new helper function to calculate the random walk movement variance. Key changes include switching from fit_place_grid to fit, updating attribute names from distance_between_nodes_/track_graphDD to distance_between_bins/track_graph_nd_, and renaming DataFrame columns and parameters for clarity.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/non_local_detector/models/base.py Updated method call from fit_place_grid to fit to align with refactored API
src/non_local_detector/continuous_state_transitions.py Replaced attribute names (distance_between_nodes_ to distance_between_bins and track_graphDD to track_graph_nd_) for consistency
src/non_local_detector/analysis/distance1D.py Updated DataFrame column names and parameter renaming to reflect the new API
Comments suppressed due to low confidence (4)

src/non_local_detector/continuous_state_transitions.py:201

  • Ensure the new attribute name 'track_graph_nd_' is used consistently and update any associated documentation or comments to avoid confusion with the old name.
self.environment.track_graph_nd_, distance="distance"

src/non_local_detector/analysis/distance1D.py:425

  • [nitpick] The parameter renaming to 'track_graph_bin_centers_edges' improves clarity; ensure this naming is uniformly applied across all function definitions and calls.
track_graph_bin_centers_edges: nx.Graph,

src/non_local_detector/continuous_state_transitions.py:190

  • Verify that 'distance_between_bins' is consistently used across the project as it replaces the previous 'distance_between_nodes_' property.
.pdf(self.environment.distance_between_bins.flat)

src/non_local_detector/analysis/distance1D.py:88

  • Confirm that the new column names 'pos_x' and 'pos_y' are correct and consistently used in the codebase and documentation.
env.get_bin_center_dataframe().loc[:, ["pos_x", "pos_y"]].to_numpy()

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

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.

1 participant