Skip to content

Commit

Permalink
SimsoptRequires decorator removed for classes
Browse files Browse the repository at this point in the history
  • Loading branch information
mbkumar committed Dec 23, 2021
1 parent 27f7d3d commit 572e3ba
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions src/simsopt/mhd/boozer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from typing import Union, Iterable

import numpy as np
from ..util.dev import SimsoptRequires

logger = logging.getLogger(__name__)

Expand All @@ -36,9 +35,6 @@

from .._core.graph_optimizable import Optimizable

# Temporarily commenting out the decorator till __instancecheck__ method is made working
# @SimsoptRequires(MPI is not None, "mpi4py needs to be installed for running booz-xform"


class Boozer(Optimizable):
"""
Expand Down
2 changes: 0 additions & 2 deletions src/simsopt/mhd/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,12 @@
from .._core.graph_optimizable import Optimizable
from .._core.util import ObjectiveFailure
from ..geo.surfacerzfourier import SurfaceRZFourier
from ..util.dev import SimsoptRequires
if MPI is not None:
from ..util.mpi import MpiPartition
else:
MpiPartition = None


@SimsoptRequires(MPI is not None, "mpi4py needs to be installed for running SPEC")
class Spec(Optimizable):
"""
This class represents the SPEC equilibrium code.
Expand Down
3 changes: 0 additions & 3 deletions src/simsopt/mhd/vmec.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
vmec = None
logger.debug(str(e))

from ..util.dev import SimsoptRequires
from .._core.graph_optimizable import Optimizable
from .._core.util import Struct, ObjectiveFailure
from ..geo.surfacerzfourier import SurfaceRZFourier
Expand Down Expand Up @@ -79,8 +78,6 @@
# control its own run history


# Temporarily commenting out the decorator till __instancecheck__ method is made working
#@SimsoptRequires(MPI is not None, "mpi4py needs to be installed for running VMEC")
class Vmec(Optimizable):
r"""
This class represents the VMEC equilibrium code.
Expand Down

0 comments on commit 572e3ba

Please sign in to comment.