Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixgt3 #58

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 5 additions & 19 deletions GT3/gt3.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,39 +17,25 @@
from GT3.Neutrals import Neutrals
except ImportError:
pass

class gt3:

debug=False

def __init__(self, inputFile=None, preparedInput = None, mode="coreonly", **kwargs):
sys.dont_write_bytecode = True
# Create shotlabel as an attribute of plasma class
if "iolFlag" in kwargs:
iolFlag = kwargs['iolFlag']
else:
iolFlag = True
self.iolFlag = kwargs.get("iolFlag", True)
self.neutFlag = kwargs.get('neutFlag', True)
self.verbose = kwargs.get('verbose', False)
self.debug = True if kwargs.get('debug') else False

if "neutFlag" in kwargs:
neutFlag = kwargs['neutFlag']
else:
neutFlag = True
if "verbose" in kwargs:
verbose = kwargs['verbose']
else:
verbose = False
if kwargs.get("debug"):
self.debug = True
if inputFile:
self.inputFile = inputFile
if preparedInput:
self.inp = preparedInput
else:
self.inp = ReadInfile(self.inputFile, **kwargs)
self.core = Core(self.inp, debug=self.debug, **kwargs)
self.iolFlag = iolFlag
self.neutFlag = neutFlag
self.verbose = verbose
self.beamPowerFracOverride = None
self.ntrl_cpu_override = False

Expand All @@ -60,7 +46,7 @@ def __init__(self, inputFile=None, preparedInput = None, mode="coreonly", **kwar
self.neutpyLoaded = False

if mode == 'coreonly':
pass
pass


if mode == 'coreandsol':
Expand Down