mwxlib 0.79.9__py3-none-any.whl → 0.80.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mwxlib might be problematic. Click here for more details.
- mwx/controls.py +3 -2
- mwx/framework.py +2 -2
- mwx/graphman.py +10 -24
- mwx/matplot2.py +4 -5
- mwx/matplot2g.py +6 -11
- mwx/matplot2lg.py +6 -11
- mwx/utilus.py +6 -5
- {mwxlib-0.79.9.dist-info → mwxlib-0.80.0.dist-info}/METADATA +1 -1
- mwxlib-0.80.0.dist-info/RECORD +22 -0
- mwxlib-0.79.9.dist-info/RECORD +0 -22
- {mwxlib-0.79.9.dist-info → mwxlib-0.80.0.dist-info}/LICENSE +0 -0
- {mwxlib-0.79.9.dist-info → mwxlib-0.80.0.dist-info}/WHEEL +0 -0
- {mwxlib-0.79.9.dist-info → mwxlib-0.80.0.dist-info}/top_level.txt +0 -0
mwx/controls.py
CHANGED
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
Author: Kazuya O'moto <komoto@jeol.co.jp>
|
|
6
6
|
"""
|
|
7
7
|
from itertools import chain
|
|
8
|
-
import numpy as np
|
|
9
|
-
from numpy import nan, inf
|
|
10
8
|
import wx
|
|
11
9
|
import wx.lib.platebtn as pb
|
|
12
10
|
import wx.lib.scrolledpanel as scrolled
|
|
@@ -15,6 +13,9 @@ from . import images
|
|
|
15
13
|
from .utilus import SSM
|
|
16
14
|
from .framework import pack, Menu, CtrlInterface
|
|
17
15
|
|
|
16
|
+
import numpy as np
|
|
17
|
+
from numpy import nan, inf
|
|
18
|
+
|
|
18
19
|
|
|
19
20
|
class Param(object):
|
|
20
21
|
"""Standard Parameter
|
mwx/framework.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Author: Kazuya O'moto <komoto@jeol.co.jp>
|
|
6
6
|
"""
|
|
7
|
-
__version__ = "0.
|
|
7
|
+
__version__ = "0.80.0"
|
|
8
8
|
__author__ = "Kazuya O'moto <komoto@jeol.co.jp>"
|
|
9
9
|
|
|
10
10
|
from functools import wraps, partial
|
|
@@ -952,7 +952,7 @@ class ShellFrame(MiniFrame):
|
|
|
952
952
|
stdout=self.__shell.interp.stdout,
|
|
953
953
|
skip=[Debugger.__module__,
|
|
954
954
|
EventMonitor.__module__,
|
|
955
|
-
|
|
955
|
+
FSM.__module__,
|
|
956
956
|
'fnmatch', 'warnings', 'bdb', 'pdb',
|
|
957
957
|
'wx.core', 'wx.lib.eventwatcher',
|
|
958
958
|
],
|
mwx/graphman.py
CHANGED
|
@@ -19,20 +19,14 @@ import platform
|
|
|
19
19
|
import re
|
|
20
20
|
import wx
|
|
21
21
|
from wx import aui
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
from . import framework as mwx
|
|
31
|
-
from .utilus import funcall as _F
|
|
32
|
-
from .controls import ControlPanel, Icon
|
|
33
|
-
from .framework import CtrlInterface
|
|
34
|
-
from .matplot2g import GraphPlot
|
|
35
|
-
from .matplot2lg import Histogram
|
|
22
|
+
|
|
23
|
+
from . import framework as mwx
|
|
24
|
+
from .utilus import funcall as _F
|
|
25
|
+
from .controls import ControlPanel, Icon
|
|
26
|
+
from .framework import CtrlInterface
|
|
27
|
+
from .matplot2g import GraphPlot
|
|
28
|
+
from .matplot2lg import Histogram
|
|
29
|
+
|
|
36
30
|
from matplotlib import cm
|
|
37
31
|
from matplotlib import colors
|
|
38
32
|
## from matplotlib import pyplot as plt
|
|
@@ -1681,7 +1675,7 @@ class Frame(mwx.Frame):
|
|
|
1681
1675
|
if flush:
|
|
1682
1676
|
del self.graph[:]
|
|
1683
1677
|
del self.output[:]
|
|
1684
|
-
for name in list(self.plugins): #
|
|
1678
|
+
for name in list(self.plugins): # plugins:dict mutates during iteration
|
|
1685
1679
|
self.unload_plug(name)
|
|
1686
1680
|
|
|
1687
1681
|
self.statusbar("Loading session from {!r}...".format(f))
|
|
@@ -1784,15 +1778,7 @@ if __name__ == "__main__":
|
|
|
1784
1778
|
## frm.load_plug("demo.template.py", show=1, force=1)
|
|
1785
1779
|
## frm.load_plug("demo/template.py", show=1, force=1)
|
|
1786
1780
|
|
|
1787
|
-
frm.load_plug(r"C:\usr\home\lib\python\demo\template.py", show=1, dock=
|
|
1788
|
-
|
|
1789
|
-
## sys.path.append(r"C:\usr\home\lib\python\Lib\wxpyNautilus\plugins")
|
|
1790
|
-
## frm.require("viewfft")
|
|
1791
|
-
## frm.require("viewframe")
|
|
1792
|
-
## frm.require("lineprofile")
|
|
1793
|
-
## frm.require("ffmpeg_viewer")
|
|
1794
|
-
## frm.load_plug("randn.py", show=1, dock=0)
|
|
1781
|
+
frm.load_plug(r"C:\usr\home\lib\python\demo\template.py", show=1, dock=4)
|
|
1795
1782
|
|
|
1796
|
-
frm.shellframe.debugger.skip.remove(mwx.FSM.__module__)
|
|
1797
1783
|
frm.Show()
|
|
1798
1784
|
app.MainLoop()
|
mwx/matplot2.py
CHANGED
|
@@ -4,12 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
Author: Kazuya O'moto <komoto@jeol.co.jp>
|
|
6
6
|
"""
|
|
7
|
-
import sys
|
|
8
7
|
import wx
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
from . import framework as mwx
|
|
8
|
+
|
|
9
|
+
from . import framework as mwx
|
|
10
|
+
|
|
13
11
|
import matplotlib; matplotlib.use('wxagg') # noqa
|
|
14
12
|
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas
|
|
15
13
|
from matplotlib.backends.backend_wxagg import NavigationToolbar2WxAgg as Toolbar
|
|
@@ -21,6 +19,7 @@ from matplotlib.figure import Figure
|
|
|
21
19
|
from matplotlib import cm
|
|
22
20
|
import numpy as np
|
|
23
21
|
|
|
22
|
+
|
|
24
23
|
## state constants
|
|
25
24
|
NORMAL = 'Normal'
|
|
26
25
|
DRAGGING = '-dragging'
|
mwx/matplot2g.py
CHANGED
|
@@ -5,18 +5,13 @@
|
|
|
5
5
|
Author: Kazuya O'moto <komoto@jeol.co.jp>
|
|
6
6
|
"""
|
|
7
7
|
import traceback
|
|
8
|
-
import sys
|
|
9
8
|
import wx
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
from . import framework as mwx
|
|
17
|
-
from .utilus import funcall as _F
|
|
18
|
-
from .matplot2 import MatplotPanel
|
|
19
|
-
from .matplot2 import NORMAL, DRAGGING, PAN, ZOOM, MARK, LINE, REGION
|
|
9
|
+
|
|
10
|
+
from . import framework as mwx
|
|
11
|
+
from .utilus import funcall as _F
|
|
12
|
+
from .matplot2 import MatplotPanel
|
|
13
|
+
from .matplot2 import NORMAL, DRAGGING, PAN, ZOOM, MARK, LINE, REGION
|
|
14
|
+
|
|
20
15
|
from matplotlib import cm
|
|
21
16
|
from matplotlib import patches
|
|
22
17
|
from PIL import Image
|
mwx/matplot2lg.py
CHANGED
|
@@ -5,18 +5,13 @@
|
|
|
5
5
|
Author: Kazuya O'moto <komoto@jeol.co.jp>
|
|
6
6
|
"""
|
|
7
7
|
from itertools import chain
|
|
8
|
-
import sys
|
|
9
8
|
import wx
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
from . import framework as mwx
|
|
17
|
-
from .utilus import funcall as _F
|
|
18
|
-
from .matplot2 import MatplotPanel
|
|
19
|
-
from .matplot2 import NORMAL, MARK, LINE, REGION
|
|
9
|
+
|
|
10
|
+
from . import framework as mwx
|
|
11
|
+
from .utilus import funcall as _F
|
|
12
|
+
from .matplot2 import MatplotPanel
|
|
13
|
+
from .matplot2 import NORMAL, MARK, LINE, REGION
|
|
14
|
+
|
|
20
15
|
from matplotlib import patches
|
|
21
16
|
import numpy as np
|
|
22
17
|
from scipy import signal
|
mwx/utilus.py
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
Author: Kazuya O'moto <komoto@jeol.co.jp>
|
|
6
6
|
"""
|
|
7
|
-
from collections import OrderedDict
|
|
8
7
|
from functools import wraps
|
|
9
8
|
from bdb import BdbQuit
|
|
10
9
|
import traceback
|
|
@@ -396,7 +395,7 @@ def get_rootpath(f):
|
|
|
396
395
|
## Finite State Machine
|
|
397
396
|
## --------------------------------
|
|
398
397
|
|
|
399
|
-
class SSM(
|
|
398
|
+
class SSM(dict):
|
|
400
399
|
"""Single State Machine/Context of FSM
|
|
401
400
|
"""
|
|
402
401
|
def __call__(self, event, *args, **kwargs):
|
|
@@ -664,7 +663,7 @@ class FSM(dict):
|
|
|
664
663
|
context = self[state]
|
|
665
664
|
ast = []
|
|
666
665
|
bra = []
|
|
667
|
-
for event in list(context):
|
|
666
|
+
for event in list(context): # context mutates during iteration
|
|
668
667
|
if re.search(r"\[.+\]", event):
|
|
669
668
|
bra.append((event, context.pop(event))) # event key has '[]'
|
|
670
669
|
elif '*' in event or '?' in event:
|
|
@@ -709,8 +708,10 @@ class FSM(dict):
|
|
|
709
708
|
continue
|
|
710
709
|
for act in transaction[1:]:
|
|
711
710
|
self.unbind(event, act, k)
|
|
712
|
-
|
|
713
|
-
|
|
711
|
+
## cleanup
|
|
712
|
+
for k, v in list(self.items()): # self mutates during iteration
|
|
713
|
+
if not v:
|
|
714
|
+
del self[k]
|
|
714
715
|
|
|
715
716
|
def define(self, event, action=None, state=None, state2=None):
|
|
716
717
|
self.unbind(event, None, state)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
mwx/__init__.py,sha256=CxhKHOhig62F8p6GvP5gii-VvQtSjp9yWJpHvC_Kans,2592
|
|
2
|
+
mwx/controls.py,sha256=d5ZRw21nXxV06QHV5Y9t85Lqm3pLZRoPS27YknC_H54,42455
|
|
3
|
+
mwx/framework.py,sha256=m4iGorLqvdUnsr_6aP3uECEMe55WXAcc5vZY2EdRL98,69041
|
|
4
|
+
mwx/graphman.py,sha256=M5hUEW4hZDlXTOvROab2te68HWb6OVgxakz8Z4iEEy0,69214
|
|
5
|
+
mwx/images.py,sha256=9e8X7OpJ6Z3fF3ez17P_qk2D1NMO10-lN8TCtulAqT0,46248
|
|
6
|
+
mwx/matplot2.py,sha256=OnG33VYvNY9tPbTiUdhM1bibnMwx8Z91hq2Wv7az78s,36000
|
|
7
|
+
mwx/matplot2g.py,sha256=yfF4r6juclU1I1k41lGb_VwxRmp0ktuD8az-wQ26MsE,67727
|
|
8
|
+
mwx/matplot2lg.py,sha256=Dnz_U7K_QkPmsJd18WzZ6PkaTOtWu_IwOgkfEdJv4d0,27606
|
|
9
|
+
mwx/mgplt.py,sha256=49_wpFZUEKErQmtobqrlNKDjWlAsdLft-izlqSyGPD0,6878
|
|
10
|
+
mwx/nutshell.py,sha256=EO4s_67Dk4EiI7h-3vHOzWyI9WnaXl4QQmsVkF7s5Xk,133557
|
|
11
|
+
mwx/utilus.py,sha256=3VaUX_hclVLYixOyDC-4gxxug9_4kMzCTQcDuHs3REA,34863
|
|
12
|
+
mwx/wxmon.py,sha256=Odmh13Ek4oJo9V5uFCTemoWlsPyZt4ITTmYZiKl_BKI,11405
|
|
13
|
+
mwx/wxpdb.py,sha256=WweNxRCaJa3DAO8mkpU57sluTk4oxBEZm44AVBR4vSI,18700
|
|
14
|
+
mwx/wxwil.py,sha256=BUfEF0Nc1E-mVC3Vdz6k1E-2s5J0PO6qEzRQ6lfyePI,5246
|
|
15
|
+
mwx/wxwit.py,sha256=M_jRGJOZge2B4Cq1OsAHqnGjeg56UI-v1BolDybPR-o,7246
|
|
16
|
+
mwx/py/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
|
+
mwx/py/filling.py,sha256=NnQnfUVol-Nz4QYZUKFIyRX-Yxp54m5n54Yxza3Iwho,16655
|
|
18
|
+
mwxlib-0.80.0.dist-info/LICENSE,sha256=PGtRKCaTkmUDlBQwpptJAxJtdqxIUtAmdBsaT9nUVkA,1091
|
|
19
|
+
mwxlib-0.80.0.dist-info/METADATA,sha256=8cua-4t5PPXlX-lsmZ587VDduSYK6DdMSieqonWiLQg,1995
|
|
20
|
+
mwxlib-0.80.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
21
|
+
mwxlib-0.80.0.dist-info/top_level.txt,sha256=SI1Mh118AstnUFGPNq5aMNKiAnVNmZk1S9Ij-OwAEpY,4
|
|
22
|
+
mwxlib-0.80.0.dist-info/RECORD,,
|
mwxlib-0.79.9.dist-info/RECORD
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
mwx/__init__.py,sha256=CxhKHOhig62F8p6GvP5gii-VvQtSjp9yWJpHvC_Kans,2592
|
|
2
|
-
mwx/controls.py,sha256=69NdDoPHdQKiPp9NF-5GbZNwJ_qnEHx5SCAwUg0R9rc,42453
|
|
3
|
-
mwx/framework.py,sha256=257ry6mrde8KPRIspUKqduwATcKmg0di-8SGx2_2LoY,69044
|
|
4
|
-
mwx/graphman.py,sha256=MIN4Ddd-Dc2F_F4DBYJxjcQ3gN661uv2WG7xLYEHxJ0,69846
|
|
5
|
-
mwx/images.py,sha256=9e8X7OpJ6Z3fF3ez17P_qk2D1NMO10-lN8TCtulAqT0,46248
|
|
6
|
-
mwx/matplot2.py,sha256=8eRrf6G4On-wi2F-SizQbOcNFWoJG4P8172PU4ke3mQ,36075
|
|
7
|
-
mwx/matplot2g.py,sha256=swRhA5uYY4o87tTxIhg-neJ4K4xPpC9ySM3QkRtdRb0,67979
|
|
8
|
-
mwx/matplot2lg.py,sha256=Uybj8ZpK8N3E7KmTog4Mipf03am6Z6gknautOtC39QY,27837
|
|
9
|
-
mwx/mgplt.py,sha256=49_wpFZUEKErQmtobqrlNKDjWlAsdLft-izlqSyGPD0,6878
|
|
10
|
-
mwx/nutshell.py,sha256=EO4s_67Dk4EiI7h-3vHOzWyI9WnaXl4QQmsVkF7s5Xk,133557
|
|
11
|
-
mwx/utilus.py,sha256=6NHnkUQjqXCjM9EPz2t5x0D5tRBEs85zBATou7DZWJA,34910
|
|
12
|
-
mwx/wxmon.py,sha256=Odmh13Ek4oJo9V5uFCTemoWlsPyZt4ITTmYZiKl_BKI,11405
|
|
13
|
-
mwx/wxpdb.py,sha256=WweNxRCaJa3DAO8mkpU57sluTk4oxBEZm44AVBR4vSI,18700
|
|
14
|
-
mwx/wxwil.py,sha256=BUfEF0Nc1E-mVC3Vdz6k1E-2s5J0PO6qEzRQ6lfyePI,5246
|
|
15
|
-
mwx/wxwit.py,sha256=M_jRGJOZge2B4Cq1OsAHqnGjeg56UI-v1BolDybPR-o,7246
|
|
16
|
-
mwx/py/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
|
-
mwx/py/filling.py,sha256=NnQnfUVol-Nz4QYZUKFIyRX-Yxp54m5n54Yxza3Iwho,16655
|
|
18
|
-
mwxlib-0.79.9.dist-info/LICENSE,sha256=PGtRKCaTkmUDlBQwpptJAxJtdqxIUtAmdBsaT9nUVkA,1091
|
|
19
|
-
mwxlib-0.79.9.dist-info/METADATA,sha256=U1xGFlmwaFmZNkSu07b8zp871GLO-Gsd2-ZXfXwJaaw,1995
|
|
20
|
-
mwxlib-0.79.9.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
21
|
-
mwxlib-0.79.9.dist-info/top_level.txt,sha256=SI1Mh118AstnUFGPNq5aMNKiAnVNmZk1S9Ij-OwAEpY,4
|
|
22
|
-
mwxlib-0.79.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|