Skip to content

Commit

Permalink
🐛 Fixes a sampling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tfalque.ext committed Jan 26, 2022
1 parent 211ad04 commit d1c6518
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ DOCKER_ORGANIZATION = thibaultfalque

# The version of the package to build.

VERSION = 1.1
VERSION = 1.1.2


# The directory of the unit tests for the package to build.
Expand Down
2 changes: 1 addition & 1 deletion metrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
__summary__ = 'rEproducible sofTware peRformance analysIs in perfeCt Simplicity'
__keywords__ = 'reproducible software performance analysis'
__uri__ = 'https://github.com/crillab/metrics'
__version__ = '1.1.1'
__version__ = '1.1.2'
__author__ = 'Thibault Falque, Romain Wallon, Hugues Wattez'
__email__ = '[email protected], [email protected], [email protected]'

Expand Down
4 changes: 2 additions & 2 deletions metrics/wallet/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def default_explode(df, samp, objective):
times = _make_list(d.pop('timestamp_list'))
bounds = _make_list(d.pop('bound_list'))

if objective(d.pop('objective',None)):
if objective(d.pop('objective', None)):
bounds = [-x for x in bounds]

if len(bounds) != len(times):
Expand All @@ -643,7 +643,7 @@ def default_explode(df, samp, objective):
l = []
i = 0
for j in range(len(bounds)):
while times[j] > samp[i]:
while i < len(samp) and times[j] > samp[i]:
d2 = d.copy()
d2['status'] = d2['status'] if d2['cpu_time'] < samp[i] else 'INCOMPLETE'
d2['success'] = d2['status'] == 'COMPLETE'
Expand Down

0 comments on commit d1c6518

Please sign in to comment.