AdvancedPhotonSource / tike

Repository for ptychography software
http://tike.readthedocs.io
Other
29 stars 15 forks source link

REF: Move clustering methods to a single module #249

Closed carterbox closed 1 year ago

carterbox commented 1 year ago

Purpose

Collect all of the clustering methods into a single module. This is to prevent circular imports when trying to use these methods inside the ptychography module.

Approach

I have renamed and moved all of the clustering related functsion into the cluster module. I have dropped the leading words "split" and "cluster" because these are redundant when using the full names of the functions i.e. tike.cluster.cluster_compact vs tike.cluster.compact.

In order to prevent API breaks, I have added wrapper functions with deprecation warnings for the cluster functions which were in the public API. This includes the batch_method parameter in PtychoParameters.

Pre-Merge Checklists

Submitter

Reviewer

carterbox commented 1 year ago

Thanks for catching that!