Skip to content

Commit

Permalink
fix: ✨ adding config class for storing module wide configs
Browse files Browse the repository at this point in the history
this will eventually be a file that can be stored either in the loopstructural python directory, or in the project folder. Currently none of the configs are used so its just a placeholder.
  • Loading branch information
Lachlan Grose committed Mar 21, 2022
1 parent 2e2d1c6 commit 9407ff7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions LoopStructural/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,20 @@

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

0 comments on commit 9407ff7

Please sign in to comment.