Skip to content

Commit

Permalink
[Formatting] New black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiserls committed May 28, 2024
1 parent d413f2d commit 91d1223
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
12 changes: 6 additions & 6 deletions eulerpi/core/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ class Model(ABC):
Examples of model implementations can be found in the :doc:`Example Models </examples>`.
"""

param_dim: Optional[
int
] = None #: The dimension of the parameter space of the model. It must be defined in the subclass.
data_dim: Optional[
int
] = None #: The dimension of the data space of the model. It must be defined in the subclass.
param_dim: Optional[int] = (
None #: The dimension of the parameter space of the model. It must be defined in the subclass.
)
data_dim: Optional[int] = (
None #: The dimension of the data space of the model. It must be defined in the subclass.
)

def __init_subclass__(cls, **kwargs):
"""Check if the required attributes are set."""
Expand Down
15 changes: 8 additions & 7 deletions eulerpi/core/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def sample_violin_plot(
num_vertical_grid_points: int = 100,
axis_labels: Optional[list[str]] = None,
) -> axes:

"""Creates an overview figure with one violin plot for each marginal distribution.
Can be used for parameters and simulation results and compares reference (or true underlying) and inferred values when possible.
Expand Down Expand Up @@ -261,9 +260,9 @@ def sample_violin_plot(
reference_left_bound_konf,
reference_right_bound_konf,
color=colorOrig,
label=r"$\Phi_\mathcal{" + variable_name + "}$"
if i == 0
else "",
label=(
r"$\Phi_\mathcal{" + variable_name + "}$" if i == 0 else ""
),
alpha=0.3,
)

Expand Down Expand Up @@ -371,9 +370,11 @@ def sample_violin_plot(
reconstructed_left_bound_konf,
reconstructed_right_bound_konf,
color=colorAppr,
label=r"$\Phi_{\hat{\mathcal{" + variable_name + "}}}$"
if i == 0
else "",
label=(
r"$\Phi_{\hat{\mathcal{" + variable_name + "}}}$"
if i == 0
else ""
),
alpha=0.3,
)

Expand Down
1 change: 0 additions & 1 deletion eulerpi/core/sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
Read the documentation of :func:`inference_mcmc <inference_mcmc>` to learn more about the available options for the MCMC based inference.
"""


import typing
from multiprocessing import get_context
from os import path
Expand Down
1 change: 1 addition & 0 deletions tests/test_dense_grid.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Test the slices functionality for each of the inference methods.
"""

import numpy as np
import pytest

Expand Down
1 change: 1 addition & 0 deletions tests/test_fixed_params.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Test the slices functionality for each of the inference methods.
"""

import importlib

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_slices.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Test the slices functionality for each of the inference methods.
"""

import numpy as np
import pytest

Expand Down

0 comments on commit 91d1223

Please sign in to comment.