Test coverage report for pyFAI#

Measured on pyFAI version 2025.1.0-beta0, 30/01/2025

Test suite coverage#

Name

Stmts

Exec

Cover

__init__.py

42

29

69.0 %

average.py

516

361

70.0 %

azimuthalIntegrator.py

11

11

100.0 %

blob_detection.py

502

191

38.0 %

calibrant.py

508

377

74.2 %

containers.py

504

457

90.7 %

control_points.py

360

136

37.8 %

diffmap.py

512

213

41.6 %

directories.py

21

16

76.2 %

distortion.py

605

386

63.8 %

geometryRefinement.py

571

293

51.3 %

goniometer.py

566

340

60.1 %

grid.py

38

15

39.5 %

load_integrators.py

11

11

100.0 %

massif.py

240

199

82.9 %

method_registry.py

353

288

81.6 %

multi_geometry.py

371

164

44.2 %

parallax.py

249

211

84.7 %

ring_extraction.py

119

111

93.3 %

spline.py

427

252

59.0 %

units.py

372

350

94.1 %

version.py

63

51

81.0 %

worker.py

445

298

67.0 %

app/__init__.py

7

7

100.0 %

app/average.py

175

34

19.4 %

app/benchmark.py

63

18

28.6 %

app/calib2.py

375

33

8.8 %

app/calib.py

25

16

64.0 %

app/check_calib.py

32

21

65.6 %

app/detector2nexus.py

95

21

22.1 %

app/diff_map.py

37

17

45.9 %

app/diff_tomo.py

108

24

22.2 %

app/drawmask.py

106

33

31.1 %

app/eiger_mask.py

58

23

39.7 %

app/integrate.py

507

378

74.6 %

app/mx_calibrate.py

26

16

61.5 %

app/peakfinder.py

290

55

19.0 %

app/pilx.py

27

14

51.9 %

app/recalib.py

27

16

59.3 %

app/saxs.py

86

24

27.9 %

app/sparsify.py

285

56

19.6 %

app/waxs.py

98

25

25.5 %

benchmark/__init__.py

626

86

13.7 %

detectors/__init__.py

24

24

100.0 %

detectors/_adsc.py

76

76

100.0 %

detectors/_common.py

875

637

72.8 %

detectors/_dectris.py

420

302

71.9 %

detectors/_esrf.py

97

83

85.6 %

detectors/_hexagonal.py

73

70

95.9 %

detectors/_imxpad.py

401

259

64.6 %

detectors/_non_flat.py

158

131

82.9 %

detectors/_others.py

133

120

90.2 %

detectors/_psi.py

197

120

60.9 %

detectors/_rayonix.py

264

226

85.6 %

detectors/_xspectrum.py

51

48

94.1 %

detectors/orientation.py

36

36

100.0 %

engines/CSC_engine.py

211

140

66.4 %

engines/CSR_engine.py

250

244

97.6 %

engines/__init__.py

19

19

100.0 %

engines/histogram_engine.py

94

87

92.6 %

engines/preproc.py

114

93

81.6 %

ext/__init__.py

3

3

100.0 %

geometry/__init__.py

9

9

100.0 %

geometry/core.py

1247

1028

82.4 %

geometry/crystfel.py

162

148

91.4 %

geometry/cxi.py

1

1

100.0 %

geometry/fit2d.py

114

103

90.4 %

geometry/imaged11.py

116

101

87.1 %

gui/ApplicationContext.py

107

52

48.6 %

gui/CalibrationContext.py

224

130

58.0 %

gui/CalibrationWindow.py

192

169

88.0 %

gui/IntegrationDialog.py

205

55

26.8 %

gui/__init__.py

4

4

100.0 %

gui/cli_calibration.py

1599

104

6.5 %

gui/diffmap_widget.py

462

74

16.0 %

gui/matplotlib.py

34

27

79.4 %

gui/mpl_calib.py

244

40

16.4 %

gui/mpl_calib_qt.py

49

21

42.9 %

gui/peak_picker.py

299

109

36.5 %

gui/dialog/Detector3dDialog.py

173

36

20.8 %

gui/dialog/DetectorSelectorDialog.py

458

340

74.2 %

gui/dialog/GeometryDialog.py

56

16

28.6 %

gui/dialog/IntegrationMethodDialog.py

216

36

16.7 %

gui/dialog/MessageBox.py

27

8

29.6 %

gui/dialog/OpenClDeviceDialog.py

116

14

12.1 %

gui/dialog/__init__.py

4

4

100.0 %

gui/helper/MarkerManager.py

209

65

31.1 %

gui/helper/ProcessingWidget.py

19

6

31.6 %

gui/helper/RingCalibration.py

307

47

15.3 %

gui/helper/RingExtractor.py

238

35

14.7 %

gui/helper/SynchronizeMaskToolColor.py

27

27

100.0 %

gui/helper/SynchronizePlotBackground.py

27

26

96.3 %

gui/helper/SynchronizeRawView.py

56

46

82.1 %

gui/helper/__init__.py

4

4

100.0 %

gui/helper/model_transform.py

113

16

14.2 %

gui/jupyter/__init__.py

1

1

100.0 %

gui/jupyter/_plot.py

98

15

15.3 %

gui/jupyter/calib.py

92

24

26.1 %

gui/model/AbstractModel.py

35

30

85.7 %

gui/model/CalibrantModel.py

19

17

89.5 %

gui/model/CalibrationModel.py

44

42

95.5 %

gui/model/ConstraintModel.py

60

21

35.0 %

gui/model/DataModel.py

15

14

93.3 %

gui/model/DataModelAdaptor.py

27

12

44.4 %

gui/model/DetectorModel.py

16

15

93.8 %

gui/model/ExperimentSettingsModel.py

105

95

90.5 %

gui/model/FilenameModel.py

21

14

66.7 %

gui/model/Fit2dGeometryModel.py

64

32

50.0 %

gui/model/GeometryConstraintsModel.py

86

41

47.7 %

gui/model/GeometryHistoryModel.py

40

14

35.0 %

gui/model/GeometryModel.py

89

41

46.1 %

gui/model/ImageModel.py

80

43

53.8 %

gui/model/IntegrationSettingsModel.py

26

23

88.5 %

gui/model/ListModel.py

127

92

72.4 %

gui/model/MarkerModel.py

48

34

70.8 %

gui/model/MaskedImageModel.py

31

17

54.8 %

gui/model/PeakModel.py

88

58

65.9 %

gui/model/PeakSelectionModel.py

85

34

40.0 %

gui/model/PlotViewModel.py

64

62

96.9 %

gui/model/PreProcessedImageModel.py

55

46

83.6 %

gui/model/__init__.py

4

4

100.0 %

gui/pilx/HorizontalRangeROI.py

17

13

76.5 %

gui/pilx/MainWindow.py

274

46

16.8 %

gui/pilx/__init__.py

0

0

0.0 %

gui/pilx/models.py

10

10

100.0 %

gui/pilx/point.py

20

7

35.0 %

gui/pilx/utils.py

63

24

38.1 %

gui/pilx/widgets/ClearPointsAction.py

17

13

76.5 %

gui/pilx/widgets/DiffractionImagePlotWidget.py

44

20

45.5 %

gui/pilx/widgets/ImagePlotWidget.py

69

29

42.0 %

gui/pilx/widgets/IntegratedPatternPlotWidget.py

97

30

30.9 %

gui/pilx/widgets/MapPlotContextMenu.py

50

22

44.0 %

gui/pilx/widgets/MapPlotWidget.py

148

39

26.4 %

gui/pilx/widgets/OpenAxisDatasetAction.py

30

16

53.3 %

gui/pilx/widgets/RoiModeAction.py

25

15

60.0 %

gui/pilx/widgets/RoiRangeWidget.py

51

19

37.3 %

gui/pilx/widgets/TitleWidget.py

13

10

76.9 %

gui/pilx/widgets/__init__.py

0

0

0.0 %

gui/tasks/AbstractCalibrationTask.py

79

72

91.1 %

gui/tasks/ExperimentTask.py

344

251

73.0 %

gui/tasks/GeometryTask.py

814

376

46.2 %

gui/tasks/IntegrationTask.py

845

304

36.0 %

gui/tasks/MaskTask.py

221

148

67.0 %

gui/tasks/PeakPickingTask.py

1361

588

43.2 %

gui/tasks/__init__.py

4

4

100.0 %

gui/test/__init__.py

51

34

66.7 %

gui/utils/FilterBuilder.py

44

14

31.8 %

gui/utils/ProxyAction.py

67

21

31.3 %

gui/utils/__init__.py

34

14

41.2 %

gui/utils/colorutils.py

48

43

89.6 %

gui/utils/eventutils.py

71

39

54.9 %

gui/utils/imageutils.py

26

14

53.8 %

gui/utils/projecturl.py

21

20

95.2 %

gui/utils/timeutils.py

12

10

83.3 %

gui/utils/tree.py

118

25

21.2 %

gui/utils/units.py

76

66

86.8 %

gui/utils/unitutils.py

54

8

14.8 %

gui/utils/validators.py

89

83

93.3 %

gui/utils/test/__init__.py

9

9

100.0 %

gui/widgets/AdvancedComboBox.py

66

56

84.8 %

gui/widgets/AdvancedSpinBox.py

20

11

55.0 %

gui/widgets/CalibrantPreview.py

108

99

91.7 %

gui/widgets/CalibrantSelector2.py

211

112

53.1 %

gui/widgets/CalibrantSelector.py

100

25

25.0 %

gui/widgets/ChoiceToolButton.py

71

43

60.6 %

gui/widgets/ColoredCheckBox.py

28

11

39.3 %

gui/widgets/DetectorLabel.py

122

74

60.7 %

gui/widgets/DetectorModel.py

15

13

86.7 %

gui/widgets/DetectorSelector.py

55

15

27.3 %

gui/widgets/FileEdit.py

157

60

38.2 %

gui/widgets/FitParamView.py

310

128

41.3 %

gui/widgets/GeometryHistoryComboBox.py

113

60

53.1 %

gui/widgets/GeometryLabel.py

38

31

81.6 %

gui/widgets/GeometryTabs.py

205

90

43.9 %

gui/widgets/LoadImageToolButton.py

119

50

42.0 %

gui/widgets/MethodLabel.py

93

49

52.7 %

gui/widgets/MonitorNameEdit.py

20

10

50.0 %

gui/widgets/OpenClDeviceLabel.py

52

22

42.3 %

gui/widgets/QuantityEdit.py

151

97

64.2 %

gui/widgets/QuantityLabel.py

132

80

60.6 %

gui/widgets/UnitLabel.py

69

35

50.7 %

gui/widgets/UnitSelector.py

84

81

96.4 %

gui/widgets/WorkerConfigurator.py

476

313

65.8 %

gui/widgets/__init__.py

4

4

100.0 %

gui/widgets/model/AllDetectorItemModel.py

65

62

95.4 %

gui/widgets/model/CalibrantFilterProxyModel.py

34

23

67.6 %

gui/widgets/model/CalibrantItemModel.py

41

35

85.4 %

gui/widgets/model/DetectorFilterProxyModel.py

26

25

96.2 %

gui/widgets/model/__init__.py

4

4

100.0 %

gui/widgets/test/TestQuantityEdit.py

71

69

97.2 %

gui/widgets/test/__init__.py

16

14

87.5 %

integrator/__init__.py

9

9

100.0 %

integrator/azimuthal.py

1214

956

78.7 %

integrator/common.py

757

359

47.4 %

integrator/fiber.py

183

176

96.2 %

integrator/load_engines.py

166

121

72.9 %

io/__init__.py

568

371

65.3 %

io/_json.py

15

12

80.0 %

io/image.py

32

27

84.4 %

io/integration_config.py

420

346

82.4 %

io/nexus.py

437

373

85.4 %

io/ponifile.py

205

177

86.3 %

io/sparse_frame.py

153

24

15.7 %

io/spots.py

212

139

65.6 %

io/xrdml.py

77

76

98.7 %

opencl/OCLFullSplit.py

199

24

12.1 %

opencl/__init__.py

50

42

84.0 %

opencl/azim_csr.py

708

498

70.3 %

opencl/azim_hist.py

477

344

72.1 %

opencl/azim_lut.py

333

251

75.4 %

opencl/ocl_hist_pixelsplit.py

223

27

12.1 %

opencl/peak_finder.py

472

370

78.4 %

opencl/preproc.py

226

174

77.0 %

opencl/sort.py

282

223

79.1 %

opencl/test/__init__.py

27

27

100.0 %

resources/__init__.py

41

25

61.0 %

test/__init__.py

35

4

11.4 %

third_party/__init__.py

1

1

100.0 %

third_party/transformations.py

7

7

100.0 %

third_party/_local/__init__.py

4

4

100.0 %

third_party/_local/transformations.py

713

126

17.7 %

utils/__init__.py

129

75

58.1 %

utils/bayes.py

100

67

67.0 %

utils/callback.py

14

11

78.6 %

utils/decorators.py

72

70

97.2 %

utils/ellipse.py

82

79

96.3 %

utils/grid.py

87

64

73.6 %

utils/header_utils.py

74

59

79.7 %

utils/logging_utils.py

50

48

96.0 %

utils/mask_utils.py

73

41

56.2 %

utils/mathutil.py

508

357

70.3 %

utils/multiprocessing.py

18

13

72.2 %

utils/orderedset.py

54

13

24.1 %

utils/shell.py

55

46

83.6 %

utils/stringutil.py

89

81

91.0 %

pyFAI total

40536

22731

56.1 %