Skip to content

Commit

Permalink
Revert moving out export_pandas as it is now used by web
Browse files Browse the repository at this point in the history
  • Loading branch information
tbarbette committed May 10, 2024
1 parent 0df78c0 commit 6932ae0
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 71 deletions.
1 change: 0 additions & 1 deletion npf/grapher.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ def __init__(self, fname):

def search(self, map_v):
return next((v for k, v in self.items() if re.search(k,str(map_v))), None)
return next((v for k, v in self.items() if re.search(k,str(map_v))), None)


def guess_type(d):
Expand Down
63 changes: 0 additions & 63 deletions npf/pipeline/export_pandas.py

This file was deleted.

4 changes: 0 additions & 4 deletions npf_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
import argparse
from typing import Dict
from npf.pipeline import pypost
from npf.pipeline import export_pandas


from npf.regression import *

Expand Down Expand Up @@ -73,15 +71,13 @@ def export_output(filename: str, series: Series , kind_series:Series,options):
return

pypost.execute_pypost(series)
export_pandas.export_pandas(options, series)

if options.do_time:
print(kind_series)
for test, build, kind_dataset in kind_series:
for kind, dataset in kind_dataset.items():
try:
pypost.execute_pypost(dataset)
export_pandas.export_pandas(options, dataset, fileprefix=kind)
except Exception as e:
print(f"While exporting dataset for kind {kind}:")
print(dataset)
Expand Down
3 changes: 0 additions & 3 deletions npf_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from npf import npf
from npf.pipeline import pypost
from npf.pipeline import export_pandas
from npf.regression import *
from npf.statistics import Statistics
from npf.test import Test, ScriptInitException
Expand Down Expand Up @@ -267,7 +266,6 @@ def main():
filename = args.graph_filename or build.result_path(test.filename, 'pdf')
series_with_history = [(test, build, all_results)] + g_series
pypost.execute_pypost(series=series_with_history)
export_pandas.export_pandas(options=args, series= series_with_history)
grapher.graph(series=series_with_history,
title=test.get_title(),
filename=filename,
Expand All @@ -279,7 +277,6 @@ def main():
continue
series_with_history = [(test, build, results)]
pypost.execute_pypost(series=series_with_history)
export_pandas.export_pandas(options=args, series= series_with_history, fileprefix=kind)
grapher.graph(series=series_with_history,
title=test.get_title(),
filename=filename,
Expand Down

0 comments on commit 6932ae0

Please sign in to comment.