Skip to content

Commit

Permalink
Trying SimsoptRequires in place of monty.dev.requires for MpiPartition
Browse files Browse the repository at this point in the history
  • Loading branch information
mbkumar committed Dec 23, 2021
1 parent 572e3ba commit 7e2906d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simsopt/util/mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from typing import Union
import numpy as np

from monty.dev import requires
from .dev import SimsoptRequires
try:
from mpi4py import MPI
except ImportError:
Expand Down Expand Up @@ -42,7 +42,7 @@ def log(level: int = logging.INFO):
logger = logging.getLogger(__name__)


@requires(MPI is not None, "mpi4py is not installed")
@SimsoptRequires(MPI is not None, "mpi4py is not installed")
class MpiPartition:
"""
This module contains functions related to dividing up the set of
Expand Down

0 comments on commit 7e2906d

Please sign in to comment.