Skip to content

add test for dataclusters #54

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

Merged
merged 13 commits into from
Aug 10, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove block
  • Loading branch information
stevenhua0320 committed Aug 9, 2024
commit 17582f02f5231f6c3d0916778168b2a3d48523ed
10 changes: 1 addition & 9 deletions src/diffpy/srmise/dataclusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,8 @@ def clear(self):
"""
Clear all data and reset the cluster object to a transient initial state.

This method performs the following steps:
- Remove all the points from the clusters list.
- Reset the x and y value sequences to empty NumPy arrays.
- Reset dataorder list to empty NumPy arrays.
- Reset the resolution to 0.
- Reset current_idx to 0.
- Reset lastcluster_idx and lastpoint_idx to None.
- Reset status to INIT.

The purpose of this method is to provide a clean state before creating new clustering operations.
The object is updated in-place and no new instance is returned.

Returns
-------
Expand Down
Loading