Skip to content

Commit

Permalink
Run isort --profile=black
Browse files Browse the repository at this point in the history
  • Loading branch information
lbianchi-lbl committed Sep 29, 2023
1 parent c198ac2 commit 66ea86d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
4 changes: 2 additions & 2 deletions foqus_lib/framework/surrogate/ALAMO.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@
import threading
import time
import traceback
from multiprocessing.connection import Client

import numpy as np

from multiprocessing.connection import Client

from foqus_lib.framework.listen import listen
from foqus_lib.framework.session.session import exePath

Expand All @@ -61,6 +60,7 @@
except:
pass


def checkAvailable():
"""Plug-ins should have this function to check availability of any
additional required software. If requirements are not available
Expand Down
4 changes: 2 additions & 2 deletions foqus_lib/framework/uq/LocalExecutionModule.py
Original file line number Diff line number Diff line change
Expand Up @@ -1135,9 +1135,9 @@ def run(self):
# print outputStatus
emulatorFileName = "emulatorData"
self.data.writeToPsuade(emulatorFileName)
from .RSAnalyzer import (
from .RSAnalyzer import ( # importing at top creates circular import
RSAnalyzer,
) # importing at top creates circular import
)

LocalExecutionModule.runStarted = True
Common.initFolder(RSAnalyzer.dname)
Expand Down
6 changes: 3 additions & 3 deletions foqus_lib/gui/main/settingsFrame.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
from io import StringIO
from pprint import pprint

from foqus_lib.framework.uq.LocalExecutionModule import *
from foqus_lib.gui.main.turbineConfig import *

from PyQt5 import QtCore, uic
from PyQt5.QtWidgets import QFileDialog, QInputDialog, QMessageBox

from foqus_lib.framework.uq.LocalExecutionModule import *
from foqus_lib.gui.main.turbineConfig import *

if os.name == "nt":
import win32process

Expand Down
1 change: 0 additions & 1 deletion foqus_lib/gui/model/dmfUploadDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import os
import platform
import subprocess

from io import StringIO
from urllib.request import urlopen

Expand Down
10 changes: 4 additions & 6 deletions foqus_lib/gui/ouu/ouuSetupFrame.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@
import matplotlib
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.figure import Figure

from foqus_lib.framework.listen import listen
from foqus_lib.framework.uq.flowsheetToUQModel import flowsheetToUQModel

from .nodeToUQModel import nodeToUQModel

from PyQt5 import QtCore, uic
from PyQt5.QtGui import QCursor
from PyQt5.QtWidgets import (
Expand All @@ -41,14 +35,18 @@
QVBoxLayout,
)

from foqus_lib.framework.listen import listen
from foqus_lib.framework.ouu.OUU import OUU
from foqus_lib.framework.uq.Common import *
from foqus_lib.framework.uq.flowsheetToUQModel import flowsheetToUQModel
from foqus_lib.framework.uq.LocalExecutionModule import *

# from foqus_lib.gui.uq.Preview import *
# from InputPriorTable import InputPriorTable
from foqus_lib.gui.common.InputPriorTable import InputPriorTable

from .nodeToUQModel import nodeToUQModel

mypath = os.path.dirname(__file__)
_ouuSetupFrameUI, _ouuSetupFrame = uic.loadUiType(
os.path.join(mypath, "ouuSetupFrame.ui")
Expand Down

0 comments on commit 66ea86d

Please sign in to comment.