You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear Mathijs,
when generating phases the program (Linux version) crashes saying a programming error was detected.
Here I copied the error message.
Thanks a lot
Dear Mathijs,
when generating phases the program (Linux version) crashes saying a programming error was detected.
Here I copied the error message.
Thanks a lot
Traceback (most recent call last):
File "/home/labcrescita/.local/lib/python3.8/site-packages/mvc/controller.py", line 157, _idle_register_view(self=<pyxrd.phases.controllers.CSDS_controllers.EditCSDSDistributionController object>, view=<pyxrd.phases.views.EditCSDSDistributionView object>)
self.register_view(self.view)
self.register_adapters()
variables: {'self.register_view': ('local', <bound method EditCSDSDistributionController.register_view of <pyxrd.phases.controllers.CSDS_controllers.EditCSDSDistributionController object at 0x7f36f7309cd0>>), 'self.view': ('local', <pyxrd.phases.views.EditCSDSDistributionView object at 0x7f3721f5c490>)}
File "/home/labcrescita/.local/lib/python3.8/site-packages/pyxrd/phases/controllers/CSDS_controllers.py", line 107, register_view(self=<pyxrd.phases.controllers.CSDS_controllers.EditCSDSDistributionController object>, view=<pyxrd.phases.views.EditCSDSDistributionView object>)
if self.model is not None:
self.reset_view()
variables: {'self.reset_view': ('local', <bound method EditCSDSDistributionController.reset_view of <pyxrd.phases.controllers.CSDS_controllers.EditCSDSDistributionController object at 0x7f36f7309cd0>>)}
File "/home/labcrescita/.local/lib/python3.8/site-packages/pyxrd/phases/controllers/CSDS_controllers.py", line 101, reset_view(self=<pyxrd.phases.controllers.CSDS_controllers.EditCSDSDistributionController object>)
)
self.view.update_figure(self.model.distrib[0])
self.register_adapters()
variables: {'self.view.update_figure': ('local', <bound method EditCSDSDistributionView.update_figure of <pyxrd.phases.views.EditCSDSDistributionView object at 0x7f3721f5c490>>), 'self.model.distrib': ('local', (array([0.00000000e+00, 4.22798362e-05, 4.14794680e-03, 2.40761188e-02,
5.54406161e-02, 8.35815096e-02, 1.00271239e-01, 1.05026084e-01,
1.00952692e-01, 9.16846847e-02, 8.01134260e-02, 6.81509294e-02,
5.68933190e-02, 4.68688067e-02, 3.82521482e-02, 3.10186349e-02,
2.50439457e-02, 2.01642327e-02, 1.62097649e-02, 1.30221002e-02,
1.04615344e-02, 8.40912194e-03, 6.76588131e-03, 5.45070933e-03,
4.39785745e-03, 3.55441673e-03]), 9.670586370099196))}
File "/home/labcrescita/.local/lib/python3.8/site-packages/pyxrd/phases/views.py", line 179, update_figure(self=<pyxrd.phases.views.EditCSDSDistributionView object>, distr=array([0.00000000e+00, 4.22798362e-05, 4.1479468...0933e-03,
4.39785745e-03, 3.55441673e-03]))
self.plot.cla()
self.plot.hist(list(range(len(distr))), len(distr), weights=distr, normed=1, ec='b', histtype='stepfilled')
self.plot.set_ylabel('')
variables: {'self.plot.hist': ('local', <bound method Axes.hist of AxesSubplot:>), 'list': ('builtin', <class 'list'>), 'range': ('builtin', <class 'range'>), 'len': ('builtin', ), 'distr': ('local', array([0.00000000e+00, 4.22798362e-05, 4.14794680e-03, 2.40761188e-02,
5.54406161e-02, 8.35815096e-02, 1.00271239e-01, 1.05026084e-01,
1.00952692e-01, 9.16846847e-02, 8.01134260e-02, 6.81509294e-02,
5.68933190e-02, 4.68688067e-02, 3.82521482e-02, 3.10186349e-02,
2.50439457e-02, 2.01642327e-02, 1.62097649e-02, 1.30221002e-02,
1.04615344e-02, 8.40912194e-03, 6.76588131e-03, 5.45070933e-03,
4.39785745e-03, 3.55441673e-03])), 'weights': (None, []), 'normed': (None, []), 'ec': (None, []), 'histtype': (None, [])}
File "/home/labcrescita/.local/lib/python3.8/site-packages/matplotlib/init.py", line 1361, inner(ax=AxesSubplot:, data=None, *args=([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, ...], 26), **kwargs={'ec': 'b', 'histtype': 'stepfilled', 'normed': 1, 'weights': array([0.00000000e+00, 4.22798362e-05, 4.1479468...0933e-03,
4.39785745e-03, 3.55441673e-03])})
if data is None:
return func(ax, *map(sanitize_sequence, args), **kwargs)
variables: {'func': ('local', <function Axes.hist at 0x7f3729a004c0>), 'ax': ('local', AxesSubplot:), 'map': ('builtin', <class 'map'>), 'sanitize_sequence': ('global', <function sanitize_sequence at 0x7f3751b5b790>), 'args': ('local', ([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25], 26)), 'kwargs': ('local', {'weights': array([0.00000000e+00, 4.22798362e-05, 4.14794680e-03, 2.40761188e-02,
5.54406161e-02, 8.35815096e-02, 1.00271239e-01, 1.05026084e-01,
1.00952692e-01, 9.16846847e-02, 8.01134260e-02, 6.81509294e-02,
5.68933190e-02, 4.68688067e-02, 3.82521482e-02, 3.10186349e-02,
2.50439457e-02, 2.01642327e-02, 1.62097649e-02, 1.30221002e-02,
1.04615344e-02, 8.40912194e-03, 6.76588131e-03, 5.45070933e-03,
4.39785745e-03, 3.55441673e-03]), 'normed': 1, 'ec': 'b', 'histtype': 'stepfilled'})}
File "/home/labcrescita/.local/lib/python3.8/site-packages/matplotlib/axes/_axes.py", line 6911, hist(self=AxesSubplot:, x=array([ 0. , 0. , 0.96153846, 0...92307692, 0.96153846, 0.96153846, 0. ]), bins=array([ 0. , 0.96153846, 1.92307692, 2...2, 23.07692308,
24.03846154, 25. ]), range=<class 'range'>, density=False, weights=array([0.00000000e+00, 4.22798362e-05, 4.1479468...0933e-03,
4.39785745e-03, 3.55441673e-03]), cumulative=False, bottom=0, histtype='stepfilled', align='mid', orientation='vertical', rwidth=None, log=False, color=['#1f77b4'], label=None, stacked=False, **kwargs={'ec': 'b', 'normed': 1})
p = patch[0]
p.update(kwargs)
if lbl is not None:
variables: {'p.update': ('local', <bound method Artist.update of <matplotlib.patches.Polygon object at 0x7f3726d67820>>), 'kwargs': ('local', {'normed': 1, 'ec': 'b'})}
File "/home/labcrescita/.local/lib/python3.8/site-packages/matplotlib/artist.py", line 1062, update(self=<matplotlib.patches.Polygon object>, props={'ec': 'b', 'normed': 1})
if not callable(func):
raise AttributeError(f"{type(self).name!r} object "
f"has no property {k!r}")
variables: {'AttributeError': ('builtin', <class 'AttributeError'>)}
AttributeError: 'Polygon' object has no property 'normed'
The text was updated successfully, but these errors were encountered: