Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Feb 15, 2024
1 parent ca0c091 commit ca91fe9
Show file tree
Hide file tree
Showing 20 changed files with 97 additions and 32 deletions.
1 change: 1 addition & 0 deletions doc/examples/piv_as_real/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
It is used in other scripts in this directory.
"""

import argparse


Expand Down
1 change: 1 addition & 0 deletions doc/examples/piv_as_real/params_piv.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
./try_piv.py &
"""

from glob import glob

from fluidimage.topologies.piv import TopologyPIV
Expand Down
1 change: 1 addition & 0 deletions src/fluidimage/calcul/interpolate/griddata.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""

import numpy as np
from matplotlib import mlab
from scipy import interpolate
Expand Down
1 change: 1 addition & 0 deletions src/fluidimage/calcul/smooth_clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""

import numpy as np
from scipy.interpolate import interp2d
from scipy.ndimage import convolve
Expand Down
1 change: 1 addition & 0 deletions src/fluidimage/calibration/calib_cv.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
:private-members:
"""

import os

import matplotlib.pyplot as plt
Expand Down
4 changes: 3 additions & 1 deletion src/fluidimage/calibration/test_calib_cv.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ def construct_image_points(path, origin):

params = SimpleCircleGrid.create_default_params()
circle_grid = SimpleCircleGrid(params)
centers = circle_grid.detect_grid(image, origin, nx=7, ny=7, ds=50, debug=True)
centers = circle_grid.detect_grid(
image, origin, nx=7, ny=7, ds=50, debug=True
)

return centers

Expand Down
1 change: 0 additions & 1 deletion src/fluidimage/data_objects/tomo.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"""


import os
import shutil

Expand Down
1 change: 1 addition & 0 deletions src/fluidimage/executors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
servers
"""

import os
import trio

Expand Down
107 changes: 78 additions & 29 deletions src/fluidimage/gui/launcher/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,45 +8,79 @@
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################

from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QAction, QBrush, QColor, QConicalGradient,
QCursor, QFont, QFontDatabase, QGradient,
QIcon, QImage, QKeySequence, QLinearGradient,
QPainter, QPalette, QPixmap, QRadialGradient,
QTransform)
from PySide6.QtWidgets import (QApplication, QMainWindow, QMenu, QMenuBar,
QSizePolicy, QStatusBar, QVBoxLayout, QWidget)
from PySide6.QtCore import (
QCoreApplication,
QDate,
QDateTime,
QLocale,
QMetaObject,
QObject,
QPoint,
QRect,
QSize,
QTime,
QUrl,
Qt,
)
from PySide6.QtGui import (
QAction,
QBrush,
QColor,
QConicalGradient,
QCursor,
QFont,
QFontDatabase,
QGradient,
QIcon,
QImage,
QKeySequence,
QLinearGradient,
QPainter,
QPalette,
QPixmap,
QRadialGradient,
QTransform,
)
from PySide6.QtWidgets import (
QApplication,
QMainWindow,
QMenu,
QMenuBar,
QSizePolicy,
QStatusBar,
QVBoxLayout,
QWidget,
)


class Ui_MainWindow(object):
def setupUi(self, MainWindow):
if not MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow")
MainWindow.setObjectName("MainWindow")
MainWindow.resize(775, 901)
self.actionOpen = QAction(MainWindow)
self.actionOpen.setObjectName(u"actionOpen")
self.actionOpen.setObjectName("actionOpen")
self.actionTopologyPIV = QAction(MainWindow)
self.actionTopologyPIV.setObjectName(u"actionTopologyPIV")
self.actionTopologyPIV.setObjectName("actionTopologyPIV")
self.actionTopologyPreproc = QAction(MainWindow)
self.actionTopologyPreproc.setObjectName(u"actionTopologyPreproc")
self.actionTopologyPreproc.setObjectName("actionTopologyPreproc")
self.centralwidget = QWidget(MainWindow)
self.centralwidget.setObjectName(u"centralwidget")
self.centralwidget.setObjectName("centralwidget")
self.verticalLayout_2 = QVBoxLayout(self.centralwidget)
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.verticalLayout_2.setObjectName("verticalLayout_2")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QMenuBar(MainWindow)
self.menubar.setObjectName(u"menubar")
self.menubar.setObjectName("menubar")
self.menubar.setGeometry(QRect(0, 0, 775, 24))
self.menuFile = QMenu(self.menubar)
self.menuFile.setObjectName(u"menuFile")
self.menuFile.setObjectName("menuFile")
self.menuTopologies = QMenu(self.menubar)
self.menuTopologies.setObjectName(u"menuTopologies")
self.menuTopologies.setObjectName("menuTopologies")
self.menuComputations = QMenu(self.menubar)
self.menuComputations.setObjectName(u"menuComputations")
self.menuComputations.setObjectName("menuComputations")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QStatusBar(MainWindow)
self.statusbar.setObjectName(u"statusbar")
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)

self.menubar.addAction(self.menuFile.menuAction())
Expand All @@ -57,15 +91,30 @@ def setupUi(self, MainWindow):
self.retranslateUi(MainWindow)

QMetaObject.connectSlotsByName(MainWindow)

# setupUi

def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"MainWindow", None))
self.actionOpen.setText(QCoreApplication.translate("MainWindow", u"Open", None))
self.actionTopologyPIV.setText(QCoreApplication.translate("MainWindow", u"TopologyPIV", None))
self.actionTopologyPreproc.setText(QCoreApplication.translate("MainWindow", u"TopologyPreproc", None))
self.menuFile.setTitle(QCoreApplication.translate("MainWindow", u"File", None))
self.menuTopologies.setTitle(QCoreApplication.translate("MainWindow", u"Topologies", None))
self.menuComputations.setTitle(QCoreApplication.translate("MainWindow", u"Computations", None))
# retranslateUi
MainWindow.setWindowTitle(
QCoreApplication.translate("MainWindow", "MainWindow", None)
)
self.actionOpen.setText(
QCoreApplication.translate("MainWindow", "Open", None)
)
self.actionTopologyPIV.setText(
QCoreApplication.translate("MainWindow", "TopologyPIV", None)
)
self.actionTopologyPreproc.setText(
QCoreApplication.translate("MainWindow", "TopologyPreproc", None)
)
self.menuFile.setTitle(
QCoreApplication.translate("MainWindow", "File", None)
)
self.menuTopologies.setTitle(
QCoreApplication.translate("MainWindow", "Topologies", None)
)
self.menuComputations.setTitle(
QCoreApplication.translate("MainWindow", "Computations", None)
)

# retranslateUi
1 change: 0 additions & 1 deletion src/fluidimage/postproc/piv.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"""


import h5py


Expand Down
1 change: 1 addition & 0 deletions src/fluidimage/preproc/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
:private-members:
"""

import os
import sys

Expand Down
1 change: 1 addition & 0 deletions src/fluidimage/reconstruct/tomo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
"""

from .mlos import TomoMLOSCV
1 change: 1 addition & 0 deletions src/fluidimage/topologies/bos.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
:private-members:
"""

import json
import sys
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions src/fluidimage/topologies/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
:private-members:
"""

import inspect
import json

Expand Down
1 change: 1 addition & 0 deletions src/fluidimage/topologies/piv.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
:private-members:
"""

import copy
import json
import sys
Expand Down
1 change: 1 addition & 0 deletions src/fluidimage/topologies/preproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
:private-members:
"""

import copy
import json
import os
Expand Down
1 change: 1 addition & 0 deletions src/fluidimage/topologies/surface_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- example integrated in the documentation
"""

import json
import sys
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions src/fluidimage/works/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
optical_flow
"""

from .. import imread


Expand Down
1 change: 1 addition & 0 deletions src/fluidimage/works/preproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
:private-members:
"""

import sys

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions src/fluidimage/works/surface_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
:private-members:
"""

###############################################################################
# !/usr/bin/env python #
# -*- coding: utf-8 -*- #
Expand Down

0 comments on commit ca91fe9

Please sign in to comment.