Commit a082e42c authored by Zolnierczuk, Piotr's avatar Zolnierczuk, Piotr
Browse files

fixes in fliplotlib, allowed to run without qt

parent dfc67c84
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ def plot_flipper_curve(axs, name='fpi', **kwargs):

    curve =  tof_curve(flipper, lmax, delam, points=points, sample_to_source=L1,
                       freq=freq, b_ext=B_ext, rewind=5)
    curve = np.roll(curve, shift)
    curve = np.roll(curve, int(shift))
    scurve = curve*flipper.current(lmax)*scale
    p = axs.plot(scurve,'-', lw=1, label='calc %s' % name)
    if compare is not None:
+2 −2
Original line number Diff line number Diff line
@@ -2,8 +2,8 @@
PySEN revision module
"""
import sys
__version__  = "2.1.0.dev8"
__date__     = "Mar 10, 2026"
__version__  = "2.1.0.dev9"
__date__     = "Mar 12, 2026"

def version(full=False):
    "get pysen version number"
+17 −10
Original line number Diff line number Diff line
@@ -3,6 +3,8 @@
Application main entry point/runner.
"""

try:

    from qtpy import QtWidgets
    from pysen.ui.NSEMainWindow import MainWindow

@@ -13,3 +15,8 @@ def nsegui():
        main_window = MainWindow()
        main_window.show()
        app.exec_()

except ImportError:
    def nsegui():
        "dummy gui app"
        print("qt not found")