Skip to content

Commit

Permalink
revised number of rows in eos precision plot (#242)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
jingslaw and pre-commit-ci[bot] authored Nov 26, 2024
1 parent 26d45bb commit f4aed10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aiida_sssp_workflow/cli/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import json
import random
from pathlib import Path
from math import ceil

import click
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -333,7 +334,7 @@ def inspect(node, output):
pass

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

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

0 comments on commit f4aed10

Please sign in to comment.