Skip to content

Commit

Permalink
fix same value issue for extended metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
prohde committed Mar 4, 2022
1 parent 9ee5850 commit 96b6887
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions diefpy/dief.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ def performance_of_approaches_with_dieft(traces: np.ndarray, metrics: np.ndarray
if a not in np.unique(dieft_res['approach']):
continue

dieft_ = dieft_res[dieft_res['approach'] == a]['dieft'][0]
submetric = metrics[metrics['approach'] == a]
dieft_ = dieft_res[(dieft_res['approach'] == a) & (dieft_res['test'] == t)]['dieft'][0]
submetric = metrics[(metrics['approach'] == a) & (metrics['test'] == t)]

throughput = submetric['comp'][0] / submetric['totaltime'][0]
invtfft = 1 / submetric['tfft'][0]
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ def readme():


setup(name='diefpy',
version='1.0.3',
version='1.0.4',
packages=['diefpy'],
license='MIT',
author='Philipp D. Rohde, Nikoleta Themeliotou',
author_email='[email protected]',
url='https://github.com/SDM-TIB/diefpy',
download_url='https://github.com/SDM-TIB/diefpy/archive/refs/tags/v1.0.3.tar.gz',
download_url='https://github.com/SDM-TIB/diefpy/archive/refs/tags/v1.0.4.tar.gz',
description='Python package for computing diefficiency metrics dief@t and dief@k.',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 96b6887

Please sign in to comment.