Skip to content

Commit

Permalink
[pproc] improve warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
nikohansen committed Dec 11, 2024
1 parent cd6625b commit b0224b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cocopp/pproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def __init__(self, target_values, discretize=None):
if 11 < 3 and isinstance(target_values, TargetValues): # type cast passing behavior
return self # caveat: one might think a copy should be made
self.__dict__ = target_values.__dict__ # this is not a copy
return
return
self.target_values = sorted(target_values, reverse=True)
if discretize:
self.target_values = self._discretize(self.target_values)
Expand Down Expand Up @@ -2591,7 +2591,8 @@ def append(self, o, check_data_type='warn'):
if 1 < 3 and i.instancenumbers == o.instancenumbers and (
# max(i.instancenumbers) > 5 and
not i._data_differ(o)):
warnings.warn("same DataSet found twice,"
warnings.warn("same DataSet with {0} rows found twice,"
.format(len(o._evals))
+ " skipping the second one from "
+ str(o.indexFiles) + " with instances "
+ str(i.instancenumbers))
Expand Down

0 comments on commit b0224b2

Please sign in to comment.