Ticket #155 (new enhancement)

Opened 5 years ago

Last modified 5 years ago

improve the gridpts algorithm to ignore obvious duplicates

Reported by: mmckerns Owned by: mmckerns
Priority: minor Milestone: mystic-0.3a
Component: mystic.math Keywords:
Cc:

Description

improve the gridpts algorithm to ignore obvious duplicates

For example, repeat points occur (so should ignore) when:

  • nbins[:] = 1
  • upper[:] = lower[:]

Change History

comment:1 Changed 5 years ago by mmckerns

Code should go something like this:

bins.append( newbin )

# Hence, we have, for example:  bins = [[ A1, B1, C1], [A1, B1, C1], [A2, B1, C1], ...]

# ... and we filter for existing bins
rbins = [bin[:-1] for bin in bins]
if newbin[:-1] not in rbins:
  bin.append( newbin )

comment:2 Changed 5 years ago by mmckerns

  • Milestone changed from mystic-0.2a2 to mystic-0.2a3
Note: See TracTickets for help on using tickets.