Changeset 1225
- Timestamp:
- 04/19/23 17:53:56 (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/dissimilarity/density-distribution.py
r1224 r1225 12 12 EPSILON = 0.0001 13 13 14 def __init__(self, frams_module=None, density = 10, resolution = 3, reduce_empty=True, frequency=False, metric = 'emd', fixedZaxis=False, verbose=False):14 def __init__(self, frams_module=None, density = 10, resolution = 8, reduce_empty=True, frequency=False, metric = 'emd', fixedZaxis=False, verbose=False): 15 15 """ __init__ 16 16 Args: … … 245 245 s1, s2 = self.getSignaturesForPair(voxels1, voxels2) 246 246 247 if numvox1 != sum(s1[1]) or numvox2 != sum(s2[1]):248 print("Bad signature!")249 print("Base voxels fig1: ", numvox1, " fig2: ", numvox2)250 print("After reduction voxels fig1: ", sum(s1[1]), " fig2: ", sum(s2[1]))251 raise RuntimeError("Bad signature!")252 253 247 reduce_fun = self.reduceEmptySignatures_Frequency if self.frequency else self.reduceEmptySignatures_Density 254 248 if self.reduce_empty:
Note: See TracChangeset
for help on using the changeset viewer.