Skip to content

Commit c154f16

Browse files
committed
Upgrade version
1 parent ae50ac9 commit c154f16

File tree

6 files changed

+18
-8
lines changed

6 files changed

+18
-8
lines changed

CHANGELOGS.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Change Logs
22
===========
33

4+
0.7.9
5+
+++++
6+
47
0.7.8
58
+++++
69

_doc/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,8 @@ The function replaces dynamic dimensions defined as strings by
239239
Older versions
240240
==============
241241

242+
* `0.7.9 <../v0.7.9/index.html>`_
242243
* `0.7.8 <../v0.7.8/index.html>`_
243-
* `0.7.7 <../v0.7.7/index.html>`_
244-
* `0.7.6 <../v0.7.6/index.html>`_
245244
* `0.6.3 <../v0.6.3/index.html>`_
246245
* `0.5.0 <../v0.5.0/index.html>`_
247246
* `0.4.4 <../v0.4.4/index.html>`_

onnx_diagnostic/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
Functions, classes to dig into a model when this one is right, slow, wrong...
44
"""
55

6-
__version__ = "0.7.8"
6+
__version__ = "0.7.9"
77
__author__ = "Xavier Dupré"

onnx_diagnostic/_command_lines_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,13 +850,13 @@ def get_parser_agg() -> ArgumentParser:
850850
"--filter-in",
851851
default="",
852852
help="adds a filter to filter in data, syntax is\n"
853-
'``"<column1>:<value1>;<value2>/<column2>:<value3>"`` ...',
853+
'``"<column1>:<value1>;<value2>//<column2>:<value3>"`` ...',
854854
)
855855
parser.add_argument(
856856
"--filter-out",
857857
default="",
858858
help="adds a filter to filter out data, syntax is\n"
859-
'``"<column1>:<value1>;<value2>/<column2>:<value3>"`` ...',
859+
'``"<column1>:<value1>;<value2>//<column2>:<value3>"`` ...',
860860
)
861861
parser.add_argument(
862862
"--sbs",

onnx_diagnostic/helpers/_log_helper.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,11 @@ def _f(fmt):
118118
if isinstance(fmt, str):
119119
cols = fmt.split("//")
120120
for c in cols:
121-
assert ":" in c, f"Unexpected value {c!r} in fmt={fmt!r}"
121+
assert ":" in c, f"Unexpected value {c!r} in fmt={fmt!r}, cols={cols!r}"
122122
spl = c.split(":")
123-
assert len(spl) == 2, f"Unexpected value {c!r} in fmt={fmt!r}"
123+
assert (
124+
len(spl) == 2
125+
), f"Unexpected value {c!r} in fmt={fmt!r}, spl={spl}, cols={cols}"
124126
name, fil = spl
125127
cond[name] = set(fil.split(";"))
126128
return cond

onnx_diagnostic/helpers/log_helper.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import enum
22
import io
3+
import os
34
import pprint
45
import re
56
import warnings
@@ -270,6 +271,10 @@ def _make_loop(cls, ensemble, verbose):
270271
def _to_images_bar(
271272
self, verbose: int = 0, merge: bool = True, title_suffix: Optional[str] = None
272273
) -> List[bytes]:
274+
"""
275+
Environment variable ``FIGSIZEH`` can be set to increase the
276+
graph height. Default is 1.0.
277+
"""
273278
assert merge, f"merge={merge} not implemented yet"
274279
import matplotlib.pyplot as plt
275280

@@ -279,7 +284,8 @@ def _to_images_bar(
279284
n_cols = 3
280285
nn = df.shape[1] // n_cols
281286
nn += int(df.shape[1] % n_cols != 0)
282-
fig, axs = plt.subplots(nn, n_cols, figsize=(6 * n_cols, nn * df.shape[0] / 5))
287+
ratio = float(os.environ.get("FIGSIZEH", "1"))
288+
fig, axs = plt.subplots(nn, n_cols, figsize=(6 * n_cols, nn * df.shape[0] / 3 * ratio))
283289
pos = 0
284290
imgs = []
285291
for c in self._make_loop(df.columns, verbose):

0 commit comments

Comments
 (0)