Skip to content

Commit f4aed10

Browse files
revised number of rows in eos precision plot (#242)
* revised number of rows in eos precision plot * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 26d45bb commit f4aed10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/aiida_sssp_workflow/cli/inspect.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import json
66
import random
77
from pathlib import Path
8+
from math import ceil
89

910
import click
1011
import matplotlib.pyplot as plt
@@ -333,7 +334,7 @@ def inspect(node, output):
333334
pass
334335

335336
# if there are 5 plots, need 3 rows, since the output_parametres is in the dict len(precision) / 2 is the number of rows
336-
rows = len(precision) // 2
337+
rows = ceil(len(results) / 2)
337338

338339
# create a figure with 2 columns and rows rows on a a4 size paper
339340
fig, axs = plt.subplots(rows, 2, figsize=(8.27, 11.69), dpi=100)

0 commit comments

Comments
 (0)