Skip to content

Commit

Permalink
fix: moving config to own file
Browse files Browse the repository at this point in the history
  • Loading branch information
Lachlan Grose committed Mar 21, 2022
1 parent 59e130a commit 3dc2a19
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
17 changes: 0 additions & 17 deletions LoopStructural/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,3 @@

logger = getLogger(__name__)
logger.info("Imported LoopStructural")

class Config:
"""
Class to store configuration settings.
"""
__splay_fault_threshold = 30
__experimental = False
__default_interpolator = "FDI"
__default_nelements = 1e4
__default_solver = 'cg'

@property
def experimental():
return __experimental
@experimental.setter
def experimental(self, value):
__experimental = value
18 changes: 18 additions & 0 deletions LoopStructural/utils/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
class Config:
"""
Class to store configuration settings.
"""

__splay_fault_threshold = 30
__experimental = False
__default_interpolator = "FDI"
__default_nelements = 1e4
__default_solver = "cg"

@property
def experimental():
return __experimental

@experimental.setter
def experimental(self, value):
__experimental = value

0 comments on commit 3dc2a19

Please sign in to comment.