gui.py
def fOpenObject():
    """Opens one of the 4 central objects from file and loads up global objects from
    that."""
    name = QtWidgets.QFileDialog.getOpenFileName(mw,'Open SDE File','',"SDE files (*.sde)")
    name = name[0].split('/')[-1]
    if name != '':
        print("Open, name: ",name)
    try:
        with open(name,'rb') as input:
            openedObj = pickle.load(input)
        try:
            SDEtype = openedObj.SDEtype
            print("openedObj: ",openedObj)
        except AttributeError:
            print("That's not a SDE-object.")
            return
    except FileNotFoundError:
        return

    if SDEtype == "SDEprob":
        print("Problem realization realization object")
        fOpenProb(openedObj)
    elif SDEtype == "SDEspec":
        print("Problem specification object.")
        fOpenSpec(openedObj)
    else:
        print("Else SDEtype: ",SDEtype)
Opens one of the 4 central objects from file and loads up global objects from
    that.
Opens one of the 4 central objects from file and loads up global objects from
that.
Opens one of the 4 central objects from file and loads up global objects from that .
def fOpenObject():
    name = QtWidgets.QFileDialog.getOpenFileName(mw,'Open SDE File','',"SDE files (*.sde)")
    name = name[0].split('/')[-1]
    if name != '':
        print("Open, name: ",name)
    try:
        with open(name,'rb') as input:
            openedObj = pickle.load(input)
        try:
            SDEtype = openedObj.SDEtype
            print("openedObj: ",openedObj)
        except AttributeError:
            print("That's not a SDE-object.")
            return
    except FileNotFoundError:
        return
    if SDEtype == "SDEprob":
        print("Problem realization realization object")
        fOpenProb(openedObj)
    elif SDEtype == "SDEspec":
        print("Problem specification object.")
        fOpenSpec(openedObj)
    else:
        print("Else SDEtype: ",SDEtype)
def fOpenObject ( ) : name = QtWidgets . QFileDialog . getOpenFileName ( mw , 'Open SDE File' , '' , "SDE files (*.sde)" ) name = name [ 0 ] . split ( '/' ) [ - 1 ] if name != '' : print ( "Open, name: " , name ) try : with open ( name , 'rb' ) as input : openedObj = pickle . load ( input ) try : SDEtype = openedObj . SDEtype print ( "openedObj: " , openedObj ) except AttributeError : print ( "That's not a SDE-object." ) return except FileNotFoundError : return if SDEtype == "SDEprob" : print ( "Problem realization realization object" ) fOpenProb ( openedObj ) elif SDEtype == "SDEspec" : print ( "Problem specification object." ) fOpenSpec ( openedObj ) else : print ( "Else SDEtype: " , SDEtype )
Opens one of the 4 central objects from file and loads up global objects from
that.
Opens one of the 4 central objects from file and loads up global objects from that .
"""Opens one of the 4 central objects from file and loads up global objects from
    that."""