Skip to content

Commit

Permalink
Update process_multiSample.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yiwang12 authored Nov 18, 2024
1 parent 6353650 commit ac5bed3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mNSF/process_multiSample.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ def get_chunked_data(X, Y, nchunk, method='random'):
if method == 'spatial':
# Calculate grid size for approximately equal chunks
grid_size = int(np.sqrt(nchunk))
x_coords = X[:, 0]
y_coords = X[:, 1]
x_coords = X.iloc[:, 0]
y_coords = X.iloc[:, 1]

# Create bins for x and y coordinates
x_bins = np.linspace(np.min(x_coords), np.max(x_coords), grid_size + 1)
Expand Down

0 comments on commit ac5bed3

Please sign in to comment.