algorithms icon indicating copy to clipboard operation
algorithms copied to clipboard

Fix remove_duplicates function to handle binary values

Open ca20110820 opened this issue 1 year ago • 0 comments

This PR addresses an issue (originally found in unit test run) where the binary values for 1 and True (0 and False) are treated equally for this function.

Changes

  • Updated implementation of remove_duplicates(array) function.
  • Updated the unit tests for remove_duplicates(array) function.
  • Added docstring to reflect the improved behavior and provide clear examples.
  • Fixed the subsequent error in test_summarize_ranges() method in the same test script (test_array.py)

ca20110820 avatar Apr 14 '24 03:04 ca20110820