mxcubecore 1.392.0__py3-none-any.whl → 1.394.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 mxcubecore might be problematic. Click here for more details.
- mxcubecore/BaseHardwareObjects.py +1 -1
- mxcubecore/Command/Epics.py +2 -2
- mxcubecore/Command/Pool.py +4 -4
- mxcubecore/Command/Sardana.py +7 -3
- mxcubecore/Command/Taco.py +2 -2
- mxcubecore/Command/Tango.py +2 -2
- mxcubecore/Command/Tine.py +1 -1
- mxcubecore/Command/exporter/ExporterClient.py +2 -2
- mxcubecore/Command/exporter/StandardClient.py +4 -3
- mxcubecore/HardwareObjects/ALBA/ALBAAutoProcessing.py +4 -7
- mxcubecore/HardwareObjects/ALBA/ALBABackLight.py +6 -7
- mxcubecore/HardwareObjects/ALBA/ALBABeamInfo.py +2 -4
- mxcubecore/HardwareObjects/ALBA/ALBACats.py +19 -25
- mxcubecore/HardwareObjects/ALBA/ALBAClusterJob.py +10 -11
- mxcubecore/HardwareObjects/ALBA/ALBACollect.py +49 -71
- mxcubecore/HardwareObjects/ALBA/ALBADataAnalysis.py +26 -31
- mxcubecore/HardwareObjects/ALBA/ALBAEnergy.py +1 -5
- mxcubecore/HardwareObjects/ALBA/ALBAEpsActuator.py +1 -1
- mxcubecore/HardwareObjects/ALBA/ALBAFastShutter.py +1 -1
- mxcubecore/HardwareObjects/ALBA/ALBAFlux.py +2 -6
- mxcubecore/HardwareObjects/ALBA/ALBAFrontLight.py +5 -9
- mxcubecore/HardwareObjects/ALBA/ALBAISPyBClient.py +4 -4
- mxcubecore/HardwareObjects/ALBA/ALBAMiniDiff.py +20 -27
- mxcubecore/HardwareObjects/ALBA/ALBAPilatus.py +12 -15
- mxcubecore/HardwareObjects/ALBA/ALBASession.py +1 -4
- mxcubecore/HardwareObjects/ALBA/ALBAZoomMotor.py +10 -14
- mxcubecore/HardwareObjects/ALBA/ALBAZoomMotorAutoBrightness.py +7 -11
- mxcubecore/HardwareObjects/ALBA/XalocMiniDiff.py +7 -8
- mxcubecore/HardwareObjects/BeamInfo.py +4 -6
- mxcubecore/HardwareObjects/Beamline.py +6 -7
- mxcubecore/HardwareObjects/BeamlineActions.py +3 -7
- mxcubecore/HardwareObjects/BlissHutchTrigger.py +3 -3
- mxcubecore/HardwareObjects/BlissMotorWPositions.py +4 -7
- mxcubecore/HardwareObjects/Cats90.py +33 -43
- mxcubecore/HardwareObjects/CatsBessy.py +1 -1
- mxcubecore/HardwareObjects/CatsMaint.py +2 -2
- mxcubecore/HardwareObjects/CentringMath.py +5 -4
- mxcubecore/HardwareObjects/DESY/DigitalZoomMotor.py +4 -4
- mxcubecore/HardwareObjects/DESY/MjpgStreamVideo.py +2 -0
- mxcubecore/HardwareObjects/DESY/P11Collect.py +7 -7
- mxcubecore/HardwareObjects/DESY/P11EDNACharacterisation.py +14 -16
- mxcubecore/HardwareObjects/DESY/P11ISPyBClient.py +6 -10
- mxcubecore/HardwareObjects/DESY/P11NanoDiff.py +6 -4
- mxcubecore/HardwareObjects/DataPublisher.py +2 -3
- mxcubecore/HardwareObjects/EDNACharacterisation.py +2 -4
- mxcubecore/HardwareObjects/EMBL/EMBLBeam.py +3 -3
- mxcubecore/HardwareObjects/EMBL/EMBLBeamCentering.py +2 -4
- mxcubecore/HardwareObjects/EMBL/EMBLBeamFocusing.py +3 -3
- mxcubecore/HardwareObjects/EMBL/EMBLBeamlineTest.py +2 -0
- mxcubecore/HardwareObjects/EMBL/EMBLDoorInterlock.py +1 -1
- mxcubecore/HardwareObjects/EMBL/EMBLEnergy.py +10 -18
- mxcubecore/HardwareObjects/EMBL/EMBLEnergyScan.py +10 -12
- mxcubecore/HardwareObjects/EMBL/EMBLFlux.py +10 -12
- mxcubecore/HardwareObjects/EMBL/EMBLMachineInfo.py +2 -2
- mxcubecore/HardwareObjects/EMBL/EMBLMiniDiff.py +18 -18
- mxcubecore/HardwareObjects/EMBL/EMBLMotorsGroup.py +6 -9
- mxcubecore/HardwareObjects/EMBL/EMBLOnlineProcessing.py +6 -6
- mxcubecore/HardwareObjects/EMBL/EMBLPPUControl.py +1 -1
- mxcubecore/HardwareObjects/EMBL/EMBLSSXChip.py +1 -4
- mxcubecore/HardwareObjects/EMBL/EMBLSlitBox.py +1 -3
- mxcubecore/HardwareObjects/EMBL/EMBLTableMotor.py +2 -3
- mxcubecore/HardwareObjects/EMBL/EMBLXRFSpectrum.py +4 -4
- mxcubecore/HardwareObjects/EMBL/EMBLXrayImaging.py +1 -1
- mxcubecore/HardwareObjects/EMBL/TINEMotor.py +2 -2
- mxcubecore/HardwareObjects/EMBLFlexHCD.py +5 -5
- mxcubecore/HardwareObjects/EMBLFlexHarvester.py +2 -2
- mxcubecore/HardwareObjects/ESRF/ESRFBeam.py +3 -5
- mxcubecore/HardwareObjects/ESRF/ESRFBeamInfo.py +1 -5
- mxcubecore/HardwareObjects/ESRF/ESRFBeamlineActions.py +2 -2
- mxcubecore/HardwareObjects/ESRF/ESRFEnergyScan.py +3 -3
- mxcubecore/HardwareObjects/ESRF/ESRFMetadataManagerClient.py +1 -1
- mxcubecore/HardwareObjects/ESRF/ESRFMultiCollect.py +7 -7
- mxcubecore/HardwareObjects/ESRF/ESRFPhotonFlux.py +2 -8
- mxcubecore/HardwareObjects/ESRF/ESRFSC3.py +11 -18
- mxcubecore/HardwareObjects/ESRF/ID29HutchTrigger.py +3 -3
- mxcubecore/HardwareObjects/ESRF/MD2MultiCollect.py +4 -4
- mxcubecore/HardwareObjects/ESRF/SSXICATLIMS.py +9 -6
- mxcubecore/HardwareObjects/EdnaWorkflow.py +9 -11
- mxcubecore/HardwareObjects/Energy.py +11 -15
- mxcubecore/HardwareObjects/ExporterMotor.py +1 -2
- mxcubecore/HardwareObjects/FlexHCD.py +7 -8
- mxcubecore/HardwareObjects/FlexHCDMaintenance.py +1 -1
- mxcubecore/HardwareObjects/GenericDiffractometer.py +26 -46
- mxcubecore/HardwareObjects/Gphl/CollectEmulator.py +6 -7
- mxcubecore/HardwareObjects/Gphl/GphlQueueEntry.py +2 -2
- mxcubecore/HardwareObjects/Gphl/GphlWorkflow.py +29 -43
- mxcubecore/HardwareObjects/Gphl/GphlWorkflowConnection.py +25 -35
- mxcubecore/HardwareObjects/ICATLIMS.py +17 -13
- mxcubecore/HardwareObjects/LNLS/EPICSMotor.py +1 -4
- mxcubecore/HardwareObjects/LNLS/LNLSAperture.py +2 -5
- mxcubecore/HardwareObjects/LNLS/LNLSCamera.py +14 -16
- mxcubecore/HardwareObjects/LNLS/LNLSCollect.py +21 -29
- mxcubecore/HardwareObjects/LNLS/LNLSDetDistMotor.py +7 -11
- mxcubecore/HardwareObjects/LNLS/LNLSEnergy.py +4 -6
- mxcubecore/HardwareObjects/LNLS/LNLSPilatusDet.py +55 -51
- mxcubecore/HardwareObjects/LNLS/LNLSTransmission.py +4 -7
- mxcubecore/HardwareObjects/LdapAuthenticator.py +11 -15
- mxcubecore/HardwareObjects/Lima2Detector.py +1 -1
- mxcubecore/HardwareObjects/LimaEigerDetector.py +1 -1
- mxcubecore/HardwareObjects/LimaPilatusDetector.py +1 -4
- mxcubecore/HardwareObjects/MAXIV/MAXIVAutoProcessing.py +3 -5
- mxcubecore/HardwareObjects/MD3UP.py +1 -2
- mxcubecore/HardwareObjects/MachCurrent.py +5 -5
- mxcubecore/HardwareObjects/Marvin.py +23 -35
- mxcubecore/HardwareObjects/Microdiff.py +6 -8
- mxcubecore/HardwareObjects/MicrodiffActuator.py +1 -1
- mxcubecore/HardwareObjects/MicrodiffBeamstop.py +1 -1
- mxcubecore/HardwareObjects/MicrodiffInOut.py +1 -1
- mxcubecore/HardwareObjects/MicrodiffKappaMotor.py +3 -4
- mxcubecore/HardwareObjects/MiniDiff.py +35 -57
- mxcubecore/HardwareObjects/MotorWPositions.py +4 -2
- mxcubecore/HardwareObjects/PlateManipulator.py +2 -2
- mxcubecore/HardwareObjects/ProposalTypeISPyBLims.py +8 -16
- mxcubecore/HardwareObjects/PyISPyBClient.py +8 -5
- mxcubecore/HardwareObjects/QtGraphicsLib.py +2 -2
- mxcubecore/HardwareObjects/QtGraphicsManager.py +13 -19
- mxcubecore/HardwareObjects/QtInstanceServer.py +27 -55
- mxcubecore/HardwareObjects/QtLimaVideo.py +1 -5
- mxcubecore/HardwareObjects/QueueManager.py +7 -9
- mxcubecore/HardwareObjects/QueueModel.py +6 -8
- mxcubecore/HardwareObjects/RedisClient.py +12 -16
- mxcubecore/HardwareObjects/SC3.py +1 -1
- mxcubecore/HardwareObjects/SOLEIL/PX1/PX1Attenuator.py +1 -3
- mxcubecore/HardwareObjects/SOLEIL/PX1/PX1BeamInfo.py +1 -1
- mxcubecore/HardwareObjects/SOLEIL/PX1/PX1CatsMaint.py +3 -4
- mxcubecore/HardwareObjects/SOLEIL/PX1/PX1Collect.py +11 -11
- mxcubecore/HardwareObjects/SOLEIL/PX1/PX1Cryotong.py +8 -18
- mxcubecore/HardwareObjects/SOLEIL/PX1/PX1Energy.py +6 -7
- mxcubecore/HardwareObjects/SOLEIL/PX1/PX1EnergyScan.py +21 -31
- mxcubecore/HardwareObjects/SOLEIL/PX1/PX1Environment.py +1 -1
- mxcubecore/HardwareObjects/SOLEIL/PX1/PX1MiniDiff.py +11 -21
- mxcubecore/HardwareObjects/SOLEIL/PX1/PX1Pilatus.py +9 -9
- mxcubecore/HardwareObjects/SOLEIL/PX1/PX1Pss.py +1 -2
- mxcubecore/HardwareObjects/SOLEIL/PX1/PX1Resolution.py +1 -5
- mxcubecore/HardwareObjects/SOLEIL/PX1/PX1TangoLight.py +3 -8
- mxcubecore/HardwareObjects/SOLEIL/PX2/PX2Attenuator.py +9 -13
- mxcubecore/HardwareObjects/SOLEIL/PX2/PX2Collect.py +1 -1
- mxcubecore/HardwareObjects/SOLEIL/PX2/PX2Diffractometer.py +22 -22
- mxcubecore/HardwareObjects/SOLEIL/PX2/PX2Energy.py +4 -6
- mxcubecore/HardwareObjects/SOLEIL/PX2/PX2Guillotine.py +2 -2
- mxcubecore/HardwareObjects/SOLEIL/SOLEILCatsMaint.py +6 -8
- mxcubecore/HardwareObjects/SOLEIL/SOLEILEnergyScan.py +44 -56
- mxcubecore/HardwareObjects/SOLEIL/SOLEILGuillotine.py +2 -2
- mxcubecore/HardwareObjects/SOLEIL/SOLEILISPyBClient.py +10 -10
- mxcubecore/HardwareObjects/SOLEIL/SOLEILMachineInfo.py +4 -8
- mxcubecore/HardwareObjects/SOLEIL/SOLEILPss.py +3 -4
- mxcubecore/HardwareObjects/SOLEIL/SOLEILRuche.py +1 -1
- mxcubecore/HardwareObjects/SOLEIL/TangoDCMotor.py +10 -16
- mxcubecore/HardwareObjects/SardanaMotor.py +4 -5
- mxcubecore/HardwareObjects/Session.py +1 -1
- mxcubecore/HardwareObjects/SpecMotorWPositions.py +5 -9
- mxcubecore/HardwareObjects/SpecMotorWSpecPositions.py +2 -4
- mxcubecore/HardwareObjects/SpecShell.py +7 -9
- mxcubecore/HardwareObjects/SpecState.py +5 -7
- mxcubecore/HardwareObjects/StateMachine.py +9 -10
- mxcubecore/HardwareObjects/TangoLimaMpegVideo.py +2 -3
- mxcubecore/HardwareObjects/TangoLimaVideo.py +3 -4
- mxcubecore/HardwareObjects/TangoMachineInfo.py +1 -3
- mxcubecore/HardwareObjects/TangoMotor.py +1 -1
- mxcubecore/HardwareObjects/UserTypeISPyBLims.py +8 -8
- mxcubecore/HardwareObjects/XMLRPCServer.py +20 -22
- mxcubecore/HardwareObjects/abstract/AbstractAperture.py +6 -11
- mxcubecore/HardwareObjects/abstract/AbstractCollect.py +6 -16
- mxcubecore/HardwareObjects/abstract/AbstractDetector.py +2 -7
- mxcubecore/HardwareObjects/abstract/AbstractEnergyScan.py +1 -1
- mxcubecore/HardwareObjects/abstract/AbstractLims.py +3 -4
- mxcubecore/HardwareObjects/abstract/AbstractMultiCollect.py +6 -6
- mxcubecore/HardwareObjects/abstract/AbstractNState.py +1 -1
- mxcubecore/HardwareObjects/abstract/AbstractProcedure.py +3 -4
- mxcubecore/HardwareObjects/abstract/AbstractSampleChanger.py +1 -1
- mxcubecore/HardwareObjects/abstract/AbstractVideoDevice.py +5 -5
- mxcubecore/HardwareObjects/abstract/AbstractXRFSpectrum.py +2 -0
- mxcubecore/HardwareObjects/abstract/ISPyBAbstractLims.py +11 -13
- mxcubecore/HardwareObjects/abstract/ISPyBDataAdapter.py +3 -3
- mxcubecore/HardwareObjects/abstract/sample_changer/Crims.py +8 -0
- mxcubecore/HardwareObjects/mockup/BeamlineTestMockup.py +12 -13
- mxcubecore/HardwareObjects/mockup/EnergyScanMockup.py +10 -11
- mxcubecore/HardwareObjects/mockup/ISPyBClientMockup.py +6 -6
- mxcubecore/HardwareObjects/mockup/ISPyBRestClientMockup.py +1 -1
- mxcubecore/HardwareObjects/mockup/LimaDetectorMockup.py +1 -2
- mxcubecore/HardwareObjects/mockup/MDCameraMockup.py +5 -6
- mxcubecore/HardwareObjects/mockup/MicrodiffInOutMockup.py +1 -1
- mxcubecore/HardwareObjects/mockup/MultiCollectMockup.py +1 -1
- mxcubecore/HardwareObjects/mockup/ShapeHistoryMockup.py +1 -2
- mxcubecore/HardwareObjects/mockup/XRFMockup.py +3 -6
- mxcubecore/TaskUtils.py +2 -0
- mxcubecore/queue_entry/base_queue_entry.py +2 -2
- mxcubecore/queue_entry/energy_scan.py +1 -1
- mxcubecore/saferef.py +2 -1
- mxcubecore/utils/qt_import.py +8 -7
- {mxcubecore-1.392.0.dist-info → mxcubecore-1.394.0.dist-info}/METADATA +1 -1
- {mxcubecore-1.392.0.dist-info → mxcubecore-1.394.0.dist-info}/RECORD +195 -195
- {mxcubecore-1.392.0.dist-info → mxcubecore-1.394.0.dist-info}/COPYING +0 -0
- {mxcubecore-1.392.0.dist-info → mxcubecore-1.394.0.dist-info}/COPYING.LESSER +0 -0
- {mxcubecore-1.392.0.dist-info → mxcubecore-1.394.0.dist-info}/WHEEL +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"""Class for cameras connected to framegrabbers run by Taco Device Servers"""
|
|
2
2
|
|
|
3
3
|
import atexit
|
|
4
|
-
import logging
|
|
5
4
|
import os
|
|
6
5
|
import signal
|
|
7
6
|
import subprocess
|
|
@@ -40,7 +39,7 @@ class MDCameraMockup(BaseHardwareObjects.HardwareObject):
|
|
|
40
39
|
self._current_stream_size = (0, 0)
|
|
41
40
|
|
|
42
41
|
def init(self):
|
|
43
|
-
|
|
42
|
+
self.log.info("initializing camera object")
|
|
44
43
|
if self.get_property("interval"):
|
|
45
44
|
self.pollInterval = self.get_property("interval")
|
|
46
45
|
self.stopper = False # self.polling_timer(self.pollInterval, self.poll)
|
|
@@ -60,14 +59,14 @@ class MDCameraMockup(BaseHardwareObjects.HardwareObject):
|
|
|
60
59
|
return self.connected
|
|
61
60
|
|
|
62
61
|
def poll(self) -> None:
|
|
63
|
-
|
|
62
|
+
self.log.info("going to poll images")
|
|
64
63
|
while not self.stopper:
|
|
65
64
|
time.sleep(1)
|
|
66
65
|
try:
|
|
67
66
|
img = open(self.image, "rb").read()
|
|
68
67
|
self.emit("imageReceived", img, 659, 493)
|
|
69
68
|
except Exception:
|
|
70
|
-
|
|
69
|
+
self.log.exception("Could not read image")
|
|
71
70
|
|
|
72
71
|
def imageUpdated(self, value) -> None:
|
|
73
72
|
print("<HW> got new image")
|
|
@@ -119,7 +118,7 @@ class MDCameraMockup(BaseHardwareObjects.HardwareObject):
|
|
|
119
118
|
return (width, height, scale)
|
|
120
119
|
|
|
121
120
|
def clean_up(self):
|
|
122
|
-
|
|
121
|
+
self.log.info("Shutting down video_stream...")
|
|
123
122
|
os.kill(self._video_stream_process.pid, signal.SIGTERM)
|
|
124
123
|
|
|
125
124
|
def start_video_stream_process(self) -> None:
|
|
@@ -160,7 +159,7 @@ class MDCameraMockup(BaseHardwareObjects.HardwareObject):
|
|
|
160
159
|
for p in ps:
|
|
161
160
|
p.kill()
|
|
162
161
|
except psutil.NoSuchProcess:
|
|
163
|
-
|
|
162
|
+
self.log.exception("")
|
|
164
163
|
|
|
165
164
|
self._video_stream_process = None
|
|
166
165
|
|
|
@@ -101,7 +101,7 @@ class MultiCollectMockup(AbstractMultiCollect, HardwareObject):
|
|
|
101
101
|
not failed,
|
|
102
102
|
failed_msg if failed else "Data collection successful",
|
|
103
103
|
)
|
|
104
|
-
|
|
104
|
+
self.log.info("data collection successful in loop")
|
|
105
105
|
self.emit("collectReady", (True,))
|
|
106
106
|
|
|
107
107
|
@task
|
|
@@ -17,7 +17,6 @@ between two Point objects.
|
|
|
17
17
|
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
|
-
import logging
|
|
21
20
|
import os
|
|
22
21
|
|
|
23
22
|
from mxcubecore.BaseHardwareObjects import HardwareObject
|
|
@@ -50,7 +49,7 @@ class ShapeHistoryMockup(HardwareObject):
|
|
|
50
49
|
:returns: None
|
|
51
50
|
"""
|
|
52
51
|
if self._drawing:
|
|
53
|
-
|
|
52
|
+
self.log.info(
|
|
54
53
|
"Setting previous drawing:" + str(self._drawing) + " to " + str(drawing)
|
|
55
54
|
)
|
|
56
55
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import logging
|
|
2
1
|
import time
|
|
3
2
|
|
|
4
3
|
import gevent
|
|
@@ -48,7 +47,7 @@ class XRFMockup(HardwareObject):
|
|
|
48
47
|
)
|
|
49
48
|
raw_data = s1 + s2
|
|
50
49
|
|
|
51
|
-
|
|
50
|
+
self.log.info("XRF Spectrum Started, task id: %d" % blsample_id)
|
|
52
51
|
self.scanning = True
|
|
53
52
|
self.emit("xrfSpectrumStarted", ())
|
|
54
53
|
with cleanup(self.ready_event.set):
|
|
@@ -85,9 +84,7 @@ class XRFMockup(HardwareObject):
|
|
|
85
84
|
self.emit("plot_data", {"id": scan_id, "data": aux})
|
|
86
85
|
if divmod(i, SCAN_LENGTH / 10)[1] == 0:
|
|
87
86
|
progress = i / float(SCAN_LENGTH)
|
|
88
|
-
|
|
89
|
-
"XRF Spectrum Progress %f" % progress
|
|
90
|
-
)
|
|
87
|
+
self.log.info("XRF Spectrum Progress %f" % progress)
|
|
91
88
|
self.emit("xrf_task_progress", (blsample_id, progress))
|
|
92
89
|
|
|
93
90
|
gevent.sleep(0.02)
|
|
@@ -115,5 +112,5 @@ class XRFMockup(HardwareObject):
|
|
|
115
112
|
res.append(arr[0].tolist())
|
|
116
113
|
|
|
117
114
|
self.emit("xrfSpectrumFinished", (res, mcaCalib, mcaConfig))
|
|
118
|
-
|
|
115
|
+
self.log.info("XRF Spectrum Finished")
|
|
119
116
|
del self.__scan_data[scan_id]
|
mxcubecore/TaskUtils.py
CHANGED
|
@@ -640,7 +640,7 @@ class TaskGroupQueueEntry(BaseQueueEntry):
|
|
|
640
640
|
"queue_entry"
|
|
641
641
|
].execute()
|
|
642
642
|
except Exception:
|
|
643
|
-
|
|
643
|
+
logging.getLogger("HWR").exception("")
|
|
644
644
|
self.interleave_items[item["collect_index"]][
|
|
645
645
|
"queue_entry"
|
|
646
646
|
].post_execute()
|
|
@@ -804,7 +804,7 @@ class SampleQueueEntry(BaseQueueEntry):
|
|
|
804
804
|
programs = HWR.beamline.collect["auto_processing"]
|
|
805
805
|
autoprocessing.start(programs, "end_multicollect", params)
|
|
806
806
|
except KeyError:
|
|
807
|
-
|
|
807
|
+
logging.getLogger("HWR").exception("")
|
|
808
808
|
|
|
809
809
|
self._set_background_color()
|
|
810
810
|
self._view.setText(1, "")
|
|
@@ -195,7 +195,7 @@ class EnergyScanQueueEntry(BaseQueueEntry):
|
|
|
195
195
|
try:
|
|
196
196
|
energy_scan.result.data = HWR.beamline.energy_scan.get_scan_data()
|
|
197
197
|
except Exception:
|
|
198
|
-
|
|
198
|
+
logging.getLogger("HWR").exception("")
|
|
199
199
|
|
|
200
200
|
if (
|
|
201
201
|
sample.crystals[0].energy_scan_result.peak
|
mxcubecore/saferef.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""Refactored 'safe reference from dispatcher.py"""
|
|
2
2
|
|
|
3
3
|
import collections
|
|
4
|
+
import logging
|
|
4
5
|
import traceback
|
|
5
6
|
import weakref
|
|
6
7
|
|
|
@@ -115,7 +116,7 @@ class BoundMethodWeakref(object):
|
|
|
115
116
|
try:
|
|
116
117
|
del self.__class__._all_instances[self.key]
|
|
117
118
|
except KeyError:
|
|
118
|
-
|
|
119
|
+
logging.getLogger("HWR").exception("")
|
|
119
120
|
for function in methods:
|
|
120
121
|
try:
|
|
121
122
|
if isinstance(function, collections.abc.Callable):
|
mxcubecore/utils/qt_import.py
CHANGED
|
@@ -68,6 +68,7 @@ splot is licensed under LGPL license
|
|
|
68
68
|
|
|
69
69
|
"""
|
|
70
70
|
|
|
71
|
+
import logging
|
|
71
72
|
import os
|
|
72
73
|
import sys
|
|
73
74
|
|
|
@@ -99,9 +100,9 @@ try:
|
|
|
99
100
|
if m:
|
|
100
101
|
mpl_version_no[2] = int(m.group("release"))
|
|
101
102
|
except BaseException:
|
|
102
|
-
|
|
103
|
+
logging.getLogger("HWR").exception("")
|
|
103
104
|
except BaseException:
|
|
104
|
-
|
|
105
|
+
logging.getLogger("HWR").exception("")
|
|
105
106
|
|
|
106
107
|
if "--pyqt5" in sys.argv:
|
|
107
108
|
qt_variant = "PyQt5"
|
|
@@ -239,12 +240,12 @@ if (qt_variant == "PyQt5") or (qt_variant is None and not qt_imported):
|
|
|
239
240
|
ver = _ver + ["0"] * (3 - len(_ver))
|
|
240
241
|
pyqt_version_no = list(map(int, ver))[:3]
|
|
241
242
|
except ImportError:
|
|
242
|
-
|
|
243
|
+
logging.getLogger("HWR").exception("")
|
|
243
244
|
|
|
244
245
|
try:
|
|
245
246
|
from PyQt5.QtWebKit import QWebPage
|
|
246
247
|
except ImportError:
|
|
247
|
-
|
|
248
|
+
logging.getLogger("HWR").exception("")
|
|
248
249
|
|
|
249
250
|
#
|
|
250
251
|
# PyQt4
|
|
@@ -380,12 +381,12 @@ if (qt_variant == "PyQt4") or (qt_variant is None and not qt_imported):
|
|
|
380
381
|
ver = _ver + ["0"] * (3 - len(_ver))
|
|
381
382
|
pyqt_version_no = list(map(int, ver))[:3]
|
|
382
383
|
except BaseException:
|
|
383
|
-
|
|
384
|
+
logging.getLogger("HWR").exception("")
|
|
384
385
|
|
|
385
386
|
try:
|
|
386
387
|
from PyQt4.QtWebKit import QWebPage
|
|
387
388
|
except ImportError:
|
|
388
|
-
|
|
389
|
+
logging.getLogger("HWR").exception("")
|
|
389
390
|
|
|
390
391
|
#
|
|
391
392
|
# PySide
|
|
@@ -423,7 +424,7 @@ if (qt_variant == "PySide") or (qt_variant is None and not qt_imported):
|
|
|
423
424
|
return ui
|
|
424
425
|
|
|
425
426
|
except BaseException:
|
|
426
|
-
|
|
427
|
+
logging.getLogger("HWR").exception("")
|
|
427
428
|
|
|
428
429
|
#
|
|
429
430
|
# Matplotlib backend assignment
|