File tree Expand file tree Collapse file tree 3 files changed +16
-15
lines changed Expand file tree Collapse file tree 3 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -271,6 +271,8 @@ def hybrid_cli_metrics():
271
271
272
272
metrics = MPI_OpenMP_Metrics (statistics )
273
273
274
+ print (config .metric_table )
275
+
274
276
# Create and save table
275
277
if not config .no_metric_table :
276
278
metric_table = metrics .plot_table (
Original file line number Diff line number Diff line change @@ -90,14 +90,13 @@ def _repr_html_(self):
90
90
91
91
return file_html (self .figure , INLINE , "" )
92
92
93
- def _repr_png_ (self ):
94
- if not environ .get ("PYPOP_HEADLESS" ):
93
+ def _repr_png_ (self , force = False ):
94
+ if not environ .get ("PYPOP_HEADLESS" ) and not force :
95
95
return None
96
96
97
- try :
98
- window_size = [int (1.1 * x ) for x in self ._plot_dims ]
99
- except AttributeError :
100
- window_size = (900 , 600 )
97
+ self .figure .min_border = 10
98
+
99
+ window_size = [1.1 * self .figure .plot_width , 1.1 * self .figure .plot_height ]
101
100
102
101
self .figure .toolbar_location = None
103
102
@@ -119,7 +118,7 @@ def save_html(self, path):
119
118
fh .write (imgcode )
120
119
121
120
def save_png (self , path ):
122
- imgdata = self ._repr_png_ ()
121
+ imgdata = self ._repr_png_ (force = True )
123
122
124
123
with open (path , "wb" ) as fh :
125
124
fh .write (imgdata )
@@ -511,7 +510,7 @@ def _build_plot(self):
511
510
tools = ["save" ],
512
511
min_border = 0 ,
513
512
aspect_ratio = 1.5 ,
514
- sizing_mode = "scale_width " ,
513
+ sizing_mode = "fixed " ,
515
514
x_range = x_axis_range ,
516
515
y_range = y_axis_range ,
517
516
title = self .title
Original file line number Diff line number Diff line change 30
30
include_package_data = True ,
31
31
entry_points = {
32
32
"console_scripts" : [
33
- "pypop-mpi-metrics = pypop.cli:mpi_cli_metrics" ,
34
- "pypop-hybrid-metrics = pypop.cli:hybrid_cli_metrics" ,
35
- "pypop-openmp-metrics = pypop.cli:openmp_cli_metrics" ,
36
- "pypop-preprocess = pypop.cli:preprocess_traces" ,
37
- "pypop-idealise-prv = pypop.cli:dimemas_idealise_cli" ,
38
- "pypop-copy-examples = pypop.cli:copy_examples" ,
39
- "pypop-gui = pypop.cli:pypop_gui" ,
33
+ "pypop-mpi-metrics = pypop.cli.cli :mpi_cli_metrics" ,
34
+ "pypop-hybrid-metrics = pypop.cli.cli :hybrid_cli_metrics" ,
35
+ "pypop-openmp-metrics = pypop.cli.cli :openmp_cli_metrics" ,
36
+ "pypop-preprocess = pypop.cli.cli :preprocess_traces" ,
37
+ "pypop-idealise-prv = pypop.cli.cli :dimemas_idealise_cli" ,
38
+ "pypop-copy-examples = pypop.cli.cli :copy_examples" ,
39
+ "pypop-gui = pypop.cli.cli :pypop_gui" ,
40
40
]
41
41
},
42
42
)
You can’t perform that action at this time.
0 commit comments