Skip to content

Commit

Permalink
add warning if duplicates were removed
Browse files Browse the repository at this point in the history
  • Loading branch information
mathleur committed Nov 17, 2024
1 parent 4cc5555 commit d1304a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions polytope_feature/shapes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import copy
import math
import warnings
from abc import ABC, abstractmethod
from typing import List

Expand Down Expand Up @@ -67,6 +68,8 @@ class Select(Shape):
def __init__(self, axis, values, method=None):
self.axis = axis
self.values = unique(values)
if len(self.values) != len(values):
warnings.warn("Duplicate request values were removed")
self.method = method

def axes(self):
Expand Down

0 comments on commit d1304a9

Please sign in to comment.