diff --git a/.gitignore b/.gitignore index d1b7468..00d2c60 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,14 @@ __pycache__ artistlib.egg-info -dist \ No newline at end of file +dist +/venv/ +/.venv/ +*.tif +/workspace/ +*.raw +*.stl +*.json +*.aRTist +*.ply +/build/ +/examples/ \ No newline at end of file diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..c8cfe39 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.10 diff --git a/SimulateFromList/ListOfSimulations.txt b/SimulateFromList/ListOfSimulations.txt deleted file mode 100644 index 2160ad3..0000000 --- a/SimulateFromList/ListOfSimulations.txt +++ /dev/null @@ -1,449 +0,0 @@ -ID LG LG Thickness Spot size Spot resolution Sampling ETA Source Type Source U Source I Source Filter Material Source Filter Thickness N Detector pixel size Cone beam angle Other parameters Filename Remarks -1 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.05 NxS_UB_ConeBeamAngle.tif -2 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.1 NxS_UB_ConeBeamAngle.tif -3 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.2 NxS_UB_ConeBeamAngle.tif -4 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.3 NxS_UB_ConeBeamAngle.tif -5 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.4 NxS_UB_ConeBeamAngle.tif -6 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.5 NxS_UB_ConeBeamAngle.tif -7 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.6 NxS_UB_ConeBeamAngle.tif -8 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.7 NxS_UB_ConeBeamAngle.tif -9 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.8 NxS_UB_ConeBeamAngle.tif -10 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.9 NxS_UB_ConeBeamAngle.tif -11 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1 NxS_UB_ConeBeamAngle.tif -12 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.2 NxS_UB_ConeBeamAngle.tif -13 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.4 NxS_UB_ConeBeamAngle.tif -14 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.6 NxS_UB_ConeBeamAngle.tif -15 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.8 NxS_UB_ConeBeamAngle.tif -16 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2 NxS_UB_ConeBeamAngle.tif -17 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.2 NxS_UB_ConeBeamAngle.tif -18 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.4 NxS_UB_ConeBeamAngle.tif -19 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.6 NxS_UB_ConeBeamAngle.tif -20 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.8 NxS_UB_ConeBeamAngle.tif -21 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3 NxS_UB_ConeBeamAngle.tif -22 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.2 NxS_UB_ConeBeamAngle.tif -23 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.4 NxS_UB_ConeBeamAngle.tif -24 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.6 NxS_UB_ConeBeamAngle.tif -25 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.8 NxS_UB_ConeBeamAngle.tif -26 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4 NxS_UB_ConeBeamAngle.tif -27 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.2 NxS_UB_ConeBeamAngle.tif -28 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.4 NxS_UB_ConeBeamAngle.tif -29 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.6 NxS_UB_ConeBeamAngle.tif -30 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.8 NxS_UB_ConeBeamAngle.tif -31 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5 NxS_UB_ConeBeamAngle.tif -32 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.2 NxS_UB_ConeBeamAngle.tif -33 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.4 NxS_UB_ConeBeamAngle.tif -34 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.6 NxS_UB_ConeBeamAngle.tif -35 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.8 NxS_UB_ConeBeamAngle.tif -36 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6 NxS_UB_ConeBeamAngle.tif -37 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.2 NxS_UB_ConeBeamAngle.tif -38 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.4 NxS_UB_ConeBeamAngle.tif -39 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.6 NxS_UB_ConeBeamAngle.tif -40 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.8 NxS_UB_ConeBeamAngle.tif -41 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7 NxS_UB_ConeBeamAngle.tif -42 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.2 NxS_UB_ConeBeamAngle.tif -43 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.4 NxS_UB_ConeBeamAngle.tif -44 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.6 NxS_UB_ConeBeamAngle.tif -45 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.8 NxS_UB_ConeBeamAngle.tif -46 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8 NxS_UB_ConeBeamAngle.tif -47 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.2 NxS_UB_ConeBeamAngle.tif -48 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.4 NxS_UB_ConeBeamAngle.tif -49 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.6 NxS_UB_ConeBeamAngle.tif -50 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.8 NxS_UB_ConeBeamAngle.tif -51 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9 NxS_UB_ConeBeamAngle.tif -52 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.2 NxS_UB_ConeBeamAngle.tif -53 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.4 NxS_UB_ConeBeamAngle.tif -54 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.6 NxS_UB_ConeBeamAngle.tif -55 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.8 NxS_UB_ConeBeamAngle.tif -56 6 2 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 10 NxS_UB_ConeBeamAngle.tif -57 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.05 NxS_UB_ConeBeamAngle.tif -58 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.1 NxS_UB_ConeBeamAngle.tif -59 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.2 NxS_UB_ConeBeamAngle.tif -60 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.3 NxS_UB_ConeBeamAngle.tif -61 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.4 NxS_UB_ConeBeamAngle.tif -62 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.5 NxS_UB_ConeBeamAngle.tif -63 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.6 NxS_UB_ConeBeamAngle.tif -64 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.7 NxS_UB_ConeBeamAngle.tif -65 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.8 NxS_UB_ConeBeamAngle.tif -66 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.9 NxS_UB_ConeBeamAngle.tif -67 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1 NxS_UB_ConeBeamAngle.tif -68 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.2 NxS_UB_ConeBeamAngle.tif -69 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.4 NxS_UB_ConeBeamAngle.tif -70 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.6 NxS_UB_ConeBeamAngle.tif -71 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.8 NxS_UB_ConeBeamAngle.tif -72 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2 NxS_UB_ConeBeamAngle.tif -73 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.2 NxS_UB_ConeBeamAngle.tif -74 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.4 NxS_UB_ConeBeamAngle.tif -75 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.6 NxS_UB_ConeBeamAngle.tif -76 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.8 NxS_UB_ConeBeamAngle.tif -77 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3 NxS_UB_ConeBeamAngle.tif -78 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.2 NxS_UB_ConeBeamAngle.tif -79 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.4 NxS_UB_ConeBeamAngle.tif -80 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.6 NxS_UB_ConeBeamAngle.tif -81 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.8 NxS_UB_ConeBeamAngle.tif -82 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4 NxS_UB_ConeBeamAngle.tif -83 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.2 NxS_UB_ConeBeamAngle.tif -84 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.4 NxS_UB_ConeBeamAngle.tif -85 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.6 NxS_UB_ConeBeamAngle.tif -86 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.8 NxS_UB_ConeBeamAngle.tif -87 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5 NxS_UB_ConeBeamAngle.tif -88 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.2 NxS_UB_ConeBeamAngle.tif -89 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.4 NxS_UB_ConeBeamAngle.tif -90 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.6 NxS_UB_ConeBeamAngle.tif -91 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.8 NxS_UB_ConeBeamAngle.tif -92 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6 NxS_UB_ConeBeamAngle.tif -93 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.2 NxS_UB_ConeBeamAngle.tif -94 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.4 NxS_UB_ConeBeamAngle.tif -95 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.6 NxS_UB_ConeBeamAngle.tif -96 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.8 NxS_UB_ConeBeamAngle.tif -97 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7 NxS_UB_ConeBeamAngle.tif -98 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.2 NxS_UB_ConeBeamAngle.tif -99 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.4 NxS_UB_ConeBeamAngle.tif -100 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.6 NxS_UB_ConeBeamAngle.tif -101 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.8 NxS_UB_ConeBeamAngle.tif -102 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8 NxS_UB_ConeBeamAngle.tif -103 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.2 NxS_UB_ConeBeamAngle.tif -104 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.4 NxS_UB_ConeBeamAngle.tif -105 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.6 NxS_UB_ConeBeamAngle.tif -106 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.8 NxS_UB_ConeBeamAngle.tif -107 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9 NxS_UB_ConeBeamAngle.tif -108 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.2 NxS_UB_ConeBeamAngle.tif -109 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.4 NxS_UB_ConeBeamAngle.tif -110 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.6 NxS_UB_ConeBeamAngle.tif -111 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.8 NxS_UB_ConeBeamAngle.tif -112 6 4 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 10 NxS_UB_ConeBeamAngle.tif -113 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.05 NxS_UB_ConeBeamAngle.tif -114 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.1 NxS_UB_ConeBeamAngle.tif -115 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.2 NxS_UB_ConeBeamAngle.tif -116 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.3 NxS_UB_ConeBeamAngle.tif -117 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.4 NxS_UB_ConeBeamAngle.tif -118 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.5 NxS_UB_ConeBeamAngle.tif -119 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.6 NxS_UB_ConeBeamAngle.tif -120 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.7 NxS_UB_ConeBeamAngle.tif -121 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.8 NxS_UB_ConeBeamAngle.tif -122 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.9 NxS_UB_ConeBeamAngle.tif -123 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1 NxS_UB_ConeBeamAngle.tif -124 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.2 NxS_UB_ConeBeamAngle.tif -125 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.4 NxS_UB_ConeBeamAngle.tif -126 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.6 NxS_UB_ConeBeamAngle.tif -127 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.8 NxS_UB_ConeBeamAngle.tif -128 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2 NxS_UB_ConeBeamAngle.tif -129 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.2 NxS_UB_ConeBeamAngle.tif -130 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.4 NxS_UB_ConeBeamAngle.tif -131 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.6 NxS_UB_ConeBeamAngle.tif -132 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.8 NxS_UB_ConeBeamAngle.tif -133 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3 NxS_UB_ConeBeamAngle.tif -134 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.2 NxS_UB_ConeBeamAngle.tif -135 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.4 NxS_UB_ConeBeamAngle.tif -136 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.6 NxS_UB_ConeBeamAngle.tif -137 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.8 NxS_UB_ConeBeamAngle.tif -138 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4 NxS_UB_ConeBeamAngle.tif -139 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.2 NxS_UB_ConeBeamAngle.tif -140 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.4 NxS_UB_ConeBeamAngle.tif -141 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.6 NxS_UB_ConeBeamAngle.tif -142 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.8 NxS_UB_ConeBeamAngle.tif -143 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5 NxS_UB_ConeBeamAngle.tif -144 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.2 NxS_UB_ConeBeamAngle.tif -145 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.4 NxS_UB_ConeBeamAngle.tif -146 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.6 NxS_UB_ConeBeamAngle.tif -147 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.8 NxS_UB_ConeBeamAngle.tif -148 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6 NxS_UB_ConeBeamAngle.tif -149 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.2 NxS_UB_ConeBeamAngle.tif -150 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.4 NxS_UB_ConeBeamAngle.tif -151 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.6 NxS_UB_ConeBeamAngle.tif -152 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.8 NxS_UB_ConeBeamAngle.tif -153 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7 NxS_UB_ConeBeamAngle.tif -154 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.2 NxS_UB_ConeBeamAngle.tif -155 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.4 NxS_UB_ConeBeamAngle.tif -156 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.6 NxS_UB_ConeBeamAngle.tif -157 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.8 NxS_UB_ConeBeamAngle.tif -158 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8 NxS_UB_ConeBeamAngle.tif -159 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.2 NxS_UB_ConeBeamAngle.tif -160 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.4 NxS_UB_ConeBeamAngle.tif -161 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.6 NxS_UB_ConeBeamAngle.tif -162 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.8 NxS_UB_ConeBeamAngle.tif -163 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9 NxS_UB_ConeBeamAngle.tif -164 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.2 NxS_UB_ConeBeamAngle.tif -165 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.4 NxS_UB_ConeBeamAngle.tif -166 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.6 NxS_UB_ConeBeamAngle.tif -167 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.8 NxS_UB_ConeBeamAngle.tif -168 6 6 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 10 NxS_UB_ConeBeamAngle.tif -169 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.05 NxS_UB_ConeBeamAngle.tif -170 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.1 NxS_UB_ConeBeamAngle.tif -171 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.2 NxS_UB_ConeBeamAngle.tif -172 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.3 NxS_UB_ConeBeamAngle.tif -173 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.4 NxS_UB_ConeBeamAngle.tif -174 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.5 NxS_UB_ConeBeamAngle.tif -175 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.6 NxS_UB_ConeBeamAngle.tif -176 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.7 NxS_UB_ConeBeamAngle.tif -177 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.8 NxS_UB_ConeBeamAngle.tif -178 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.9 NxS_UB_ConeBeamAngle.tif -179 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1 NxS_UB_ConeBeamAngle.tif -180 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.2 NxS_UB_ConeBeamAngle.tif -181 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.4 NxS_UB_ConeBeamAngle.tif -182 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.6 NxS_UB_ConeBeamAngle.tif -183 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.8 NxS_UB_ConeBeamAngle.tif -184 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2 NxS_UB_ConeBeamAngle.tif -185 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.2 NxS_UB_ConeBeamAngle.tif -186 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.4 NxS_UB_ConeBeamAngle.tif -187 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.6 NxS_UB_ConeBeamAngle.tif -188 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.8 NxS_UB_ConeBeamAngle.tif -189 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3 NxS_UB_ConeBeamAngle.tif -190 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.2 NxS_UB_ConeBeamAngle.tif -191 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.4 NxS_UB_ConeBeamAngle.tif -192 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.6 NxS_UB_ConeBeamAngle.tif -193 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.8 NxS_UB_ConeBeamAngle.tif -194 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4 NxS_UB_ConeBeamAngle.tif -195 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.2 NxS_UB_ConeBeamAngle.tif -196 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.4 NxS_UB_ConeBeamAngle.tif -197 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.6 NxS_UB_ConeBeamAngle.tif -198 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.8 NxS_UB_ConeBeamAngle.tif -199 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5 NxS_UB_ConeBeamAngle.tif -200 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.2 NxS_UB_ConeBeamAngle.tif -201 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.4 NxS_UB_ConeBeamAngle.tif -202 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.6 NxS_UB_ConeBeamAngle.tif -203 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.8 NxS_UB_ConeBeamAngle.tif -204 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6 NxS_UB_ConeBeamAngle.tif -205 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.2 NxS_UB_ConeBeamAngle.tif -206 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.4 NxS_UB_ConeBeamAngle.tif -207 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.6 NxS_UB_ConeBeamAngle.tif -208 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.8 NxS_UB_ConeBeamAngle.tif -209 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7 NxS_UB_ConeBeamAngle.tif -210 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.2 NxS_UB_ConeBeamAngle.tif -211 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.4 NxS_UB_ConeBeamAngle.tif -212 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.6 NxS_UB_ConeBeamAngle.tif -213 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.8 NxS_UB_ConeBeamAngle.tif -214 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8 NxS_UB_ConeBeamAngle.tif -215 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.2 NxS_UB_ConeBeamAngle.tif -216 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.4 NxS_UB_ConeBeamAngle.tif -217 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.6 NxS_UB_ConeBeamAngle.tif -218 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.8 NxS_UB_ConeBeamAngle.tif -219 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9 NxS_UB_ConeBeamAngle.tif -220 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.2 NxS_UB_ConeBeamAngle.tif -221 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.4 NxS_UB_ConeBeamAngle.tif -222 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.6 NxS_UB_ConeBeamAngle.tif -223 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.8 NxS_UB_ConeBeamAngle.tif -224 6 8 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 10 NxS_UB_ConeBeamAngle.tif -225 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.05 NxS_UB_ConeBeamAngle.tif -226 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.1 NxS_UB_ConeBeamAngle.tif -227 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.2 NxS_UB_ConeBeamAngle.tif -228 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.3 NxS_UB_ConeBeamAngle.tif -229 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.4 NxS_UB_ConeBeamAngle.tif -230 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.5 NxS_UB_ConeBeamAngle.tif -231 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.6 NxS_UB_ConeBeamAngle.tif -232 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.7 NxS_UB_ConeBeamAngle.tif -233 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.8 NxS_UB_ConeBeamAngle.tif -234 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.9 NxS_UB_ConeBeamAngle.tif -235 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1 NxS_UB_ConeBeamAngle.tif -236 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.2 NxS_UB_ConeBeamAngle.tif -237 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.4 NxS_UB_ConeBeamAngle.tif -238 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.6 NxS_UB_ConeBeamAngle.tif -239 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.8 NxS_UB_ConeBeamAngle.tif -240 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2 NxS_UB_ConeBeamAngle.tif -241 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.2 NxS_UB_ConeBeamAngle.tif -242 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.4 NxS_UB_ConeBeamAngle.tif -243 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.6 NxS_UB_ConeBeamAngle.tif -244 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.8 NxS_UB_ConeBeamAngle.tif -245 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3 NxS_UB_ConeBeamAngle.tif -246 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.2 NxS_UB_ConeBeamAngle.tif -247 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.4 NxS_UB_ConeBeamAngle.tif -248 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.6 NxS_UB_ConeBeamAngle.tif -249 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.8 NxS_UB_ConeBeamAngle.tif -250 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4 NxS_UB_ConeBeamAngle.tif -251 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.2 NxS_UB_ConeBeamAngle.tif -252 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.4 NxS_UB_ConeBeamAngle.tif -253 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.6 NxS_UB_ConeBeamAngle.tif -254 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.8 NxS_UB_ConeBeamAngle.tif -255 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5 NxS_UB_ConeBeamAngle.tif -256 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.2 NxS_UB_ConeBeamAngle.tif -257 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.4 NxS_UB_ConeBeamAngle.tif -258 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.6 NxS_UB_ConeBeamAngle.tif -259 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.8 NxS_UB_ConeBeamAngle.tif -260 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6 NxS_UB_ConeBeamAngle.tif -261 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.2 NxS_UB_ConeBeamAngle.tif -262 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.4 NxS_UB_ConeBeamAngle.tif -263 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.6 NxS_UB_ConeBeamAngle.tif -264 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.8 NxS_UB_ConeBeamAngle.tif -265 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7 NxS_UB_ConeBeamAngle.tif -266 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.2 NxS_UB_ConeBeamAngle.tif -267 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.4 NxS_UB_ConeBeamAngle.tif -268 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.6 NxS_UB_ConeBeamAngle.tif -269 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.8 NxS_UB_ConeBeamAngle.tif -270 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8 NxS_UB_ConeBeamAngle.tif -271 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.2 NxS_UB_ConeBeamAngle.tif -272 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.4 NxS_UB_ConeBeamAngle.tif -273 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.6 NxS_UB_ConeBeamAngle.tif -274 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.8 NxS_UB_ConeBeamAngle.tif -275 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9 NxS_UB_ConeBeamAngle.tif -276 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.2 NxS_UB_ConeBeamAngle.tif -277 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.4 NxS_UB_ConeBeamAngle.tif -278 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.6 NxS_UB_ConeBeamAngle.tif -279 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.8 NxS_UB_ConeBeamAngle.tif -280 6 10 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 10 NxS_UB_ConeBeamAngle.tif -281 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.05 NxS_UB_ConeBeamAngle.tif -282 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.1 NxS_UB_ConeBeamAngle.tif -283 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.2 NxS_UB_ConeBeamAngle.tif -284 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.3 NxS_UB_ConeBeamAngle.tif -285 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.4 NxS_UB_ConeBeamAngle.tif -286 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.5 NxS_UB_ConeBeamAngle.tif -287 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.6 NxS_UB_ConeBeamAngle.tif -288 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.7 NxS_UB_ConeBeamAngle.tif -289 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.8 NxS_UB_ConeBeamAngle.tif -290 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.9 NxS_UB_ConeBeamAngle.tif -291 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1 NxS_UB_ConeBeamAngle.tif -292 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.2 NxS_UB_ConeBeamAngle.tif -293 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.4 NxS_UB_ConeBeamAngle.tif -294 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.6 NxS_UB_ConeBeamAngle.tif -295 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.8 NxS_UB_ConeBeamAngle.tif -296 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2 NxS_UB_ConeBeamAngle.tif -297 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.2 NxS_UB_ConeBeamAngle.tif -298 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.4 NxS_UB_ConeBeamAngle.tif -299 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.6 NxS_UB_ConeBeamAngle.tif -300 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.8 NxS_UB_ConeBeamAngle.tif -301 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3 NxS_UB_ConeBeamAngle.tif -302 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.2 NxS_UB_ConeBeamAngle.tif -303 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.4 NxS_UB_ConeBeamAngle.tif -304 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.6 NxS_UB_ConeBeamAngle.tif -305 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.8 NxS_UB_ConeBeamAngle.tif -306 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4 NxS_UB_ConeBeamAngle.tif -307 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.2 NxS_UB_ConeBeamAngle.tif -308 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.4 NxS_UB_ConeBeamAngle.tif -309 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.6 NxS_UB_ConeBeamAngle.tif -310 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.8 NxS_UB_ConeBeamAngle.tif -311 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5 NxS_UB_ConeBeamAngle.tif -312 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.2 NxS_UB_ConeBeamAngle.tif -313 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.4 NxS_UB_ConeBeamAngle.tif -314 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.6 NxS_UB_ConeBeamAngle.tif -315 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.8 NxS_UB_ConeBeamAngle.tif -316 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6 NxS_UB_ConeBeamAngle.tif -317 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.2 NxS_UB_ConeBeamAngle.tif -318 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.4 NxS_UB_ConeBeamAngle.tif -319 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.6 NxS_UB_ConeBeamAngle.tif -320 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.8 NxS_UB_ConeBeamAngle.tif -321 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7 NxS_UB_ConeBeamAngle.tif -322 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.2 NxS_UB_ConeBeamAngle.tif -323 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.4 NxS_UB_ConeBeamAngle.tif -324 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.6 NxS_UB_ConeBeamAngle.tif -325 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.8 NxS_UB_ConeBeamAngle.tif -326 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8 NxS_UB_ConeBeamAngle.tif -327 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.2 NxS_UB_ConeBeamAngle.tif -328 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.4 NxS_UB_ConeBeamAngle.tif -329 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.6 NxS_UB_ConeBeamAngle.tif -330 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.8 NxS_UB_ConeBeamAngle.tif -331 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9 NxS_UB_ConeBeamAngle.tif -332 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.2 NxS_UB_ConeBeamAngle.tif -333 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.4 NxS_UB_ConeBeamAngle.tif -334 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.6 NxS_UB_ConeBeamAngle.tif -335 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.8 NxS_UB_ConeBeamAngle.tif -336 6 12 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 10 NxS_UB_ConeBeamAngle.tif -337 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.05 NxS_UB_ConeBeamAngle.tif -338 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.1 NxS_UB_ConeBeamAngle.tif -339 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.2 NxS_UB_ConeBeamAngle.tif -340 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.3 NxS_UB_ConeBeamAngle.tif -341 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.4 NxS_UB_ConeBeamAngle.tif -342 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.5 NxS_UB_ConeBeamAngle.tif -343 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.6 NxS_UB_ConeBeamAngle.tif -344 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.7 NxS_UB_ConeBeamAngle.tif -345 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.8 NxS_UB_ConeBeamAngle.tif -346 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.9 NxS_UB_ConeBeamAngle.tif -347 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1 NxS_UB_ConeBeamAngle.tif -348 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.2 NxS_UB_ConeBeamAngle.tif -349 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.4 NxS_UB_ConeBeamAngle.tif -350 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.6 NxS_UB_ConeBeamAngle.tif -351 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.8 NxS_UB_ConeBeamAngle.tif -352 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2 NxS_UB_ConeBeamAngle.tif -353 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.2 NxS_UB_ConeBeamAngle.tif -354 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.4 NxS_UB_ConeBeamAngle.tif -355 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.6 NxS_UB_ConeBeamAngle.tif -356 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.8 NxS_UB_ConeBeamAngle.tif -357 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3 NxS_UB_ConeBeamAngle.tif -358 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.2 NxS_UB_ConeBeamAngle.tif -359 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.4 NxS_UB_ConeBeamAngle.tif -360 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.6 NxS_UB_ConeBeamAngle.tif -361 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.8 NxS_UB_ConeBeamAngle.tif -362 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4 NxS_UB_ConeBeamAngle.tif -363 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.2 NxS_UB_ConeBeamAngle.tif -364 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.4 NxS_UB_ConeBeamAngle.tif -365 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.6 NxS_UB_ConeBeamAngle.tif -366 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.8 NxS_UB_ConeBeamAngle.tif -367 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5 NxS_UB_ConeBeamAngle.tif -368 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.2 NxS_UB_ConeBeamAngle.tif -369 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.4 NxS_UB_ConeBeamAngle.tif -370 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.6 NxS_UB_ConeBeamAngle.tif -371 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.8 NxS_UB_ConeBeamAngle.tif -372 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6 NxS_UB_ConeBeamAngle.tif -373 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.2 NxS_UB_ConeBeamAngle.tif -374 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.4 NxS_UB_ConeBeamAngle.tif -375 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.6 NxS_UB_ConeBeamAngle.tif -376 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.8 NxS_UB_ConeBeamAngle.tif -377 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7 NxS_UB_ConeBeamAngle.tif -378 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.2 NxS_UB_ConeBeamAngle.tif -379 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.4 NxS_UB_ConeBeamAngle.tif -380 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.6 NxS_UB_ConeBeamAngle.tif -381 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.8 NxS_UB_ConeBeamAngle.tif -382 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8 NxS_UB_ConeBeamAngle.tif -383 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.2 NxS_UB_ConeBeamAngle.tif -384 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.4 NxS_UB_ConeBeamAngle.tif -385 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.6 NxS_UB_ConeBeamAngle.tif -386 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.8 NxS_UB_ConeBeamAngle.tif -387 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9 NxS_UB_ConeBeamAngle.tif -388 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.2 NxS_UB_ConeBeamAngle.tif -389 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.4 NxS_UB_ConeBeamAngle.tif -390 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.6 NxS_UB_ConeBeamAngle.tif -391 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.8 NxS_UB_ConeBeamAngle.tif -392 6 14 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 10 NxS_UB_ConeBeamAngle.tif -393 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.05 NxS_UB_ConeBeamAngle.tif -394 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.1 NxS_UB_ConeBeamAngle.tif -395 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.2 NxS_UB_ConeBeamAngle.tif -396 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.3 NxS_UB_ConeBeamAngle.tif -397 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.4 NxS_UB_ConeBeamAngle.tif -398 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.5 NxS_UB_ConeBeamAngle.tif -399 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.6 NxS_UB_ConeBeamAngle.tif -400 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.7 NxS_UB_ConeBeamAngle.tif -401 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.8 NxS_UB_ConeBeamAngle.tif -402 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 0.9 NxS_UB_ConeBeamAngle.tif -403 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1 NxS_UB_ConeBeamAngle.tif -404 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.2 NxS_UB_ConeBeamAngle.tif -405 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.4 NxS_UB_ConeBeamAngle.tif -406 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.6 NxS_UB_ConeBeamAngle.tif -407 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 1.8 NxS_UB_ConeBeamAngle.tif -408 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2 NxS_UB_ConeBeamAngle.tif -409 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.2 NxS_UB_ConeBeamAngle.tif -410 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.4 NxS_UB_ConeBeamAngle.tif -411 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.6 NxS_UB_ConeBeamAngle.tif -412 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 2.8 NxS_UB_ConeBeamAngle.tif -413 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3 NxS_UB_ConeBeamAngle.tif -414 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.2 NxS_UB_ConeBeamAngle.tif -415 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.4 NxS_UB_ConeBeamAngle.tif -416 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.6 NxS_UB_ConeBeamAngle.tif -417 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 3.8 NxS_UB_ConeBeamAngle.tif -418 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4 NxS_UB_ConeBeamAngle.tif -419 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.2 NxS_UB_ConeBeamAngle.tif -420 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.4 NxS_UB_ConeBeamAngle.tif -421 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.6 NxS_UB_ConeBeamAngle.tif -422 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 4.8 NxS_UB_ConeBeamAngle.tif -423 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5 NxS_UB_ConeBeamAngle.tif -424 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.2 NxS_UB_ConeBeamAngle.tif -425 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.4 NxS_UB_ConeBeamAngle.tif -426 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.6 NxS_UB_ConeBeamAngle.tif -427 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 5.8 NxS_UB_ConeBeamAngle.tif -428 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6 NxS_UB_ConeBeamAngle.tif -429 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.2 NxS_UB_ConeBeamAngle.tif -430 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.4 NxS_UB_ConeBeamAngle.tif -431 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.6 NxS_UB_ConeBeamAngle.tif -432 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 6.8 NxS_UB_ConeBeamAngle.tif -433 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7 NxS_UB_ConeBeamAngle.tif -434 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.2 NxS_UB_ConeBeamAngle.tif -435 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.4 NxS_UB_ConeBeamAngle.tif -436 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.6 NxS_UB_ConeBeamAngle.tif -437 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 7.8 NxS_UB_ConeBeamAngle.tif -438 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8 NxS_UB_ConeBeamAngle.tif -439 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.2 NxS_UB_ConeBeamAngle.tif -440 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.4 NxS_UB_ConeBeamAngle.tif -441 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.6 NxS_UB_ConeBeamAngle.tif -442 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 8.8 NxS_UB_ConeBeamAngle.tif -443 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9 NxS_UB_ConeBeamAngle.tif -444 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.2 NxS_UB_ConeBeamAngle.tif -445 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.4 NxS_UB_ConeBeamAngle.tif -446 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.6 NxS_UB_ConeBeamAngle.tif -447 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 9.8 NxS_UB_ConeBeamAngle.tif -448 6 16 0.002 301 1089 0 Mono 50 1 VOID 0 10 0.1 10 NxS_UB_ConeBeamAngle.tif diff --git a/SimulateFromList/SimulateFromList.py b/SimulateFromList/SimulateFromList.py deleted file mode 100644 index addd95e..0000000 --- a/SimulateFromList/SimulateFromList.py +++ /dev/null @@ -1,146 +0,0 @@ -# -*- coding: utf-8 -*- -""" -Created on Tue May 31 11:04:16 2022 - -@author: dschumac - -The aRTist.py library needs to be present! -This is an example scipt which shows how to use a spreadsheet to simulate a bunch of images. The corresponding spreadsheet for this script is as a tab-separeted text-file ("ListOfSimulations.txt"). -Each row in the spreadsheet corresponds to a single aRTist simulation. The colums represent the individual simulation parameters. -The given comlumns need to be adapted according to the simulation task, as the script needs to be! - -""" - -import pandas as pd -import os -import sys -sys.path.insert(1, '[Your python library directory]/aRTist-PythonLib') -import aRTist -import math - - - - -######################## Options ############################### -''' aRTist connection ''' -HOST = "127.0.0.1" # localhost -PORT = 3658 # port @HOST -buffer = 1024 # package size -timeout = 10 # TimeOut in sec - - - -''' Path ''' -#Cone Beam -path_script = "[Your directory]/ListOfSimulations.txt" -path_save_images = "[Your directory]/Images_UB_ConeBeam/" - - - - -############################################################################## -''' Read Script file''' - -data = pd.read_csv(path_script, sep="\t", encoding='mbcs') #Read data -data.dropna(axis=0, how='all', inplace=True) #Delete empty rows -data["Filename"].fillna('NA', inplace = True) #Replace empty file names with "NA" -data_sort = data.sort_values(by=['ETA', 'ID']) #sort by ID and spot size - - -############################################################################### -''' Connect to aRTist ''' -Con = aRTist.Connection(HOST, PORT, buffer, timeout) - -############################################################################### -aRTist.Connection.send(Con, aRTist.SETUP_Preview(1)) - -"""Source Setup""" -SourceZ = 10 #Random SZ pos, outside of object -SourcekV = data_sort['Source U'].iloc[0] -SourcemA = data_sort['Source I'].iloc[0] -SourceType = data_sort['Source Type'].iloc[0] -SourceFilterMat = data_sort['Source Filter Material'].iloc[0] -SourceFilterTh = data_sort['Source Filter Thickness'].iloc[0] -sampling = data_sort['Sampling'].iloc[0] - -aRTist.Connection.send(Con, aRTist.SETUP_source(SourceZ, SourcekV, SourcemA, SourceType, SourceFilterMat, SourceFilterTh)) -aRTist.Connection.send(Con, aRTist.SETUP_SourceSampling(sampling)) - - -eta_out = -1 # for checking if ETA has changed -FS_out = -1 # for checking if FS has changed - -for index, row in data_sort.iterrows(): - - Fname = data_sort.loc[index, 'Filename'] - Fname = os.path.splitext(Fname)[0] #extract name without extension - - """Detector position and pixel size""" - PixelSize = data_sort.loc[index, 'Detector pixel size'] - - - """Spot Setup""" - FS = data_sort.loc[index, 'Spot size'] - eta = data_sort.loc[index, 'ETA'] - SpotRes = data_sort.loc[index, 'Spot resolution'] - - """Scene Setup""" - LG = data_sort.loc[index, 'LG'] - name = 'LG{:.0f}'.format(LG) # create object name similar to list in aRTist - Obj = aRTist.Connection.send(Con, aRTist.get_ObjID(name)).split() # Query Object ID from name - OID = Obj[1] # isolate Object ID - aRTist.Connection.send(Con, aRTist.set_vis_AllParts("off")) # set visibility of all objects off - aRTist.Connection.send(Con, aRTist.set_vis(OID, 'on')) # activate object with only - - """Calc magnification, source and detector Z pos""" - cba = data_sort.loc[index, 'Cone beam angle'] # Read cone beam angle - CBA = cba*math.pi/180 # Degree to radian - - GW = LG*9 # group width for 5 lines and 4 gaps in um!! - N = data_sort.loc[index, 'N'] # No. of pixels representing unsharpness - Mag = N*PixelSize/FS+1 # Magnification - SZ = (GW/1000) / (2 * math.sin(CBA)) # Source Z position (SOD) - DetZ = -SZ * (Mag-1) # Detector Z position (SOD) - aRTist.Connection.send(Con, aRTist.set_position('S', 0, 0, SZ)) - - '''Set object thickness (and other dimensions)''' - sizeX = GW*10/3000 - sizeY = GW/1000 - sizeZ = data_sort.loc[index, 'LG Thickness']/1000 - aRTist.Connection.send(Con, aRTist.resize(OID, sizeX, sizeY, sizeZ)) - - - """Calc Detector Size""" - ePS = PixelSize*1000 / Mag # effective pixel size - DetSizeX = int(GW / ePS * 1.5) # Detector length 1.5x group width to limit calc and analysis time - DetSizeY = int(GW / ePS * 2.5) # Detector widht 2.5x group width to allow for background fitting - aRTist.Connection.send(Con, aRTist.SETUP_detector(DetZ, 0, DetSizeX, DetSizeY, PixelSize, 'max', 50000)) - - - if eta != eta_out or FS != FS_out: # Only calc new source when ETA or FS have changed - aRTist.Connection.send(Con, aRTist.SETUP_CalcFocalspot(FS, FS, eta, SpotRes)) - - - aRTist.Connection.send(Con, aRTist.Clear_FF()) - aRTist.Connection.send(Con, aRTist.AutoAcq_FF(1)) - eta_out = eta - FS_out = FS - - aRTist.Connection.send(Con, aRTist.RenderPreview()) - - - #Print name to update user - # print('ID={}, ETA={:.1f}; LG={:.0f} um; Spot={:.1f} um; Sampling={:.0f}; N={:.1f}; {}'.format(index, eta, LG, FS*1000, sampling, N, Fname)) - print('ID={}, CB={:.2f}°; ETA={:.1f}; LG={:.0f} um; Thickness {:.0f} um; Spot={:.1f} um; Sampling={}; N={:.1f}; {}'.format(index, cba, eta, LG, sizeZ*1000, FS*1000, sampling, N, Fname)) - ResFname = '{}_CB{:.2f}_ETA{:.1f}_LG{:.0f}_Th{:.0f}_FS{:.1f}um_Sampling{}_N{:.1f}.tif'.format(Fname, cba, eta, LG, sizeZ*1000, FS*1000, sampling, N) - ResPath = path_save_images + ResFname - - - aRTist.Connection.send(Con, aRTist.make_image()) - aRTist.Connection.send(Con, aRTist.save_image(ResPath)) - - - -############################################################################### -''' Close Connection to aRTist''' -Con.S.close() diff --git a/Standalones/ParticlesAndPores/CreateParticlePoreMatrix.py b/Standalones/ParticlesAndPores/CreateParticlePoreMatrix.py deleted file mode 100644 index 6e5d4db..0000000 --- a/Standalones/ParticlesAndPores/CreateParticlePoreMatrix.py +++ /dev/null @@ -1,316 +0,0 @@ -# -*- coding: utf-8 -*- -""" -Created on Fri Oct 30 16:20:50 2020 - -@author: David Schumacher -""" -import socket -import numpy as np -import csv - -########################### Options #################################### -''' aRTist connection ''' -HOST = "127.0.0.1" # localhost -PORT = 3658 # port @HOST -BUFFER_SIZE = 1024 # package size -timeout = 10 # TimeOut in sec - -''' aRTist setup ''' -SolidModNo = 16 # Number of module "Solid" in aRTist (Modules/XX. Solid) - -''' Particles/Pores ''' -D_max = 100 # max particle diameter in micrometer -P_max = 30 # max pore diameter in micrometer -P_min = 5 # min pore diameter in micrometer - -N_ParX = 2 # No. of particles in X-direction -N_ParY = 2 # No. of particles in X-direction - -Mat_par = "{Fe}" # Material of Particle -Mat_pore = "{VOID}" # Material of Pore - - -MAG = 50 # magnification -SDD = 400 # source-detector distance in mm -pitch = 0.1 # ative pixel size (pitch) of the detector in mm -DBorder = 1.5 # detector border (1/2), Factor (particle size) - -DetX = 500 # Detector resolution X -DetY = 500 # Detector resolution Y - -kV = 150 # Voltage of X-ray source -mA = 100 # Current of X-ray source - -''' Paths ''' -path_aRTist_scene = "I:/Simulations/TMP/Pores/Pore_Matrix_Scene.aRTist" -path_save = "I:/Simulations/TMP/Pores/Coordinates_" - - - -error = 0 - -########################### aRTist functions (to be replaced by library!) ################################# -''' Communication with aRTist ''' -def aRTist_connect(): - S = socket.socket() # Create socket (for TCP) - S.connect((HOST, PORT)) # Connect to aRTist - S.settimeout(timeout) - return S - -def aRTist_sent(x): - total = "" - for i in range(len(x)): - # print(i+1, "of", len(x), " commands send") - # print(x[i]) - S.send(x[i].encode()) - total = total + aRTist_listen(1) - return total - -def aRTist_listen(command_no): - total = "" - stop = False - if (command_no == 0): - S.settimeout(0.2) - while (not stop):# and ("SUCCESS" not in total) and ("ERROR" not in total): # as long as server doesn't respond and doesn't contain "SUCCESS" - try: - msg = S.recv(BUFFER_SIZE).decode() # - except socket.timeout as e: - err = e.args[0] - if err == "timed out": - print("Timeout\n") - stop = True - continue - else: - if ("SUCCESS" in msg): - total = total + msg - # print(msg) - stop = True - continue - elif ("ERROR" in msg): - total = total + msg - # print(msg) - stop = True - global error - error = error + 1 - continue - else: - # print(msg) - if (command_no == 0): - print(msg) - total = total + msg - S.settimeout(timeout) - return total - -''' aRTist specific commands ''' -def aRTist_setup(Path): - STR = ["""FileIO::OpenAny """+ Path +"""; -"""] - return STR - -def aRTist_SETUP_detector(x, y, px): - STR = ["""set ::Xdetector(Type) {flat panel}; -""","""set ::Xsetup_private(DGauto) {Size}; -""","""set ::Xsetup(DetectorPixelX) """+ str((int(x))) +"""; -""","""set ::Xsetup(DetectorPixelY) """+ str((int(y))) +"""; -""","""set ::Xsetup_private(DGdx) """+ str(px) +"""; -""","""set ::Xsetup_private(DGdy) """+ str(px) +"""; -""","""set ::Xdetector(AutoD) {max}; -""","""set ::Xdetector(RefGV) 50000; -""","""::XDetector::UpdateGeometry 1; -"""] - return STR - -def aRTist_SETUP_source(pos, kV, mA): - STR = ["""set ::Xsetup(SourceSampling) {point}; -""","""set ::Xsource(Exposure) """+ str(mA) +"""; -""","""set ::Xsource(Tube) {Mono}; -""","""set ::Xsource(Voltage) """+ str(kV) +"""; -""","""::PartList::Invoke S SetPosition 0 0 """+ str(pos) +"""; -""","""::PartList::Invoke S SetRefPos 0 0 """+ str(pos) +"""; -""","""set ::Xdetector(FFCorrRun) 0; -""","""XDetector::FFCorrClearCmd; -""","""::XSource::spectrumOK; -"""] # set ::Engine::RenderPreview 0; - return STR - -def aRTist_SETUP_FFcorr(): - STR = ["""::XDetector::FFCorrGenCmd; -"""] - return STR - -def aRTist_create_sphere(R): - R = 2 * R - STR = ["""::Modules::Run Solid; -""","""set ::Modules::Module""" +str(SolidModNo)+"""::Solid(Type) {ellipsoid}; -""","""set ::Modules::Module""" +str(SolidModNo)+"""::Solid(Equilateral) 1; -""","""set ::Modules::Module""" +str(SolidModNo)+"""::Solid(X) """+ str(R) +"""; -""","""set ::Modules::Module""" +str(SolidModNo)+"""::Solid(PhiResolution) 80; -""","""set ::Modules::Module""" +str(SolidModNo)+"""::Solid(ThetaResolution) 80; -""","""set ::Modules::Module""" +str(SolidModNo)+"""::Solid(GridEllipsoid) 1; -""","""set ::Modules::Module""" +str(SolidModNo)+"""::Solid(VolumeCorrect) 1; -""","""::Modules::Module""" +str(SolidModNo)+"""::GenerateCmd; -"""] - return STR - -def aRTist_set_material(ID, mat): - STR = ["""::PartList::Set """+ str(ID) +""" Material """+ mat +"""; -"""] - return STR - -def aRTist_set_position(ID, x, y, z): - STR = ["""::PartList::Invoke """+ str(ID) +""" SetPosition """+ str(x) +""" """+ str(y) +""" """+ str(z) +"""; -""","""::PartList::Invoke """+ str(ID) +""" SetRefPos """+ str(x) +""" """+ str(y) +""" """+ str(z) +"""; -"""] - return STR - -def aRTist_translate(ID, x, y, z): - STR = ["""::PartList::Invoke """+ str(ID) +""" Translate world """+ str(x) +""" """+ str(y) +""" """+ str(z) +"""; -"""] - return STR - - -def aRTist_vis_off(): - STR = ["""::PartList::Set parts Visible off; -"""] - return STR - -def aRTist_vis_on(ID): - STR = ["""::PartList::Set """+str(ID)+""" Visible on; -"""] - return STR - -def aRTist_resize(ID, size): - STR = ["""::PartList::Invoke """+str(ID)+""" SetSize """+str(size)+""" """+str(size)+""" """+str(size)+"""; -"""] - return STR - -def aRTist_make_image(): - STR = ["""::Engine::StartStopCmd; -"""] - return STR - -def aRTist_save_image(Path): - STR = ["""::Modules::Execute ImageViewer Save16bit """+ Path +""" 1; -"""] - return STR - - - -########################## Conversions ################################ -''' Particle/Pore ''' - -R_max = D_max / 2 / 1000 # max. particle radius in mm -r_max = P_max / 2 / 1000 # max. pore radius in mm -r_min = P_min / 2 / 1000 # min. pore radius in mm - -''' Detector/Source ''' -OZ = SDD / MAG # position of object (in Z-direction) -OZ = SDD - OZ -VX = pitch / MAG # voxel size , i.e. eff. pixel size -DETxy = (DBorder * D_max) / VX / 1000 # detector size (square) in pixel - -P_xy = (DETxy / 2) * VX * 0.9 # origin of particle range[x][y] with 10% border - -############################################################################### - -P_count = N_ParX*N_ParY #No. of Particles/Pores - - -############################################################################### -''' Connect to aRTist ''' -S = aRTist_connect() - -aRTist_listen(0) - -############################################################################### -''' SETUP aRTist scene ''' -print("SETUP aRTist scene") -aRTist_sent(aRTist_setup(path_aRTist_scene)) -print("SETUP Detector aRTist-Scene") -aRTist_sent(aRTist_SETUP_detector(DetX, DetY, pitch)) -print("SETUP Source aRTist-Scene") -aRTist_sent(aRTist_SETUP_source(SDD, kV, mA)) -print("SETUP FFcorr aRTist-Scene") -aRTist_sent(aRTist_SETUP_FFcorr()) -aRTist_sent(["""set ::Xdetector(FFCorrRun) 1; -"""]) #to check!! -print("SETUP FINISH aRTist-Scene") - -############################################################################### -'''Calc Particle/Pore positions:''' -P_ID, P_RAD, P_XYZ, p_RAD, p_ID = [],[],[],[],[] # List of all particles/pores - -n = 0 #loop count -for i in range(N_ParY): - for ii in range(N_ParX): - n += 1 #increment n by 1 - if (i % 2): #ii is odd - X = 2*R_max*ii + R_max - else: #ii is even (incl. 0) - X = 2*R_max*ii # particle position x - - Y = np.sqrt(3*R_max**2)*i # particle position x - - P_XYZ.append([X, Y, OZ]) - P_ID.append(2*n-1) # Particle-ID - p_ID.append(2*n) # Pore-ID - P_RAD.append(R_max) - -print(P_ID) -print(p_ID) -print(P_XYZ) - -############################################################################## -'''Calc Pore distribution:''' -p_RAD = list(np.linspace(r_min, r_max, num=P_count)) #list of pore radii - -############################################################################## -''' Create particles and pores in aRTist ''' -n = -1 #loop count -for i in range(N_ParY): - for ii in range(N_ParX): - n += 1 #increment n by 1 - # Particle - print("Create Particle ", n+1 , "of", P_count) - aRTist_sent(aRTist_create_sphere(R_max)) - aRTist_sent(aRTist_set_material(P_ID[n], Mat_par)) - aRTist_sent(aRTist_set_position(P_ID[n], P_XYZ[n][0], P_XYZ[n][1], P_XYZ[n][2])) - - - # Pore - aRTist_sent(aRTist_create_sphere(p_RAD[n])) - aRTist_sent(aRTist_set_material(p_ID[n], Mat_pore)) - aRTist_sent(aRTist_set_position(p_ID[n], P_XYZ[n][0], P_XYZ[n][1], P_XYZ[n][2])) - - if (i == range(N_ParY)[-1]): - aRTist_sent(["""::Modules::Module""" +str(SolidModNo)+"""::Close; - """]) - -############################################################################## -'Center middle particle at [0,0,z]' - -Shift = [] -for i in range(len(P_XYZ[0])): - diff = (P_XYZ[0][i] - P_XYZ[-1][i]) / 2 - Shift.append(diff) - -aRTist_sent(aRTist_translate('Parts', Shift[0], Shift[1] , Shift[2])) - - - -####################### Save coordinates in CSV #################################### -header = ["Particle ID", "Particle Diameter", "Pore ID", "Pore Diameter", "X", "Y", "Z"] - -with open(path_save +"data.csv", "w", newline ='') as file: - write = csv.writer(file) - write.writerow(header) - - for i in range(P_count): - row = [str(P_ID[i]), str(2*P_RAD[i]), str(p_ID[i]), str(2*p_RAD[i]), str(P_XYZ[i][0]), str(P_XYZ[i][1]), str(P_XYZ[i][2])] - write.writerow(row) - - -############################################################################### -''' Close Connection to aRTist''' -S.close() - \ No newline at end of file diff --git a/Standalones/ParticlesAndPores/Create_SingleParticle+Pores.py b/Standalones/ParticlesAndPores/Create_SingleParticle+Pores.py deleted file mode 100644 index e3e7f50..0000000 --- a/Standalones/ParticlesAndPores/Create_SingleParticle+Pores.py +++ /dev/null @@ -1,328 +0,0 @@ -# -*- coding: utf-8 -*- -""" -Created on Tue Aug 13 19:30:16 2019 -Creates and transates particles/pores -ONLY for 0 to 1 pore, faster and less expensive than creating new objects each time. -@authors: Alexander Funk, David Schumacher -""" - -import socket -import random -import numpy as np -import math -from time import sleep - -############################### Options ####################################### -''' Connection ''' -HOST = "127.0.0.1" # localhost -PORT = 3658 # port @HOST -BUFFER_SIZE = 1024 # package size -timeout = 10 # TimeOut in sec - -''' aRTist Module ''' -SolidModNo = 17 # Number of module "Solid" in aRTist (Modules/XX. Solid) - -''' Particles/Pores ''' -D_max = 100 # max particle diameter in micrometer -D_min = 90 # min particle diameter in micrometer -P_max = 45 # max pore diameter in micrometer -P_min = 10 # min pore diameter in micrometer -N_Par = 10 # No. of particles to be created -pores_max = 5 # max. no. of pores per particle -pores_min = 1 # min. no. of pores per particle -space = 5 / 1000 # space to particle boundary - -''' X-Ray Setup ''' -MAG = 200 # magnification -SDD = 400 # source-detector distance in mm -pitch = 0.1 # native pixel size (pitch) of the detector in mm -DBorder = 1.5 # detector border (1/2), Factor (particle size) - -kV = 15 # Voltage of X-ray source -mA = 100 # Current of X-ray source - -''' Paths ''' -path_aRTist_scene = "I:/Simulations/TMP/Pores/Single_Pore_Scene.aRTist" -path_save_images = "I:/Simulations/TMP/Pores/img_" - - -error = 0 - -############### aRTist functions (to be replaced by library!) ################# -''' Communication with aRTist ''' -def aRTist_connect(): - S = socket.socket() # Create socket (for TCP) - S.connect((HOST, PORT)) # Connect to aRTist - S.settimeout(timeout) - return S - -def aRTist_sent(x): - total = "" - for i in range(len(x)): - # print(i+1, "of", len(x), " commands send") - # print(x[i]) - S.send(x[i].encode()) - total = total + aRTist_listen(1) - return total - -def aRTist_listen(command_no): - total = "" - stop = False - if (command_no == 0): - S.settimeout(0.2) - while (not stop):# and ("SUCCESS" not in total) and ("ERROR" not in total): # as long as server doesn't respond and doesn't contain "SUCCESS" - try: - msg = S.recv(BUFFER_SIZE).decode() # - except socket.timeout as e: - err = e.args[0] - if err == "timed out": - print("Timeout\n") - stop = True - continue - else: - if ("SUCCESS" in msg): - total = total + msg - # print(msg) - stop = True - continue - elif ("ERROR" in msg): - total = total + msg - # print(msg) - stop = True - global error - error = error + 1 - continue - else: - # print(msg) - if (command_no == 0): - print(msg) - total = total + msg - S.settimeout(timeout) - return total - -''' aRTist specific commands ''' -def aRTist_setup(Path): - STR = ["""FileIO::OpenAny """+ Path +"""; -"""] - return STR - -def aRTist_SETUP_detector(x, y, px): - STR = ["""set ::Xdetector(Type) {flat panel}; -""","""set ::Xsetup_private(DGauto) {Size}; -""","""set ::Xsetup(DetectorPixelX) """+ str((int(x))) +"""; -""","""set ::Xsetup(DetectorPixelY) """+ str((int(y))) +"""; -""","""set ::Xsetup_private(DGdx) """+ str(px) +"""; -""","""set ::Xsetup_private(DGdy) """+ str(px) +"""; -""","""set ::Xdetector(AutoD) {max}; -""","""set ::Xdetector(RefGV) 50000; -""","""::XDetector::UpdateGeometry 1; -"""] - return STR - -def aRTist_SETUP_source(pos, kV, mA): - STR = ["""set ::Xsetup(SourceSampling) {point}; -""","""set ::Xsource(Exposure) """+ str(mA) +"""; -""","""set ::Xsource(Tube) {Mono}; -""","""set ::Xsource(Voltage) """+ str(kV) +"""; -""","""::PartList::Invoke S SetPosition 0 0 """+ str(pos) +"""; -""","""::PartList::Invoke S SetRefPos 0 0 """+ str(pos) +"""; -""","""set ::Xdetector(FFCorrRun) 0; -""","""XDetector::FFCorrClearCmd; -""","""::XSource::spectrumOK; -"""] # set ::Engine::RenderPreview 0; - return STR - -def aRTist_SETUP_FFcorr(): - STR = ["""::XDetector::FFCorrGenCmd; -"""] - return STR - -def aRTist_create_sphere(R): - R = 2 * R - STR = ["""::Modules::Run Solid; -""","""set ::Modules::Module""" +str(SolidModNo)+"""::Solid(Type) {ellipsoid}; -""","""set ::Modules::Module""" +str(SolidModNo)+"""::Solid(Equilateral) 1; -""","""set ::Modules::Module""" +str(SolidModNo)+"""::Solid(X) """+ str(R) +"""; -""","""set ::Modules::Module""" +str(SolidModNo)+"""::Solid(PhiResolution) 80; -""","""set ::Modules::Module""" +str(SolidModNo)+"""::Solid(ThetaResolution) 80; -""","""set ::Modules::Module""" +str(SolidModNo)+"""::Solid(GridEllipsoid) 1; -""","""set ::Modules::Module""" +str(SolidModNo)+"""::Solid(VolumeCorrect) 1; -""","""::Modules::Module""" +str(SolidModNo)+"""::GenerateCmd; -"""] - return STR - -def aRTist_set_material(ID, mat): - STR = ["""::PartList::Set """+ str(ID) +""" Material """+ mat +"""; -"""] - return STR - -def aRTist_translate(ID, x, y, z): - STR = ["""::PartList::Invoke """+ str(ID) +""" SetPosition """+ str(x) +""" """+ str(y) +""" """+ str(z) +"""; -""","""::PartList::Invoke """+ str(ID) +""" SetRefPos """+ str(x) +""" """+ str(y) +""" """+ str(z) +"""; -"""] - return STR - -def aRTist_vis_off(): - STR = ["""::PartList::Set 1 Visible off; -""","""::PartList::Set 2 Visible off; -"""] - return STR - -def aRTist_vis_on(ID): - STR = ["""::PartList::Set """+str(ID)+""" Visible on; -"""] - return STR - -def aRTist_resize(ID, size): - STR = ["""::PartList::Invoke """+str(ID)+""" SetSize """+str(size)+""" """+str(size)+""" """+str(size)+"""; -"""] - return STR - -def aRTist_make_image(): - STR = ["""::Engine::StartStopCmd; -"""] - return STR - -def aRTist_save_image(Path): - STR = ["""::Modules::Execute ImageViewer Save16bit """+ Path +""" 1; -"""] - return STR - - -# def aRTist_fire(): - # STR = ["""::Modules::Module""" +str(SolidModNo)+"""::GenerateCmd; -# """] -# ::Modules::Module""" +str(SolidModNo)+"""::Close;" - # return STR - -########################## Conversions ################################ -''' Particle/Pore ''' -R_max = D_max / 2 / 1000 # max. particle radius in mm -R_min = D_min / 2 / 1000 # min. particle radius in mm -r_max = P_max / 2 / 1000 # max. pore radius in mm -r_min = P_min / 2 / 1000 # min. pore radius in mm - -''' Detector/Source ''' -OZ = SDD / MAG # position of object (in Z-direction) -OZ = SDD - OZ -VX = pitch / MAG # voxel size , i.e. eff. pixel size -DETxy = (DBorder * D_max) / (VX * 1000) # detector size (square) in pixel - -P_xy = (DETxy / 2) * VX * 0.9 # origin of particle range[x][y] with 10% border - -############################################################################### -''' Generation of random variables and calculate objects (paricles+pores) ''' -P_ID, P_RAD, P_XYZ, p_ANZ, p_RAD, p_XYZ = [],[],[],[],[],[] # List of all particles/pores -R = np.array(range(N_Par), dtype=np.float) -for i in range(N_Par): - R[i] = round(random.uniform(R_min, R_max),3) # particle radius in mm - X = round(random.uniform(-(P_xy-R[i]), (P_xy-R[i])),3) # particle position x - Y = round(random.uniform(-(P_xy-R[i]), (P_xy-R[i])),3) # particle position y - print('Particle',i ,' RADIUS =',R[i] ,'mm') - P_ID.append(i) - P_RAD.append(R[i]) - P_XYZ.append([X, Y, OZ]) - pores = random.randint(pores_min, pores_max) # random no. of pores - r = [] #np.array(range(pores), dtype=np.float) - p_xyz = [] - for ii in range(pores): - r.append(round(random.uniform(r_min, r_max),3)) # random pore radius in mm - print('Particle',i ,' Pore',ii ,' RADIUS =', r[ii],'mm') - - ''' Generate coordinates for pore ''' - R2 = round(R[i] - space - r[ii],3) # max. sphere radius with R2+pore in sphere R - # print(R2) - R3 = round(random.uniform(0, R2),3) # sphere with random radius in R2 - theta = random.uniform(0, math.pi) - phi = random.uniform(0, 2*math.pi) - # print(theta, phi) - p_x = round((X + R3 * math.sin(theta) * math.cos(phi)),3) - p_y = round((Y + R3 * math.sin(theta) * math.sin(phi)),3) - p_z = round((OZ + R3 * math.cos(theta)),3) - p_xyz.append([p_x, p_y, p_z]) - p_ANZ.append(pores) - p_RAD.append(r) - p_XYZ.append(p_xyz) - -print(P_RAD) -print(P_XYZ) -print(p_RAD) -print(p_XYZ) -print(p_ANZ) - -###################### Save coordinates in CSV ########################### -with open(path_save_images +"data.csv", "w+") as file: - STR = "Particle_ID, P_RADIUS, P_x, P_y, P_z, No. of pores, Pore_ID, p_RADIUS, p_x, p_y, p_z" - file.write(STR + "\n") - for i in range(N_Par): - STR = ""+str(P_ID[i])+", "+str(P_RAD[i])+", "+str(P_XYZ[i][0])+", "+str(P_XYZ[i][1])+", "+str(P_XYZ[i][2]) - if p_ANZ[i] == 0: - STR = STR + ", 0, , , , , " - file.write(STR + "\n") - elif p_ANZ[i] > 0: - STR = STR + ", " +str(p_ANZ[i]) - for ii in range(p_ANZ[i]): - STR2 = STR +", "+str(ii)+", "+str(p_RAD[i][ii])+", "+str(p_XYZ[i][ii][0])+", "+str(p_XYZ[i][ii][1])+", "+str(p_XYZ[i][ii][2]) - file.write(STR2 + "\n") - -############################################################################### -''' Connect to aRTist ''' -S = aRTist_connect() - -aRTist_listen(0) - -############################################################################### -''' SETUP aRTist scene ''' -print("SETUP aRTist scene") -aRTist_sent(aRTist_setup(path_aRTist_scene)) -print("SETUP Detector aRTist-Scene") -aRTist_sent(aRTist_SETUP_detector(DETxy, DETxy, pitch)) -print("SETUP Source aRTist-Scene") -aRTist_sent(aRTist_SETUP_source(SDD, kV, mA)) -print("SETUP FFcorr aRTist-Scene") -aRTist_sent(aRTist_SETUP_FFcorr()) -aRTist_sent(["""set ::Xdetector(FFCorrRun) 1; -"""]) -print("SETUP FINISH aRTist-Scene") - -############################################################################### -''' Create particles and pores in aRTist, save image ''' -# Create two dummy spheres -aRTist_sent(aRTist_create_sphere(R_max)) -aRTist_sent(aRTist_create_sphere(r_max)) -aRTist_sent(aRTist_set_material(1, "{Ti}")) -aRTist_sent(aRTist_set_material(2, "{void}")) -#aRTist_sent(["""::Modules::Module""" +str(SolidModNo)+"""::Close; -#"""]) - -# translate spheres -for i in range(N_Par): - # particle - print("Create Particle ", i , "of", N_Par) - aRTist_sent(aRTist_vis_off()) - aRTist_sent(aRTist_vis_on(1)) - aRTist_sent(aRTist_resize(1, (2*P_RAD[i]))) - aRTist_sent(aRTist_translate(1, P_XYZ[i][0], P_XYZ[i][1], P_XYZ[i][2])) - - # pores - if p_ANZ[i] > 0: - aRTist_sent(aRTist_vis_on(2)) - aRTist_sent(aRTist_resize(2, (2*p_RAD[i][0]))) - aRTist_sent(aRTist_translate(2, p_XYZ[i][0][0], p_XYZ[i][0][1], p_XYZ[i][0][2])) - # for ii in range(p_ANZ[i]): - # acquire image - aRTist_sent(aRTist_make_image()) - # save image - aRTist_sent(aRTist_save_image((path_save_images + str(i).zfill(5) +".tif"))) - - - -############################################################################### -''' Timer for Debug ''' -for i in range(5): - print("wait ",i ," s") - sleep(1) -print("FINISH!", error, "aRTist Errors") -############################################################################### -''' Close Connection to aRTist''' -S.close() diff --git a/Standalones/ParticlesAndPores/Pore_Matrix_Scene.aRTist b/Standalones/ParticlesAndPores/Pore_Matrix_Scene.aRTist deleted file mode 100644 index d2b7087..0000000 Binary files a/Standalones/ParticlesAndPores/Pore_Matrix_Scene.aRTist and /dev/null differ diff --git a/Standalones/ParticlesAndPores/Single_Pore_Scene.aRTist b/Standalones/ParticlesAndPores/Single_Pore_Scene.aRTist deleted file mode 100644 index 29ae4fe..0000000 Binary files a/Standalones/ParticlesAndPores/Single_Pore_Scene.aRTist and /dev/null differ diff --git a/artistlib/__init__.py b/artistlib/__init__.py deleted file mode 100644 index 2f8d6a7..0000000 --- a/artistlib/__init__.py +++ /dev/null @@ -1,125 +0,0 @@ -# -*- coding: UTF-8 -*- -"""The aRTist Python library is intended to remote control and automate the radiographic simulator aRTist. - -.. include:: ./documentation.md -""" - -__pdoc__ = {'console': False, 'remote_access': False} - -from ._version import get_versions -__version__ = get_versions()['version'] -del get_versions - -import numpy as np -from numpy import append -import socket -import base64 -import pathlib -from PIL import Image -class Junction: - """Remote control of aRTist simulator (this is a test) - """ - def __init__(self, host="localhost", port=3658, bufferSize=1024, timeout=5): - self.host = host - self.port = port - self.bufferSize = bufferSize - self.timeout = timeout - self.error = 0 - self.progress = 0 - self.answer = {} - - self.connect() - - def connect(self): - self.S = socket.socket() # Create socket (for TCP) - self.S.connect((self.host, self.port)) # Connect to aRTist - self.S.settimeout(self.timeout) - self.listen(0) - return self - - def send(self, command, msgType="RESULT"): - c = command + '\n' - self.S.send(c.encode()) - return self.listen(msgType=msgType) - - def listen(self, command_no=1, msgType="RESULT"): - answer = "" - stop = False - if (command_no == 0): - self.S.settimeout(0.2) - while (not stop):# and ("SUCCESS" not in total) and ("ERROR" not in total): # Solange server antwortet und nicht "SUCCESS" enthält - try: - msg = self.S.recv(self.bufferSize).decode() - except BaseException as e: - err = e.args[0] - if err == "timed out": - #print("Timeout\n") - answer += "RESULT Timeout\n" - #print(answer) - stop = True - continue - else: - if ("SUCCESS" in msg): - answer += msg - stop = True - continue - elif ("ERROR" in msg): - answer += msg - stop = True - #global error - self.error = self.error + 1 - continue - elif ("PROGRESS" in msg): - try: - self.progress = float(msg.strip('PROGRESS ')) - except: - self.progress = 0 - continue - else: - if (command_no == 0): - print(msg) - answer += msg - self.S.settimeout(self.timeout) - self.answer.update({"SUCCESS":self.pick(answer, "SUCCESS"), "RESULT":self.pick(answer, "RESULT"), "SDTOUT":self.pick(answer, "STDOUT"), "BASE64":self.pick(answer, "BASE64"), "IMAGE":self.pick(answer, "IMAGE"), "FILE":self.pick(answer, "FILE")}) - if (msgType != "*"): - answer = self.pick(answer, msgType) - return answer - - def pick(self, answer, res='RESULT'): - picked = '' - for a in answer.split('\n'): - if a.find(res) == 0: - picked += a[1 + len(res):].strip('\r') + '\n' - if len(picked) == 0: - return res + ' not found.' - return picked - - def get_answer(self, key): - return self.answer[key] - - def save_image(self, imageName): - npTypes = [np.bool_, np.ubyte, np.byte, np.ubyte, np.short, np.ushort, np.intc, np.uintc, np.int_, np.uint, np.single, np.double] - imageData = self.answer["BASE64"] - decodedData = base64.b64decode((imageData)) - imageHeader = self.answer["IMAGE"].split() - dtype = npTypes[int(imageHeader[4])] - im = np.frombuffer(decodedData, dtype).reshape((int(imageHeader[1]),int(imageHeader[0]))) - Image.fromarray(im).save(imageName) - - def receive_file(self, fileName): - fileData = self.answer["BASE64"] - decodedFile = base64.b64decode((fileData)) - artistFile = open(fileName, "wb") - artistFile.write(decodedFile) - artistFile.close() - - def send_file(self, fileName): - outFile = open(fileName, "br") - fileBytes = outFile.read() - encBytes = base64.b64encode((fileBytes)) - encString = str(encBytes) - encString = encString.lstrip("b'").rstrip("'") - fileExtension = pathlib.Path(fileName).suffix - com = "::RemoteControl::ReceiveFile " + encString + " " + fileExtension - recAnswer = self.send(com, "RESULT") - return recAnswer diff --git a/artistlib/_version.py b/artistlib/_version.py deleted file mode 100644 index 6e093b4..0000000 --- a/artistlib/_version.py +++ /dev/null @@ -1,658 +0,0 @@ - -# This file helps to compute a version number in source trees obtained from -# git-archive tarball (such as those provided by githubs download-from-tag -# feature). Distribution tarballs (built by setup.py sdist) and build -# directories (produced by setup.py build) will contain a much shorter file -# that just contains the computed version number. - -# This file is released into the public domain. -# Generated by versioneer-0.26 -# https://github.com/python-versioneer/python-versioneer - -"""Git implementation of _version.py.""" - -import errno -import os -import re -import subprocess -import sys -from typing import Callable, Dict -import functools - - -def get_keywords(): - """Get the keywords needed to look up the version information.""" - # these strings will be replaced by git during git-archive. - # setup.py/versioneer.py will grep for the variable names, so they must - # each be defined on a line of their own. _version.py will just call - # get_keywords(). - git_refnames = "$Format:%d$" - git_full = "$Format:%H$" - git_date = "$Format:%ci$" - keywords = {"refnames": git_refnames, "full": git_full, "date": git_date} - return keywords - - -class VersioneerConfig: - """Container for Versioneer configuration parameters.""" - - -def get_config(): - """Create, populate and return the VersioneerConfig() object.""" - # these strings are filled in when 'setup.py versioneer' creates - # _version.py - cfg = VersioneerConfig() - cfg.VCS = "git" - cfg.style = "pep440" - cfg.tag_prefix = "v" - cfg.parentdir_prefix = "" - cfg.versionfile_source = "artistlib/_version.py" - cfg.verbose = False - return cfg - - -class NotThisMethod(Exception): - """Exception raised if a method is not valid for the current scenario.""" - - -LONG_VERSION_PY: Dict[str, str] = {} -HANDLERS: Dict[str, Dict[str, Callable]] = {} - - -def register_vcs_handler(vcs, method): # decorator - """Create decorator to mark a method as the handler of a VCS.""" - def decorate(f): - """Store f in HANDLERS[vcs][method].""" - if vcs not in HANDLERS: - HANDLERS[vcs] = {} - HANDLERS[vcs][method] = f - return f - return decorate - - -def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, - env=None): - """Call the given command(s).""" - assert isinstance(commands, list) - process = None - - popen_kwargs = {} - if sys.platform == "win32": - # This hides the console window if pythonw.exe is used - startupinfo = subprocess.STARTUPINFO() - startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW - popen_kwargs["startupinfo"] = startupinfo - - for command in commands: - try: - dispcmd = str([command] + args) - # remember shell=False, so use git.cmd on windows, not just git - process = subprocess.Popen([command] + args, cwd=cwd, env=env, - stdout=subprocess.PIPE, - stderr=(subprocess.PIPE if hide_stderr - else None), **popen_kwargs) - break - except OSError: - e = sys.exc_info()[1] - if e.errno == errno.ENOENT: - continue - if verbose: - print("unable to run %s" % dispcmd) - print(e) - return None, None - else: - if verbose: - print("unable to find command, tried %s" % (commands,)) - return None, None - stdout = process.communicate()[0].strip().decode() - if process.returncode != 0: - if verbose: - print("unable to run %s (error)" % dispcmd) - print("stdout was %s" % stdout) - return None, process.returncode - return stdout, process.returncode - - -def versions_from_parentdir(parentdir_prefix, root, verbose): - """Try to determine the version from the parent directory name. - - Source tarballs conventionally unpack into a directory that includes both - the project name and a version string. We will also support searching up - two directory levels for an appropriately named parent directory - """ - rootdirs = [] - - for _ in range(3): - dirname = os.path.basename(root) - if dirname.startswith(parentdir_prefix): - return {"version": dirname[len(parentdir_prefix):], - "full-revisionid": None, - "dirty": False, "error": None, "date": None} - rootdirs.append(root) - root = os.path.dirname(root) # up a level - - if verbose: - print("Tried directories %s but none started with prefix %s" % - (str(rootdirs), parentdir_prefix)) - raise NotThisMethod("rootdir doesn't start with parentdir_prefix") - - -@register_vcs_handler("git", "get_keywords") -def git_get_keywords(versionfile_abs): - """Extract version information from the given file.""" - # the code embedded in _version.py can just fetch the value of these - # keywords. When used from setup.py, we don't want to import _version.py, - # so we do it with a regexp instead. This function is not used from - # _version.py. - keywords = {} - try: - with open(versionfile_abs, "r") as fobj: - for line in fobj: - if line.strip().startswith("git_refnames ="): - mo = re.search(r'=\s*"(.*)"', line) - if mo: - keywords["refnames"] = mo.group(1) - if line.strip().startswith("git_full ="): - mo = re.search(r'=\s*"(.*)"', line) - if mo: - keywords["full"] = mo.group(1) - if line.strip().startswith("git_date ="): - mo = re.search(r'=\s*"(.*)"', line) - if mo: - keywords["date"] = mo.group(1) - except OSError: - pass - return keywords - - -@register_vcs_handler("git", "keywords") -def git_versions_from_keywords(keywords, tag_prefix, verbose): - """Get version information from git keywords.""" - if "refnames" not in keywords: - raise NotThisMethod("Short version file found") - date = keywords.get("date") - if date is not None: - # Use only the last line. Previous lines may contain GPG signature - # information. - date = date.splitlines()[-1] - - # git-2.2.0 added "%cI", which expands to an ISO-8601 -compliant - # datestamp. However we prefer "%ci" (which expands to an "ISO-8601 - # -like" string, which we must then edit to make compliant), because - # it's been around since git-1.5.3, and it's too difficult to - # discover which version we're using, or to work around using an - # older one. - date = date.strip().replace(" ", "T", 1).replace(" ", "", 1) - refnames = keywords["refnames"].strip() - if refnames.startswith("$Format"): - if verbose: - print("keywords are unexpanded, not using") - raise NotThisMethod("unexpanded keywords, not a git-archive tarball") - refs = {r.strip() for r in refnames.strip("()").split(",")} - # starting in git-1.8.3, tags are listed as "tag: foo-1.0" instead of - # just "foo-1.0". If we see a "tag: " prefix, prefer those. - TAG = "tag: " - tags = {r[len(TAG):] for r in refs if r.startswith(TAG)} - if not tags: - # Either we're using git < 1.8.3, or there really are no tags. We use - # a heuristic: assume all version tags have a digit. The old git %d - # expansion behaves like git log --decorate=short and strips out the - # refs/heads/ and refs/tags/ prefixes that would let us distinguish - # between branches and tags. By ignoring refnames without digits, we - # filter out many common branch names like "release" and - # "stabilization", as well as "HEAD" and "master". - tags = {r for r in refs if re.search(r'\d', r)} - if verbose: - print("discarding '%s', no digits" % ",".join(refs - tags)) - if verbose: - print("likely tags: %s" % ",".join(sorted(tags))) - for ref in sorted(tags): - # sorting will prefer e.g. "2.0" over "2.0rc1" - if ref.startswith(tag_prefix): - r = ref[len(tag_prefix):] - # Filter out refs that exactly match prefix or that don't start - # with a number once the prefix is stripped (mostly a concern - # when prefix is '') - if not re.match(r'\d', r): - continue - if verbose: - print("picking %s" % r) - return {"version": r, - "full-revisionid": keywords["full"].strip(), - "dirty": False, "error": None, - "date": date} - # no suitable tags, so version is "0+unknown", but full hex is still there - if verbose: - print("no suitable tags, using unknown + full revision id") - return {"version": "0+unknown", - "full-revisionid": keywords["full"].strip(), - "dirty": False, "error": "no suitable tags", "date": None} - - -@register_vcs_handler("git", "pieces_from_vcs") -def git_pieces_from_vcs(tag_prefix, root, verbose, runner=run_command): - """Get version from 'git describe' in the root of the source tree. - - This only gets called if the git-archive 'subst' keywords were *not* - expanded, and _version.py hasn't already been rewritten with a short - version string, meaning we're inside a checked out source tree. - """ - GITS = ["git"] - if sys.platform == "win32": - GITS = ["git.cmd", "git.exe"] - - # GIT_DIR can interfere with correct operation of Versioneer. - # It may be intended to be passed to the Versioneer-versioned project, - # but that should not change where we get our version from. - env = os.environ.copy() - env.pop("GIT_DIR", None) - runner = functools.partial(runner, env=env) - - _, rc = runner(GITS, ["rev-parse", "--git-dir"], cwd=root, - hide_stderr=not verbose) - if rc != 0: - if verbose: - print("Directory %s not under git control" % root) - raise NotThisMethod("'git rev-parse --git-dir' returned error") - - # if there is a tag matching tag_prefix, this yields TAG-NUM-gHEX[-dirty] - # if there isn't one, this yields HEX[-dirty] (no NUM) - describe_out, rc = runner(GITS, [ - "describe", "--tags", "--dirty", "--always", "--long", - "--match", f"{tag_prefix}[[:digit:]]*" - ], cwd=root) - # --long was added in git-1.5.5 - if describe_out is None: - raise NotThisMethod("'git describe' failed") - describe_out = describe_out.strip() - full_out, rc = runner(GITS, ["rev-parse", "HEAD"], cwd=root) - if full_out is None: - raise NotThisMethod("'git rev-parse' failed") - full_out = full_out.strip() - - pieces = {} - pieces["long"] = full_out - pieces["short"] = full_out[:7] # maybe improved later - pieces["error"] = None - - branch_name, rc = runner(GITS, ["rev-parse", "--abbrev-ref", "HEAD"], - cwd=root) - # --abbrev-ref was added in git-1.6.3 - if rc != 0 or branch_name is None: - raise NotThisMethod("'git rev-parse --abbrev-ref' returned error") - branch_name = branch_name.strip() - - if branch_name == "HEAD": - # If we aren't exactly on a branch, pick a branch which represents - # the current commit. If all else fails, we are on a branchless - # commit. - branches, rc = runner(GITS, ["branch", "--contains"], cwd=root) - # --contains was added in git-1.5.4 - if rc != 0 or branches is None: - raise NotThisMethod("'git branch --contains' returned error") - branches = branches.split("\n") - - # Remove the first line if we're running detached - if "(" in branches[0]: - branches.pop(0) - - # Strip off the leading "* " from the list of branches. - branches = [branch[2:] for branch in branches] - if "master" in branches: - branch_name = "master" - elif not branches: - branch_name = None - else: - # Pick the first branch that is returned. Good or bad. - branch_name = branches[0] - - pieces["branch"] = branch_name - - # parse describe_out. It will be like TAG-NUM-gHEX[-dirty] or HEX[-dirty] - # TAG might have hyphens. - git_describe = describe_out - - # look for -dirty suffix - dirty = git_describe.endswith("-dirty") - pieces["dirty"] = dirty - if dirty: - git_describe = git_describe[:git_describe.rindex("-dirty")] - - # now we have TAG-NUM-gHEX or HEX - - if "-" in git_describe: - # TAG-NUM-gHEX - mo = re.search(r'^(.+)-(\d+)-g([0-9a-f]+)$', git_describe) - if not mo: - # unparsable. Maybe git-describe is misbehaving? - pieces["error"] = ("unable to parse git-describe output: '%s'" - % describe_out) - return pieces - - # tag - full_tag = mo.group(1) - if not full_tag.startswith(tag_prefix): - if verbose: - fmt = "tag '%s' doesn't start with prefix '%s'" - print(fmt % (full_tag, tag_prefix)) - pieces["error"] = ("tag '%s' doesn't start with prefix '%s'" - % (full_tag, tag_prefix)) - return pieces - pieces["closest-tag"] = full_tag[len(tag_prefix):] - - # distance: number of commits since tag - pieces["distance"] = int(mo.group(2)) - - # commit: short hex revision ID - pieces["short"] = mo.group(3) - - else: - # HEX: no tags - pieces["closest-tag"] = None - out, rc = runner(GITS, ["rev-list", "HEAD", "--left-right"], cwd=root) - pieces["distance"] = len(out.split()) # total number of commits - - # commit date: see ISO-8601 comment in git_versions_from_keywords() - date = runner(GITS, ["show", "-s", "--format=%ci", "HEAD"], cwd=root)[0].strip() - # Use only the last line. Previous lines may contain GPG signature - # information. - date = date.splitlines()[-1] - pieces["date"] = date.strip().replace(" ", "T", 1).replace(" ", "", 1) - - return pieces - - -def plus_or_dot(pieces): - """Return a + if we don't already have one, else return a .""" - if "+" in pieces.get("closest-tag", ""): - return "." - return "+" - - -def render_pep440(pieces): - """Build up version string, with post-release "local version identifier". - - Our goal: TAG[+DISTANCE.gHEX[.dirty]] . Note that if you - get a tagged build and then dirty it, you'll get TAG+0.gHEX.dirty - - Exceptions: - 1: no tags. git_describe was just HEX. 0+untagged.DISTANCE.gHEX[.dirty] - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - if pieces["distance"] or pieces["dirty"]: - rendered += plus_or_dot(pieces) - rendered += "%d.g%s" % (pieces["distance"], pieces["short"]) - if pieces["dirty"]: - rendered += ".dirty" - else: - # exception #1 - rendered = "0+untagged.%d.g%s" % (pieces["distance"], - pieces["short"]) - if pieces["dirty"]: - rendered += ".dirty" - return rendered - - -def render_pep440_branch(pieces): - """TAG[[.dev0]+DISTANCE.gHEX[.dirty]] . - - The ".dev0" means not master branch. Note that .dev0 sorts backwards - (a feature branch will appear "older" than the master branch). - - Exceptions: - 1: no tags. 0[.dev0]+untagged.DISTANCE.gHEX[.dirty] - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - if pieces["distance"] or pieces["dirty"]: - if pieces["branch"] != "master": - rendered += ".dev0" - rendered += plus_or_dot(pieces) - rendered += "%d.g%s" % (pieces["distance"], pieces["short"]) - if pieces["dirty"]: - rendered += ".dirty" - else: - # exception #1 - rendered = "0" - if pieces["branch"] != "master": - rendered += ".dev0" - rendered += "+untagged.%d.g%s" % (pieces["distance"], - pieces["short"]) - if pieces["dirty"]: - rendered += ".dirty" - return rendered - - -def pep440_split_post(ver): - """Split pep440 version string at the post-release segment. - - Returns the release segments before the post-release and the - post-release version number (or -1 if no post-release segment is present). - """ - vc = str.split(ver, ".post") - return vc[0], int(vc[1] or 0) if len(vc) == 2 else None - - -def render_pep440_pre(pieces): - """TAG[.postN.devDISTANCE] -- No -dirty. - - Exceptions: - 1: no tags. 0.post0.devDISTANCE - """ - if pieces["closest-tag"]: - if pieces["distance"]: - # update the post release segment - tag_version, post_version = pep440_split_post(pieces["closest-tag"]) - rendered = tag_version - if post_version is not None: - rendered += ".post%d.dev%d" % (post_version + 1, pieces["distance"]) - else: - rendered += ".post0.dev%d" % (pieces["distance"]) - else: - # no commits, use the tag as the version - rendered = pieces["closest-tag"] - else: - # exception #1 - rendered = "0.post0.dev%d" % pieces["distance"] - return rendered - - -def render_pep440_post(pieces): - """TAG[.postDISTANCE[.dev0]+gHEX] . - - The ".dev0" means dirty. Note that .dev0 sorts backwards - (a dirty tree will appear "older" than the corresponding clean one), - but you shouldn't be releasing software with -dirty anyways. - - Exceptions: - 1: no tags. 0.postDISTANCE[.dev0] - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - if pieces["distance"] or pieces["dirty"]: - rendered += ".post%d" % pieces["distance"] - if pieces["dirty"]: - rendered += ".dev0" - rendered += plus_or_dot(pieces) - rendered += "g%s" % pieces["short"] - else: - # exception #1 - rendered = "0.post%d" % pieces["distance"] - if pieces["dirty"]: - rendered += ".dev0" - rendered += "+g%s" % pieces["short"] - return rendered - - -def render_pep440_post_branch(pieces): - """TAG[.postDISTANCE[.dev0]+gHEX[.dirty]] . - - The ".dev0" means not master branch. - - Exceptions: - 1: no tags. 0.postDISTANCE[.dev0]+gHEX[.dirty] - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - if pieces["distance"] or pieces["dirty"]: - rendered += ".post%d" % pieces["distance"] - if pieces["branch"] != "master": - rendered += ".dev0" - rendered += plus_or_dot(pieces) - rendered += "g%s" % pieces["short"] - if pieces["dirty"]: - rendered += ".dirty" - else: - # exception #1 - rendered = "0.post%d" % pieces["distance"] - if pieces["branch"] != "master": - rendered += ".dev0" - rendered += "+g%s" % pieces["short"] - if pieces["dirty"]: - rendered += ".dirty" - return rendered - - -def render_pep440_old(pieces): - """TAG[.postDISTANCE[.dev0]] . - - The ".dev0" means dirty. - - Exceptions: - 1: no tags. 0.postDISTANCE[.dev0] - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - if pieces["distance"] or pieces["dirty"]: - rendered += ".post%d" % pieces["distance"] - if pieces["dirty"]: - rendered += ".dev0" - else: - # exception #1 - rendered = "0.post%d" % pieces["distance"] - if pieces["dirty"]: - rendered += ".dev0" - return rendered - - -def render_git_describe(pieces): - """TAG[-DISTANCE-gHEX][-dirty]. - - Like 'git describe --tags --dirty --always'. - - Exceptions: - 1: no tags. HEX[-dirty] (note: no 'g' prefix) - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - if pieces["distance"]: - rendered += "-%d-g%s" % (pieces["distance"], pieces["short"]) - else: - # exception #1 - rendered = pieces["short"] - if pieces["dirty"]: - rendered += "-dirty" - return rendered - - -def render_git_describe_long(pieces): - """TAG-DISTANCE-gHEX[-dirty]. - - Like 'git describe --tags --dirty --always -long'. - The distance/hash is unconditional. - - Exceptions: - 1: no tags. HEX[-dirty] (note: no 'g' prefix) - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - rendered += "-%d-g%s" % (pieces["distance"], pieces["short"]) - else: - # exception #1 - rendered = pieces["short"] - if pieces["dirty"]: - rendered += "-dirty" - return rendered - - -def render(pieces, style): - """Render the given version pieces into the requested style.""" - if pieces["error"]: - return {"version": "unknown", - "full-revisionid": pieces.get("long"), - "dirty": None, - "error": pieces["error"], - "date": None} - - if not style or style == "default": - style = "pep440" # the default - - if style == "pep440": - rendered = render_pep440(pieces) - elif style == "pep440-branch": - rendered = render_pep440_branch(pieces) - elif style == "pep440-pre": - rendered = render_pep440_pre(pieces) - elif style == "pep440-post": - rendered = render_pep440_post(pieces) - elif style == "pep440-post-branch": - rendered = render_pep440_post_branch(pieces) - elif style == "pep440-old": - rendered = render_pep440_old(pieces) - elif style == "git-describe": - rendered = render_git_describe(pieces) - elif style == "git-describe-long": - rendered = render_git_describe_long(pieces) - else: - raise ValueError("unknown style '%s'" % style) - - return {"version": rendered, "full-revisionid": pieces["long"], - "dirty": pieces["dirty"], "error": None, - "date": pieces.get("date")} - - -def get_versions(): - """Get version information or return default if unable to do so.""" - # I am in _version.py, which lives at ROOT/VERSIONFILE_SOURCE. If we have - # __file__, we can work backwards from there to the root. Some - # py2exe/bbfreeze/non-CPython implementations don't do __file__, in which - # case we can only use expanded keywords. - - cfg = get_config() - verbose = cfg.verbose - - try: - return git_versions_from_keywords(get_keywords(), cfg.tag_prefix, - verbose) - except NotThisMethod: - pass - - try: - root = os.path.realpath(__file__) - # versionfile_source is the relative path from the top of the source - # tree (where the .git directory might live) to this file. Invert - # this to find the root from __file__. - for _ in cfg.versionfile_source.split('/'): - root = os.path.dirname(root) - except NameError: - return {"version": "0+unknown", "full-revisionid": None, - "dirty": None, - "error": "unable to find root of source tree", - "date": None} - - try: - pieces = git_pieces_from_vcs(cfg.tag_prefix, root, verbose) - return render(pieces, cfg.style) - except NotThisMethod: - pass - - try: - if cfg.parentdir_prefix: - return versions_from_parentdir(cfg.parentdir_prefix, root, verbose) - except NotThisMethod: - pass - - return {"version": "0+unknown", "full-revisionid": None, - "dirty": None, - "error": "unable to compute version", "date": None} diff --git a/artistlib/console.py b/artistlib/console.py deleted file mode 100644 index 22a9aa0..0000000 --- a/artistlib/console.py +++ /dev/null @@ -1,7 +0,0 @@ -import subprocess -import os - -path = os.path.dirname(os.path.abspath(__file__)) -correctedPath = path.replace("\\", "/") - -cmd = subprocess.run(["python", correctedPath + "/remote_access.py"]) \ No newline at end of file diff --git a/artistlib/documentation.md b/artistlib/documentation.md deleted file mode 100644 index f1749aa..0000000 --- a/artistlib/documentation.md +++ /dev/null @@ -1,65 +0,0 @@ -**Hint:** This project is in its early stages and may change significantly over time. - -Getting started -=============== - -Requirements ------------- -A **Python 3** environment (Python 3.8 or higher) is required. The following Python packages are required as well. They usually come with a Python environment, or can be installed there easily: - -* none so far. - - -Installation ------------- - -If you want to **install** the package in your Python environment, you can use [pip]. For example, you can run the following command to make the toolbox available: - - pip install artistlib - -[pip]: https://pip.pypa.io - -To use the package **without installation**, you need to download the package manually. You have the following three options: - -* Download the package [from PyPi]. You will get a zipped file called `artistlib-X.X.X.tar.gz` (where X.X.X is the current version number). Open or unpack this file to get to its contents. -* Download the repository [from GitHub]: press the *clone* button to download a ZIP file. Unpack it or open it to see its contents. -* You can also clone the repository from GitHub via the terminal: - - `git clone https://github.com/BAMresearch/aRTist-PythonLib.git` - -From any of these three options, you will get the complete package source code. It contains a folder called `artistlib`. If you want to use the library from your Python scripts without installing it, you need to copy the folder `artistlib` to the location of your Python scripts to make the package available. - - -[from GitHub]: https://github.com/BAMresearch/aRTist-PythonLib -[from PyPi]: https://pypi.org/project/artistlib/ - -Usage ------ - -Please make sure that aRTist is running and waiting for remote connection (menu: Tools>Enable remote access). - -The following example code shows the basic usage: - -```python -.. include:: ../example_artistlib.py -``` - -About -===== - -The aRTist library was developed for utilize the Python scripting of the radiographic simulator [aRTist]. - -The software is released under the **Apache 2.0 license,** its source code is available [on GitHub]. - -[aRTist]: https://artist.bam.de -[on GitHub]: https://github.com/BAMresearch/aRTist-PythonLib - -Contributors ------------- -The following people contributed to code and documentation of the package: - -* Alexander Funke -* David Schumacher -* Carsten Bellon -* David Plotzki -* David Denkler \ No newline at end of file diff --git a/artistlib/remote_access.py b/artistlib/remote_access.py deleted file mode 100644 index 06c8876..0000000 --- a/artistlib/remote_access.py +++ /dev/null @@ -1,56 +0,0 @@ -import sys -import os -path = os.path.dirname(os.path.abspath(__file__)) -path = os.path.dirname(path) -sys.path.insert(0, path) - -import artistlib as a -from prompt_toolkit import PromptSession -session = PromptSession() - -list = ["SUCCESS", "RESULT", "STDOUT"] -commands = [] - -rc = a.Junction() - -c = 0 - -while True: - try: - com = session.prompt("Command: ") - - if "::RemoteControl::ReceiveFile" in com: - fileName2 = input("Send following file: ") - recAnswer = a.Junction.send_file(rc, fileName2) - print(recAnswer) - - else: - ans = a.Junction.send(rc, com, "*") - - if "FILE" in ans: - fileName = input("Save file as: ") - a.Junction.receive_file(rc, fileName) - print("File saved as ", fileName) - - for i in list: - typ = a.Junction.pick(rc, ans, i) - if "IMAGE" in ans and not "{}" in typ: - name = input("Save Image as: ") - a.Junction.save_image(rc, name) - print("Image saved as ", name) - - if not "{}" in typ: - if not "not found" in typ: - print(typ) - else: - c += 1 - else: - c += 1 - - if c >= 3 and not "BASE64" in ans: - print(ans) - - c = 0 - - except KeyboardInterrupt: - raise SystemExit diff --git a/build.sh b/build.sh deleted file mode 100644 index dcd830f..0000000 --- a/build.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -rm -R dist -rm -R artistlib.egg-info -python -m build - -# twine upload dist/* \ No newline at end of file diff --git a/build_html.sh b/build_html.sh deleted file mode 100644 index 18e650d..0000000 --- a/build_html.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -# Builds the HTML documentation using pdoc3 -# and moves it to the "docs" folder (instead of docs/artistlib). -pdoc --force --html --template-dir "docs/templates" -o "docs/" artistlib -cp -R docs/artistlib/* docs/ -rm -R docs/artistlib -###pdoc --logo "artistlib.png" --template-dir "docs/templates" -o "docs/" artistlib -###rm -R docs/artistlib \ No newline at end of file diff --git a/build_pdf.sh b/build_pdf.sh deleted file mode 100644 index 34c26c2..0000000 --- a/build_pdf.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -# Builds the documentation as a PDF file, -# using pdoc3 to create a complete Markdown file, -# which is then passed to pandoc to create a LaTeX -# file and a PDF using XeLaTeX. -pdoc --force --pdf artistlib > docs/artistlib.md -pandoc --metadata=title:"aRTsit PythonLib Documentation" --from=markdown+abbreviations+tex_math_single_backslash --pdf-engine=xelatex --variable=mainfont:"DejaVu Sans" --toc --toc-depth=1 --output=docs/artistlib.pdf docs/artistlib.md -rm docs/artistlib.md \ No newline at end of file diff --git a/docs/artistlib.png b/docs/artistlib.png deleted file mode 100644 index 18bf79c..0000000 Binary files a/docs/artistlib.png and /dev/null differ diff --git a/docs/favicon.ico b/docs/favicon.ico deleted file mode 100644 index ae77cce..0000000 Binary files a/docs/favicon.ico and /dev/null differ diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index fc818e1..0000000 --- a/docs/index.html +++ /dev/null @@ -1,579 +0,0 @@ - - - - - - -artistlib API documentation - - - - - - - - - - - - - -
-
-
-

Package artistlib

-
-
-

The aRTist Python library is intended to remote control and automate the radiographic simulator aRTist.

-

Hint: This project is in its early stages and may change significantly over time.

-

Getting started

-

Requirements

-

A Python 3 environment (Python 3.8 or higher) is required. The following Python packages are required as well. They usually come with a Python environment, or can be installed there easily:

-
    -
  • none so far.
  • -
-

Installation

-

If you want to install the package in your Python environment, you can use pip. For example, you can run the following command to make the toolbox available:

-
pip install artistlib
-
-

To use the package without installation, you need to download the package manually. You have the following three options:

-
    -
  • Download the package from PyPi. You will get a zipped file called artistlib-X.X.X.tar.gz (where X.X.X is the current version number). Open or unpack this file to get to its contents.
  • -
  • Download the repository from GitHub: press the clone button to download a ZIP file. Unpack it or open it to see its contents.
  • -
  • -

    You can also clone the repository from GitHub via the terminal:

    -

    git clone https://github.com/BAMresearch/aRTist-PythonLib.git

    -
  • -
-

From any of these three options, you will get the complete package source code. It contains a folder called artistlib. If you want to use the library from your Python scripts without installing it, you need to copy the folder artistlib to the location of your Python scripts to make the package available.

-

Usage

-

Please make sure that aRTist is running and waiting for remote connection (menu: Tools>Enable remote access).

-

The following example code shows the basic usage:

-
import artistlib as a
-
-# connect to aRTist (default: host='localhost', port=3658) 
-rc = a.Junction()
-
-# print aRTist's version number
-ver = a.Junction.send(rc, '::aRTist::GetVersion full')
-print(ver)
-
-# - load a project
-# - run the simulation
-# - save the resulting projection from the image viewer
-a.Junction.send(rc, 'FileIO::OpenAny $Xray(LibraryDir)/ExampleProjects/Schlumpfmark.aRTist')
-a.Junction.send(rc, 'Engine::GoCmd')
-ans = "Saved as: "
-ans += a.Junction.send(rc, 'Modules::Invoke ImageViewer SaveFile [file join $env(HOME) Pictures/artistlib.tif] true')
-print(ans)
-
-# - load a project
-# - run the simulation without viewing the result
-# - transfer the final projection 
-# - saving the projection image  >>>> This requires aRTist 2.12.7 or higher! <<<<
-# - delete the images to release the memory
-a.Junction.send(rc, 'FileIO::OpenAny $Xray(LibraryDir)/ExampleProjects/aRTist.aRTist')
-a.Junction.send(rc, 'set imgList [Engine::Go]')
-a.Junction.send(rc, 'RemoteControl::SendImage [lindex $imgList 0]')
-a.Junction.save_image(rc, "transferred.tif")
-a.Junction.send(rc, 'foreach i $imgList {$i Delete}')
-print("Saved as: transferred.tif")
-
-

About

-

The aRTist library was developed for utilize the Python scripting of the radiographic simulator aRTist.

-

The software is released under the Apache 2.0 license, its source code is available on GitHub.

-

Contributors

-

The following people contributed to code and documentation of the package:

-
    -
  • Alexander Funke
  • -
  • David Schumacher
  • -
  • Carsten Bellon
  • -
  • David Plotzki
  • -
  • David Denkler
  • -
-
- -Expand source code - -
# -*- coding: UTF-8 -*-
-"""The aRTist Python library is intended to remote control and automate the radiographic simulator aRTist.
-
-.. include:: ./documentation.md
-"""
-
-__pdoc__ = {'console': False, 'remote_access': False}
-
-from ._version import get_versions
-__version__ = get_versions()['version']
-del get_versions
-
-import numpy as np
-from numpy import append
-import socket
-import base64
-import pathlib
-from PIL import Image
-class Junction:
-    """Remote control of aRTist simulator (this is a test)
-    """
-    def __init__(self, host="localhost", port=3658, bufferSize=1024, timeout=5):
-        self.host = host
-        self.port = port
-        self.bufferSize = bufferSize
-        self.timeout = timeout
-        self.error = 0
-        self.progress = 0
-        self.answer = {}
-
-        self.connect()
-
-    def connect(self):
-        self.S = socket.socket()                        # Create socket (for TCP)
-        self.S.connect((self.host, self.port))          # Connect to aRTist
-        self.S.settimeout(self.timeout)
-        self.listen(0)
-        return self
-
-    def send(self, command, msgType="RESULT"):
-        c = command + '\n'
-        self.S.send(c.encode())
-        return self.listen(msgType=msgType)
-
-    def listen(self, command_no=1, msgType="RESULT"):
-        answer = ""
-        stop = False
-        if (command_no == 0):
-            self.S.settimeout(0.2)
-        while (not stop):# and ("SUCCESS" not in total) and ("ERROR" not in total):     # Solange server antwortet und nicht "SUCCESS" enthält
-            try:
-                msg = self.S.recv(self.bufferSize).decode()
-            except BaseException as e:
-                err = e.args[0]
-                if err == "timed out":
-                    #print("Timeout\n")
-                    answer += "RESULT Timeout\n"
-                    #print(answer)
-                    stop = True
-                    continue
-            else:
-                if ("SUCCESS" in msg):
-                    answer += msg
-                    stop = True
-                    continue
-                elif ("ERROR" in msg):
-                    answer += msg
-                    stop = True
-                    #global error
-                    self.error = self.error + 1 
-                    continue
-                elif ("PROGRESS" in msg):
-                    try:
-                        self.progress = float(msg.strip('PROGRESS '))
-                    except:
-                        self.progress = 0
-                    continue
-                else:
-                    if (command_no == 0):
-                        print(msg)
-                    answer += msg
-        self.S.settimeout(self.timeout)
-        self.answer.update({"SUCCESS":self.pick(answer, "SUCCESS"), "RESULT":self.pick(answer, "RESULT"), "SDTOUT":self.pick(answer, "STDOUT"), "BASE64":self.pick(answer, "BASE64"), "IMAGE":self.pick(answer, "IMAGE"), "FILE":self.pick(answer, "FILE")})
-        if (msgType != "*"):
-            answer = self.pick(answer, msgType)
-        return answer
-
-    def pick(self, answer, res='RESULT'):
-        picked = ''
-        for a in answer.split('\n'):
-            if a.find(res) == 0:
-                picked += a[1 + len(res):].strip('\r') + '\n'
-        if len(picked) == 0:
-            return res + ' not found.'
-        return picked
-
-    def get_answer(self, key):
-        return self.answer[key]
-
-    def save_image(self, imageName):
-        npTypes = [np.bool_, np.ubyte, np.byte, np.ubyte, np.short, np.ushort, np.intc, np.uintc, np.int_, np.uint, np.single, np.double]
-        imageData = self.answer["BASE64"]
-        decodedData = base64.b64decode((imageData))
-        imageHeader = self.answer["IMAGE"].split()
-        dtype = npTypes[int(imageHeader[4])]
-        im = np.frombuffer(decodedData, dtype).reshape((int(imageHeader[1]),int(imageHeader[0])))
-        Image.fromarray(im).save(imageName)
-
-    def receive_file(self, fileName):
-        fileData = self.answer["BASE64"]
-        decodedFile = base64.b64decode((fileData))
-        artistFile = open(fileName, "wb")
-        artistFile.write(decodedFile)
-        artistFile.close()
-
-    def send_file(self, fileName):
-        outFile = open(fileName, "br")
-        fileBytes = outFile.read()
-        encBytes = base64.b64encode((fileBytes))
-        encString = str(encBytes)
-        encString = encString.lstrip("b'").rstrip("'")
-        fileExtension = pathlib.Path(fileName).suffix
-        com = "::RemoteControl::ReceiveFile " + encString + " " + fileExtension
-        recAnswer = self.send(com, "RESULT")
-        return recAnswer
-
-
-
-
-
-
-
-
-
-

Classes

-
-
-class Junction -(host='localhost', port=3658, bufferSize=1024, timeout=5) -
-
-

Remote control of aRTist simulator (this is a test)

-
- -Expand source code - -
class Junction:
-    """Remote control of aRTist simulator (this is a test)
-    """
-    def __init__(self, host="localhost", port=3658, bufferSize=1024, timeout=5):
-        self.host = host
-        self.port = port
-        self.bufferSize = bufferSize
-        self.timeout = timeout
-        self.error = 0
-        self.progress = 0
-        self.answer = {}
-
-        self.connect()
-
-    def connect(self):
-        self.S = socket.socket()                        # Create socket (for TCP)
-        self.S.connect((self.host, self.port))          # Connect to aRTist
-        self.S.settimeout(self.timeout)
-        self.listen(0)
-        return self
-
-    def send(self, command, msgType="RESULT"):
-        c = command + '\n'
-        self.S.send(c.encode())
-        return self.listen(msgType=msgType)
-
-    def listen(self, command_no=1, msgType="RESULT"):
-        answer = ""
-        stop = False
-        if (command_no == 0):
-            self.S.settimeout(0.2)
-        while (not stop):# and ("SUCCESS" not in total) and ("ERROR" not in total):     # Solange server antwortet und nicht "SUCCESS" enthält
-            try:
-                msg = self.S.recv(self.bufferSize).decode()
-            except BaseException as e:
-                err = e.args[0]
-                if err == "timed out":
-                    #print("Timeout\n")
-                    answer += "RESULT Timeout\n"
-                    #print(answer)
-                    stop = True
-                    continue
-            else:
-                if ("SUCCESS" in msg):
-                    answer += msg
-                    stop = True
-                    continue
-                elif ("ERROR" in msg):
-                    answer += msg
-                    stop = True
-                    #global error
-                    self.error = self.error + 1 
-                    continue
-                elif ("PROGRESS" in msg):
-                    try:
-                        self.progress = float(msg.strip('PROGRESS '))
-                    except:
-                        self.progress = 0
-                    continue
-                else:
-                    if (command_no == 0):
-                        print(msg)
-                    answer += msg
-        self.S.settimeout(self.timeout)
-        self.answer.update({"SUCCESS":self.pick(answer, "SUCCESS"), "RESULT":self.pick(answer, "RESULT"), "SDTOUT":self.pick(answer, "STDOUT"), "BASE64":self.pick(answer, "BASE64"), "IMAGE":self.pick(answer, "IMAGE"), "FILE":self.pick(answer, "FILE")})
-        if (msgType != "*"):
-            answer = self.pick(answer, msgType)
-        return answer
-
-    def pick(self, answer, res='RESULT'):
-        picked = ''
-        for a in answer.split('\n'):
-            if a.find(res) == 0:
-                picked += a[1 + len(res):].strip('\r') + '\n'
-        if len(picked) == 0:
-            return res + ' not found.'
-        return picked
-
-    def get_answer(self, key):
-        return self.answer[key]
-
-    def save_image(self, imageName):
-        npTypes = [np.bool_, np.ubyte, np.byte, np.ubyte, np.short, np.ushort, np.intc, np.uintc, np.int_, np.uint, np.single, np.double]
-        imageData = self.answer["BASE64"]
-        decodedData = base64.b64decode((imageData))
-        imageHeader = self.answer["IMAGE"].split()
-        dtype = npTypes[int(imageHeader[4])]
-        im = np.frombuffer(decodedData, dtype).reshape((int(imageHeader[1]),int(imageHeader[0])))
-        Image.fromarray(im).save(imageName)
-
-    def receive_file(self, fileName):
-        fileData = self.answer["BASE64"]
-        decodedFile = base64.b64decode((fileData))
-        artistFile = open(fileName, "wb")
-        artistFile.write(decodedFile)
-        artistFile.close()
-
-    def send_file(self, fileName):
-        outFile = open(fileName, "br")
-        fileBytes = outFile.read()
-        encBytes = base64.b64encode((fileBytes))
-        encString = str(encBytes)
-        encString = encString.lstrip("b'").rstrip("'")
-        fileExtension = pathlib.Path(fileName).suffix
-        com = "::RemoteControl::ReceiveFile " + encString + " " + fileExtension
-        recAnswer = self.send(com, "RESULT")
-        return recAnswer
-
-

Methods

-
-
-def connect(self) -
-
-
-
- -Expand source code - -
def connect(self):
-    self.S = socket.socket()                        # Create socket (for TCP)
-    self.S.connect((self.host, self.port))          # Connect to aRTist
-    self.S.settimeout(self.timeout)
-    self.listen(0)
-    return self
-
-
-
-def get_answer(self, key) -
-
-
-
- -Expand source code - -
def get_answer(self, key):
-    return self.answer[key]
-
-
-
-def listen(self, command_no=1, msgType='RESULT') -
-
-
-
- -Expand source code - -
def listen(self, command_no=1, msgType="RESULT"):
-    answer = ""
-    stop = False
-    if (command_no == 0):
-        self.S.settimeout(0.2)
-    while (not stop):# and ("SUCCESS" not in total) and ("ERROR" not in total):     # Solange server antwortet und nicht "SUCCESS" enthält
-        try:
-            msg = self.S.recv(self.bufferSize).decode()
-        except BaseException as e:
-            err = e.args[0]
-            if err == "timed out":
-                #print("Timeout\n")
-                answer += "RESULT Timeout\n"
-                #print(answer)
-                stop = True
-                continue
-        else:
-            if ("SUCCESS" in msg):
-                answer += msg
-                stop = True
-                continue
-            elif ("ERROR" in msg):
-                answer += msg
-                stop = True
-                #global error
-                self.error = self.error + 1 
-                continue
-            elif ("PROGRESS" in msg):
-                try:
-                    self.progress = float(msg.strip('PROGRESS '))
-                except:
-                    self.progress = 0
-                continue
-            else:
-                if (command_no == 0):
-                    print(msg)
-                answer += msg
-    self.S.settimeout(self.timeout)
-    self.answer.update({"SUCCESS":self.pick(answer, "SUCCESS"), "RESULT":self.pick(answer, "RESULT"), "SDTOUT":self.pick(answer, "STDOUT"), "BASE64":self.pick(answer, "BASE64"), "IMAGE":self.pick(answer, "IMAGE"), "FILE":self.pick(answer, "FILE")})
-    if (msgType != "*"):
-        answer = self.pick(answer, msgType)
-    return answer
-
-
-
-def pick(self, answer, res='RESULT') -
-
-
-
- -Expand source code - -
def pick(self, answer, res='RESULT'):
-    picked = ''
-    for a in answer.split('\n'):
-        if a.find(res) == 0:
-            picked += a[1 + len(res):].strip('\r') + '\n'
-    if len(picked) == 0:
-        return res + ' not found.'
-    return picked
-
-
-
-def receive_file(self, fileName) -
-
-
-
- -Expand source code - -
def receive_file(self, fileName):
-    fileData = self.answer["BASE64"]
-    decodedFile = base64.b64decode((fileData))
-    artistFile = open(fileName, "wb")
-    artistFile.write(decodedFile)
-    artistFile.close()
-
-
-
-def save_image(self, imageName) -
-
-
-
- -Expand source code - -
def save_image(self, imageName):
-    npTypes = [np.bool_, np.ubyte, np.byte, np.ubyte, np.short, np.ushort, np.intc, np.uintc, np.int_, np.uint, np.single, np.double]
-    imageData = self.answer["BASE64"]
-    decodedData = base64.b64decode((imageData))
-    imageHeader = self.answer["IMAGE"].split()
-    dtype = npTypes[int(imageHeader[4])]
-    im = np.frombuffer(decodedData, dtype).reshape((int(imageHeader[1]),int(imageHeader[0])))
-    Image.fromarray(im).save(imageName)
-
-
-
-def send(self, command, msgType='RESULT') -
-
-
-
- -Expand source code - -
def send(self, command, msgType="RESULT"):
-    c = command + '\n'
-    self.S.send(c.encode())
-    return self.listen(msgType=msgType)
-
-
-
-def send_file(self, fileName) -
-
-
-
- -Expand source code - -
def send_file(self, fileName):
-    outFile = open(fileName, "br")
-    fileBytes = outFile.read()
-    encBytes = base64.b64encode((fileBytes))
-    encString = str(encBytes)
-    encString = encString.lstrip("b'").rstrip("'")
-    fileExtension = pathlib.Path(fileName).suffix
-    com = "::RemoteControl::ReceiveFile " + encString + " " + fileExtension
-    recAnswer = self.send(com, "RESULT")
-    return recAnswer
-
-
-
-
-
-
-
- -
- - - \ No newline at end of file diff --git a/docs/templates/head.mako b/docs/templates/head.mako deleted file mode 100644 index 9897e5a..0000000 --- a/docs/templates/head.mako +++ /dev/null @@ -1,25 +0,0 @@ -<%! - from pdoc.html_helpers import minify_css -%> -<%def name="homelink()" filter="minify_css"> - .homelink { - display: block; - font-size: 2em; - font-weight: bold; - color: #555; - padding-bottom: .5em; - border-bottom: 1px solid silver; - } - .homelink:hover { - color: inherit; - } - .homelink img { - max-width:35%; - max-height: 5em; - margin: auto; - margin-bottom: .3em; - } - - - - diff --git a/docs/templates/logo.mako b/docs/templates/logo.mako deleted file mode 100644 index a327aae..0000000 --- a/docs/templates/logo.mako +++ /dev/null @@ -1,5 +0,0 @@ -
- - artistlib - -
diff --git a/docs/test.html b/docs/test.html deleted file mode 100644 index 0fe9040..0000000 --- a/docs/test.html +++ /dev/null @@ -1,5 +0,0 @@ - - - This is a second test! - - diff --git a/example_artistlib.py b/example_artistlib.py deleted file mode 100644 index e81a6da..0000000 --- a/example_artistlib.py +++ /dev/null @@ -1,29 +0,0 @@ -import artistlib as a - -# connect to aRTist (default: host='localhost', port=3658) -rc = a.Junction() - -# print aRTist's version number -ver = a.Junction.send(rc, '::aRTist::GetVersion full') -print(ver) - -# - load a project -# - run the simulation -# - save the resulting projection from the image viewer -a.Junction.send(rc, 'FileIO::OpenAny $Xray(LibraryDir)/ExampleProjects/Schlumpfmark.aRTist') -a.Junction.send(rc, 'Engine::GoCmd') -ans = "Saved as: " -ans += a.Junction.send(rc, 'Modules::Invoke ImageViewer SaveFile [file join $env(HOME) Pictures/artistlib.tif] true') -print(ans) - -# - load a project -# - run the simulation without viewing the result -# - transfer the final projection -# - saving the projection image >>>> This requires aRTist 2.12.7 or higher! <<<< -# - delete the images to release the memory -a.Junction.send(rc, 'FileIO::OpenAny $Xray(LibraryDir)/ExampleProjects/aRTist.aRTist') -a.Junction.send(rc, 'set imgList [Engine::Go]') -a.Junction.send(rc, 'RemoteControl::SendImage [lindex $imgList 0]') -a.Junction.save_image(rc, "transferred.tif") -a.Junction.send(rc, 'foreach i $imgList {$i Delete}') -print("Saved as: transferred.tif") \ No newline at end of file diff --git a/examples/01_api_example.py b/examples/01_api_example.py new file mode 100644 index 0000000..102cb52 --- /dev/null +++ b/examples/01_api_example.py @@ -0,0 +1,76 @@ +# Copyright 2023 Simon Wittl (Deggendorf Institute of Technology) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import matplotlib.pyplot as plt +from pathlib import Path + +from artist_pythonlib import API +from artist_pythonlib.hardware import XraySource, XrayDetector + + +def main(): + # Initialize the api. + artist_api = API() + + # Move and rotate source to initial position / orientation. + artist_api.rotate('S', alpha=0., beta=77, gamma=-12.) + artist_api.translate('S', x=10, y=-129, z=199.4) + + # Get the current position of the source: + source_position = artist_api.get_position('S') + source_orientation = artist_api.get_orientation('S') + + print(f'Source Position: {source_position}') + print(f'Source Orientation: {source_orientation}') + + # Create a source object and set the voltage + source = XraySource() + source.voltage_kv = 142. + source.exposure_ma = 10. + + print(f'Source Voltage: {source.voltage_kv} kV') + print(f'Source Exposure: {source.exposure_ma} mA') + print(f'Source Type: {source.source_type}') + + # Create a detector object and set the resolution + detector = XrayDetector() + detector.detector_resolution_mm = [0.1, 0.15] + detector.detector_count_px = [1000, 1000] + + print(f'Detector Resolution: {detector.detector_resolution_mm} mm') + print(f'Detector Pixel Count: {detector.detector_count_px} px') + + # Load .stl part + new_id = artist_api.load_part( + Path(r'C:\Program Files\BAM\aRTist 2.12\Data\Library\ExampleParts\Fun\Dog.stl'), # Plesas check where the aRTist software is installed. + 'Fe', + 'test_object') + + # Make a projection an visualize it in python + image = artist_api.get_image() + + # change material + artist_api.set_material(new_id, 'Al') + + plt.imshow(image) + plt.show() + + # Set visibility off + artist_api.set_visibility(new_id, False) + + # Delete part + artist_api.delete_part(new_id) + +if __name__ == '__main__': + main() diff --git a/examples/02_circular_trajectory.py b/examples/02_circular_trajectory.py new file mode 100644 index 0000000..6e196ff --- /dev/null +++ b/examples/02_circular_trajectory.py @@ -0,0 +1,44 @@ +# Copyright 2023 Simon Wittl (Deggendorf Institute of Technology) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +from __future__ import annotations + +from pathlib import Path + +from artist_pythonlib import API, PROJECTIONGEOMETRIES +from artist_pythonlib.trajectory import circular_trajectory + + +NUMBER_OF_PROJECTIONS = 20 +SAVEFOLDER = Path('./workspace') / 'example_02' +SAVEFOLDER.mkdir(exist_ok=True) + + +def main(): + trajectory = circular_trajectory(500., 1000., NUMBER_OF_PROJECTIONS) + api = API() + + for i in range(NUMBER_OF_PROJECTIONS): + source, detector, rotation_matrix = trajectory[0][i], trajectory[1][i], trajectory[2][i] + + api.translate('S', *source) + api.translate('D', *detector) + api.rotate_from_rotation_matrix('S', rotation_matrix) + api.rotate_from_rotation_matrix('D', rotation_matrix) + + api.save_image(SAVEFOLDER / f'{i:03}.tif', save_projection_geometry=PROJECTIONGEOMETRIES.THD) + + +if __name__ == '__main__': + main() + \ No newline at end of file diff --git a/examples/03_get_spectrum.py b/examples/03_get_spectrum.py new file mode 100644 index 0000000..00ffdcb --- /dev/null +++ b/examples/03_get_spectrum.py @@ -0,0 +1,51 @@ +from artist_pythonlib import API +import numpy as np +from matplotlib import pyplot as plt +from xraydb import mu_elam + + +def scrap_spectrum(artist_spectrum: str): + try: + spectrum_dict = artist_spectrum.split('# [degrees]} ')[1].split('{# Avg:')[0] + spectrum_dict = spectrum_dict.replace('{', '') + spectrum_dict = spectrum_dict.replace('}', '') + spectrum_dict = spectrum_dict.replace('\t', ' ') + spectrum_dict = spectrum_dict.split(' ')[:-1] + spectrum = np.array(spectrum_dict, np.float32) + return spectrum.reshape((-1, 2)) + except IndexError: + raise ValueError('Ploychromatic Source must be set in aRTist!') + + +def get_current_artist_spcectrum(api: API) -> np.ndarray: + return scrap_spectrum(api.rc.send('[Engine::GetSpectrum]')) + + +def main(): + api = API() + current_spectrum = get_current_artist_spcectrum(api) + energy_keV = current_spectrum[:, 0] + photons_n = current_spectrum[:, 1] + + plt.plot(energy_keV, photons_n) + plt.title('aRTist Source Spectrum') + plt.ylabel('Photons (n)') + plt.xlabel('Energy (keV)') + plt.show() + + energy = np.arange(500, 120000, 10) # energy in eV + + for elem in ('C', 'Cu', 'Au'): + mu = mu_elam(elem, energy) + plt.plot(energy / 1000., mu, label=elem) + + plt.title('X-ray Mass Attenuation') + plt.xlabel('Energy (keV)') + plt.ylabel(r'$\mu/\rho \rm\, (cm^2/gr)$') + plt.legend() + plt.yscale('log') + plt.xscale('log') + plt.show() + +if __name__ == '__main__': + main() \ No newline at end of file diff --git a/examples/04_save_image.py b/examples/04_save_image.py new file mode 100644 index 0000000..aa34c15 --- /dev/null +++ b/examples/04_save_image.py @@ -0,0 +1,17 @@ +from artist_pythonlib import SAVEMODES, API +from artist_pythonlib.common_types import PROJECTIONGEOMETRIES +from pathlib import Path + +def main(): + # Initialize the api. + artist_api = API() + + # Save Folder + save_folder = Path('./workspace') + save_folder.mkdir(exist_ok=True) + + # Save image / Save images and load them is fastern than to send the images via the rc connection. + artist_api.save_image(save_folder / 'projection.tif', SAVEMODES.UINT16, save_projection_geometry=PROJECTIONGEOMETRIES.THD) + +if __name__ == '__main__': + main() \ No newline at end of file diff --git a/project.toml b/project.toml deleted file mode 100644 index f56da58..0000000 --- a/project.toml +++ /dev/null @@ -1,7 +0,0 @@ -[build-system] -requires = [ - "setuptools>=42", - "versioneer" - "wheel" -] -build-backend = "setuptools.build_meta" diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..82a88c7 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,29 @@ +[project] +name = "artist-pythonlib" +version = "0.1.0" +description = "Add your description here" +readme = "README.md" +authors = [ + { name = "swittl", email = "simon.wittl@th-deg.de" } +] +requires-python = ">=3.10" +dependencies = [ + "matplotlib>=3.9.2", + "numpy>=2.1.3", + "pillow>=11.0.0", + "scipy>=1.14.1", + "thd-json>=0.1.0", + "xraydb>=4.5.4", +] + +[project.optional-dependencies] +thd = [ + "thd-json", +] + +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[tool.uv.sources] +thd-json = { git = "https://mygit.th-deg.de/roboct/definitions/json_schemas" } diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index f81c5e6..0000000 --- a/setup.cfg +++ /dev/null @@ -1,12 +0,0 @@ - -# See the docstring in versioneer.py for instructions. Note that you must -# re-run 'versioneer.py setup' after changing this section, and commit the -# resulting files. - -[versioneer] -VCS = git -style = pep440 -versionfile_source = artistlib/_version.py -versionfile_build = artistlib/_version.py -tag_prefix = v -parentdir_prefix = diff --git a/setup.py b/setup.py deleted file mode 100644 index 2aa7607..0000000 --- a/setup.py +++ /dev/null @@ -1,26 +0,0 @@ -from setuptools import setup -import versioneer - -with open("README.md", "r", encoding="utf-8") as fh: - long_description = fh.read() - -setup(name='artistlib', - version=versioneer.get_version(), - cmdclass=versioneer.get_cmdclass(), - description='aRTist Python library', - url='https://github.com/BAMresearch/aRTist-PythonLib', - author='Carsten Bellon', - author_email='Carsten.Bellon@bam.de', - long_description=long_description, - long_description_content_type="text/markdown", - license='Apache 2.0', - packages=['artistlib'], - classifiers=[ - "Programming Language :: Python :: 3", - "License :: OSI Approved :: Apache Software License", - "Operating System :: OS Independent", - "Natural Language :: English", - "Topic :: Multimedia :: Graphics :: Graphics Conversion" - ], - zip_safe=False) - \ No newline at end of file diff --git a/src/artist_pythonlib/__init__.py b/src/artist_pythonlib/__init__.py new file mode 100644 index 0000000..2aa4ad2 --- /dev/null +++ b/src/artist_pythonlib/__init__.py @@ -0,0 +1,12 @@ +# -*- coding: UTF-8 -*- +"""The aRTist Python library is intended to remote control and automate the radiographic simulator aRTist. + +.. include:: ./documentation.md +""" + +from .remote_connection import Junction +from .api import API +from .common_types import SAVEMODES, SOURCETYPES, PROJECTIONGEOMETRIES + + +__all__ = ["SAVEMODES", "SOURCETYPES", "PROJECTIONGEOMETRIES", "Junction", "API"] diff --git a/src/artist_pythonlib/api.py b/src/artist_pythonlib/api.py new file mode 100644 index 0000000..b3ecc79 --- /dev/null +++ b/src/artist_pythonlib/api.py @@ -0,0 +1,388 @@ +# Copyright 2023 Simon Wittl (Deggendorf Institute of Technology) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +from __future__ import annotations + +import numpy as np + +from scipy.spatial.transform import Rotation +from pathlib import Path +import json + +from artist_pythonlib.geometries import projection_geometry, thd_projection_geometry +from artist_pythonlib.common_types import PROJECTIONGEOMETRIES, SAVEMODES +from artist_pythonlib.remote_connection import Junction, _rc + + +class API: + def __init__(self, remote_control: Junction = None) -> None: + if remote_control is None: + remote_control = _rc + self.rc = remote_control + + @staticmethod + def path_to_artist(path: Path) -> str: + return str(path.absolute()).replace("\\", "\\\\") + + def get_image(self) -> np.ndarray: + """Make a projection of the current scene. + + Returns: + np.ndarray: projection as ndarray. + """ + self.rc.send("set imgList [Engine::Go]") + self.rc.send("RemoteControl::SendImage [lindex $imgList 0]") + return self.rc.get_image() + + def save_image( + self, + save_path: Path, + save_mode: SAVEMODES = SAVEMODES.UINT16, + save_projection_geometry: PROJECTIONGEOMETRIES = PROJECTIONGEOMETRIES.NONE, + ): + """Save the current scene as projection. The projection geometry can be stored in a .json file. + + Args: + save_path (Path): Save path of the Projection + save_mode (SAVEMODES, optional): File type of saved projection. Defaults to SAVEMODES.UINT16. + save_projection_geometry (bool, optional): Projection geometry of the scene. Stem of save_path is used as path. Defaults to True. + """ + save_path = save_path.resolve() + if save_projection_geometry > 0: + if save_projection_geometry == PROJECTIONGEOMETRIES.THD: + geom = self.projection_geometry(save_projection_geometry) + + name = f'{save_path.stem}_{geom["header"]["uuid"]}' + save_path = save_path.parent / f"{name}.tif" + save_path_json = save_path.parent / f"{name}.json" + else: + save_path_json = save_path.parent / f"{save_path.stem}.json" + + with open(str(save_path_json), "w") as f: + json.dump(geom, f, indent=4) + + if save_mode == SAVEMODES.UINT8: + self._save_image_uint8(save_path) + elif save_mode == SAVEMODES.UINT16: + self._save_image_uint16(save_path) + elif save_mode == SAVEMODES.FLOAT_TIFF: + self._save_image_float_tiff(save_path) + elif save_mode == SAVEMODES.FLOAT_RAW: + self._save_image_float_raw(save_path) + elif save_mode == SAVEMODES.PNG: + self._save_image_png(save_path) + + def _save_image_uint16(self, save_path: Path): + """Saves the current scene as projection (.tif) and geometry (.json). + + Args: + save_path (Path): Save path of the projection. + """ + # self.rc.send('set imgList [Engine::Go]') + save_path_projection = str(save_path.absolute()).replace("\\", "\\\\") + self.rc.send( + f'set imgList [Engine::Go]; Image::SaveFloatTIFF [lindex $imgList 0] {save_path_projection} True; {r"foreach i $imgList {$i Delete}"}' + ) + + def _save_image_uint8(self, save_path: Path): + """Saves the current scene as projection (.tif) and geometry (.json). + + Args: + save_path (Path): Save path of the projection. + """ + # self.rc.send('set imgList [Engine::Go]') + save_path_projection = str(save_path.absolute()).replace("\\", "\\\\") + save_path_json = ( + save_path.parent / (save_path.stem + ".json") + ) # Image::SaveFile [lindex $imgList 0] [file join $env(HOME) Pictures/artistlib2.tif] true', + self.rc.send( + f'set imgList [Engine::Go]; Image::SaveFloatTIFF [lindex $imgList 0] {save_path_projection} True; {r"foreach i $imgList {$i Delete}"}' + ) + + with open(str(save_path_json), "w") as f: + json.dump(self.projection_geometry(), f, indent=4) + + def _save_image_float_tiff(self, save_path: Path): + """Saves the current scene as projection (.tiff) and geometry (.json). + + Args: + save_path (Path): Save path of the projection. + """ + # self.rc.send('set imgList [Engine::Go]') + save_path_projection = str(save_path.absolute()).replace("\\", "\\\\") + self.rc.send( + f'set imgList [Engine::Go]; Image::SaveFloatTIFF [lindex $imgList 0] {save_path_projection} True; {r"foreach i $imgList {$i Delete}"}' + ) + # self.rc.send('foreach i $imgList {$i Delete}') + + def _save_image_float_raw(self, save_path: Path): + """Saves the current scene as projection (.raw) and geometry (.json). + + Args: + save_path (Path): Save path of the projection. + """ + # self.rc.send('set imgList [Engine::Go]') + save_path_projection = str(save_path.absolute()).replace("\\", "\\\\") + save_path_json = ( + save_path.parent / (save_path.stem + ".json") + ) # Image::SaveFile [lindex $imgList 0] [file join $env(HOME) Pictures/artistlib2.tif] true', + self.rc.send( + f'set imgList [Engine::Go]; Image::SaveFloatTIFF [lindex $imgList 0] {save_path_projection} True; {r"foreach i $imgList {$i Delete}"}' + ) + + with open(str(save_path_json), "w") as f: + json.dump(self.projection_geometry(), f, indent=4) + + def _save_image_png(self, save_path: Path): + """Saves the current scene as projection (.png) and geometry (.json). + + Args: + save_path (Path): Save path of the projection. + """ + # self.rc.send('set imgList [Engine::Go]') + save_path_projection = str(save_path.absolute()).replace("\\", "\\\\") + self.rc.send( + f'set imgList [Engine::Go]; Image::SaveFloatTIFF [lindex $imgList 0] {save_path_projection} True; {r"foreach i $imgList {$i Delete}"}' + ) + + def translate( + self, id: int | str, x: float = 0.0, y: float = 0.0, z: float = 0.0 + ) -> None: + """Moves an object to an absolute position. All values in [mm]. + + Args: + id (int | str): ID of the Object. + x (float, optional): Absolute X position. Defaults to 0.0. + y (float, optional): Absolute Y position. Defaults to 0.0. + z (float, optional): Absolute Z position. Defaults to 0.0. + """ + self.rc.send( + f"::PartList::Invoke {str(id)} SetPosition {str(x)} {str(y)} {str(z)};" + ) + self.rc.send( + f"::PartList::Invoke {str(id)} SetRefPos {str(x)} {str(y)} {str(z)};" + ) + + def scale(self, id: int | str, x: float = 1.0) -> None: + """Moves an object to an absolute position. All values in [mm]. + + Args: + id (int | str): ID of the Object. + x (float, optional): Absolute X position. Defaults to 0.0. + y (float, optional): Absolute Y position. Defaults to 0.0. + z (float, optional): Absolute Z position. Defaults to 0.0. + """ + self.rc.send( + f"::PartList::Invoke {str(id)} SetScale {str(x)} {str(x)} {str(x)};" + ) + + def rotate( + self, id: int | str, alpha: float = 0.0, beta: float = 0.0, gamma: float = 0.0 + ) -> None: + """Rotates an object to an absolute position. All values in [°]. + + Args: + id (int | str): _description_ + alpha (float, optional): Absolute alpha rotation. Defaults to 0.0. + beta (float, optional): Absolute beta rotation. Defaults to 0.0. + gamma (float, optional): Absolute gamma rotation. Defaults to 0.0. + """ + position = self.get_position(id) + self.rc.send( + f"::PartList::Invoke {str(id)} SetRefPos {str(position[0])} {str(position[1])} {str(position[2])};" + ) + self.rc.send( + f"::PartList::Invoke {str(id)} SetOrientation {str(alpha)} {str(beta)} {str(gamma)};" + ) + + def rotate_from_rotation_matrix( + self, id: int | str, rotation_matrix: np.ndarray + ) -> None: + """Rotates an object to an absolute position. + + Args: + id (int | str): ID of the Object. + rotation_matrix (np.ndarray): Rotation matrix in world coordinate system. + """ + rotation = Rotation.from_matrix(rotation_matrix) + euler_scipy = rotation.as_euler("ZXY", degrees=True) + euler_scipy = [euler_scipy[1], euler_scipy[2], euler_scipy[0]] + self.rotate(id, *euler_scipy) + + def rotate_from_quat(self, id: int | str, qaurternion: np.ndarray) -> None: + """Rotates an object to an absolute position. + + Args: + id (int | str): ID of the Object. + qaurternion (np.ndarray): Quarternion in world coordinate system. + """ + self.rotate_from_rotation_matrix( + id, Rotation.from_quat(qaurternion).as_matrix() + ) + + def get_position(self, id: int | str) -> np.ndarray: + """Returns the current position of the object in [mm]. + + Args: + id (int | str): ID of the Object. + + Returns: + np.ndarray: position (x,y,z) in [mm]. + """ + result = self.rc.send(f"[::PartList::Get {id} Obj] GetPosition") + return np.float32(result[1:-1].split(" ")) + + def get_euler_angles(self, id: int | str) -> np.ndarray: + """Returns the current orientation of the object as euler angles in the ZXY convention. + + Args: + id (int | str): ID of the Object. + + + Returns: + np.ndarray: Euler angle in ZXY convention. + """ + result = self.rc.send(f"[::PartList::Get {id} Obj] GetOrientation") + return np.float32(result[1:-1].split(" ")) + + def get_rotation_matrix(self, id: int | str) -> np.ndarray: + euler_angles = self.get_euler_angles(id) + + R_x = Rotation.from_euler("x", euler_angles[0], degrees=True).as_matrix() + R_y = Rotation.from_euler("y", euler_angles[1], degrees=True).as_matrix() + R_z = Rotation.from_euler("z", euler_angles[2], degrees=True).as_matrix() + + # rotation = Rotation.from_euler('zxy', -euler_angles, degrees=True).as_matrix() + + rotation = R_z + rotation: np.ndarray = rotation.dot(R_x) + rotation = rotation.dot(R_y) + + # rotation = R_y + # rotation = rotation.dot(R_x) + # rotation = rotation.dot(R_z) + + return rotation + + def get_orientation(self, id) -> np.ndarray: + """Return the current orientation of the object as quaternion. + + Args: + id (int | str): ID of the Object. + + Returns: + np.ndarray: Quaternion of the object in the world coordinate system. + """ + rotation = Rotation.from_matrix(self.get_rotation_matrix(id)) + return rotation.as_quat() + + def projection_geometry( + self, mode: PROJECTIONGEOMETRIES = PROJECTIONGEOMETRIES.THD + ) -> dict: + """Returns the current projection geometry of the scene. All positions are in [mm]. + + Returns: + dict: Dictionary of the projection geometry. Keys are: 'focal_spot_position_mm', + 'focal_spot_orientation_matrix', 'detector_center_position_mm', + 'detector_center_orientation_matrix', 'detector_center_orientation_quat', + 'detector_count_px' and 'detector_resolution_mm' + """ + if mode == PROJECTIONGEOMETRIES.STANDARD: + return projection_geometry(self) + elif mode == PROJECTIONGEOMETRIES.THD: + return thd_projection_geometry(self) + + def get_detector_resolution(self) -> np.ndarray: + """Returns the current pixel pitch of the detector as array + + Returns: + np.ndarray: Pixel pitch of the detector (u, v). + """ + result = self.rc.send("::XDetector::GetResolution") + return np.array(np.float32(result.split(" "))) + + def get_detector_pixel_count(self) -> np.ndarray: + """Returns the current pixel count of the detector. + + Returns: + np.ndarray: Pixel count (u, v). + """ + result = self.rc.send("::XDetector::GetPixelSize") + return np.array(np.int32(result.split(" "))) + + def set_material(self, id: int | str, material: str): + """Changes the material of the object. + + Args: + id (int | str): ID of the Object. + material (str): Matiral as string. !!!Must be in the material database of artist!!! + """ + self.rc.send(f"::PartList::SetMaterial {material} {id}") + + def get_material(self, id: int | str): + """Returns the material of the object. + + Args: + id (int | str): ID of the Object. + """ + return_value = self.rc.send(f"::PartList::Get {id} Material") + return return_value + + def load_part( + self, load_path: Path, material: str = "Al", name: str = "Object" + ) -> int: + """Loads a mesh file into the artist scene. Returns the object id for further mainpulations. + + Args: + load_path (Path): Path object pointing to the mesh file. + material (str, optional): Material of the mesh file. Defaults to 'Al'. + name (str, optional): Displayed name in the aRTist GUI. Defaults to 'Object'. + + Returns: + int: Object ID for further Manipulations. + """ + return_value = self.rc.send( + f'set obj [::PartList::LoadPart "{self.path_to_artist(load_path)}" "{material}" "{name}"]' + ) + return int(return_value) + + def delete_part(self, id: int | str): + """Delets the object from the scene. + + Args: + id (int | str): ID of the Object. + """ + self.rc.send(f'::PartList::Delete "{id}"') + + def set_visibility(self, id: int | str, visible: bool = True): + """Sets the Object in/visiible. + + Args: + id (int | str): ID of the Object. + visible (bool, optional): Visible: True. Defaults to True. + """ + visible = "on" if visible else "off" + self.rc.send(f'[::PartList::Get {id} Obj] SetVisibility "{visible}"') + + def clear_scene(self): + """Clears all objects from the scene.""" + self.rc.send("::PartList::Clear") + + def load_project(self, project_file: Path): + if project_file.suffix != ".aRTist": + raise ValueError( + "Wrong File / Path. The *project_file* path must be a .aRTist File!" + ) + self.rc.send( + f'::XRayProject::LoadProject "{self.path_to_artist(project_file)}"' + ) diff --git a/src/artist_pythonlib/common_types.py b/src/artist_pythonlib/common_types.py new file mode 100644 index 0000000..c83a03a --- /dev/null +++ b/src/artist_pythonlib/common_types.py @@ -0,0 +1,34 @@ +# Copyright 2023 Simon Wittl (Deggendorf Institute of Technology) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from enum import IntEnum + + +class SOURCETYPES(IntEnum): + MONOCHROMATIC = 0 + GENERAL = 1 + + +class SAVEMODES(IntEnum): + UINT8 = 0 + UINT16 = 1 + FLOAT_TIFF = 2 + FLOAT_RAW = 3 + PNG = 4 + + +class PROJECTIONGEOMETRIES(IntEnum): + NONE = 0 + STANDARD = 1 + THD = 2 diff --git a/src/artist_pythonlib/geometries/__init__.py b/src/artist_pythonlib/geometries/__init__.py new file mode 100644 index 0000000..890a2cb --- /dev/null +++ b/src/artist_pythonlib/geometries/__init__.py @@ -0,0 +1,4 @@ +from .standard_format import projection_geometry +from .thd_format import thd_projection_geometry + +__all__ = ["projection_geometry", "thd_projection_geometry"] diff --git a/src/artist_pythonlib/geometries/standard_format.py b/src/artist_pythonlib/geometries/standard_format.py new file mode 100644 index 0000000..144dcf5 --- /dev/null +++ b/src/artist_pythonlib/geometries/standard_format.py @@ -0,0 +1,39 @@ +from __future__ import annotations + +import numpy as np +from scipy.spatial.transform import Rotation + + +def projection_geometry(api) -> dict: + """Returns the current projection geometry of the scene. All positions are in [mm]. + + Returns: + dict: Dictionary of the projection geometry. Keys are: 'focal_spot_position_mm', + 'focal_spot_orientation_matrix', 'detector_center_position_mm', + 'detector_center_orientation_matrix', 'detector_center_orientation_quat', + 'detector_count_px' and 'detector_resolution_mm' + """ + source_position = np.array(api.get_position("S")) + source_orientation = np.array(api.get_rotation_matrix("S")) + detector_position = np.array(api.get_position("D")) + detector_orientation = np.array(api.get_rotation_matrix("D")) + + detector_resolution = api.get_detector_resolution() + detector_pixel_count = api.get_detector_pixel_count() + + data_dict = dict() + data_dict["focal_spot_position_mm"] = source_position.tolist() + data_dict["focal_spot_orientation_quat"] = ( + Rotation.from_matrix(source_orientation).as_quat().tolist() + ) + data_dict["detector_center_position_mm"] = detector_position.tolist() + data_dict["detector_center_orientation_quat"] = ( + Rotation.from_matrix(detector_orientation).as_quat().tolist() + ) + + data_dict["image_width_px"] = detector_pixel_count.tolist()[0] + data_dict["pixel_pitch_width_mm"] = detector_resolution.tolist()[0] + data_dict["image_height_px"] = detector_pixel_count.tolist()[1] + data_dict["pixel_pitch_height_mm"] = detector_resolution.tolist()[1] + + return data_dict diff --git a/src/artist_pythonlib/geometries/thd_format.py b/src/artist_pythonlib/geometries/thd_format.py new file mode 100644 index 0000000..0614591 --- /dev/null +++ b/src/artist_pythonlib/geometries/thd_format.py @@ -0,0 +1,64 @@ +import numpy as np +from scipy.spatial.transform import Rotation + +try: + from thd_json.header import generate_header +except ModuleNotFoundError: + from warnings import warn + + warn( + "The optional modules of `thd` is not installed. THD Json geometry is not available." + ) + + +def thd_projection_geometry(api) -> dict: + """Returns the current projection geometry of the scene. All positions are in [mm]. + + Returns: + dict: Dictionary of the projection geometry. Keys are: 'focal_spot_position_mm', + 'focal_spot_orientation_matrix', 'detector_center_position_mm', + 'detector_center_orientation_matrix', 'detector_center_orientation_quat', + 'detector_count_px' and 'detector_resolution_mm' + """ + source_position = np.array(api.get_position("S")) + source_orientation = np.array(api.get_rotation_matrix("S")) + detector_position = np.array(api.get_position("D")) + detector_orientation = np.array(api.get_rotation_matrix("D")) + + detector_resolution = api.get_detector_resolution() + detector_pixel_count = api.get_detector_pixel_count() + + data_dict = dict() + header_dict = dict() + projection_geometry = dict() + image = dict() + detector = dict() + + json_header = generate_header() + header_dict["uuid"] = json_header.uuid + header_dict["timestamp"] = json_header.timestamp + + projection_geometry["focal_spot_position_mm"] = source_position.tolist() + projection_geometry["focal_spot_orientation_quat"] = ( + Rotation.from_matrix(source_orientation).as_quat().tolist() + ) + projection_geometry["detector_center_position_mm"] = detector_position.tolist() + projection_geometry["detector_center_orientation_quat"] = ( + Rotation.from_matrix(detector_orientation).as_quat().tolist() + ) + + image["uuid"] = json_header.uuid + image["timestamp"] = json_header.timestamp + image["image_path"] = f"{json_header.uuid}.tif" + + detector["image_width_px"] = detector_pixel_count.tolist()[0] + detector["pixel_pitch_width_mm"] = detector_resolution.tolist()[0] + detector["image_height_px"] = detector_pixel_count.tolist()[1] + detector["pixel_pitch_height_mm"] = detector_resolution.tolist()[1] + + data_dict["projection_geometry"] = projection_geometry + data_dict["image"] = image + data_dict["detector"] = detector + data_dict["header"] = header_dict + + return data_dict diff --git a/src/artist_pythonlib/hardware/__init__.py b/src/artist_pythonlib/hardware/__init__.py new file mode 100644 index 0000000..e675328 --- /dev/null +++ b/src/artist_pythonlib/hardware/__init__.py @@ -0,0 +1,18 @@ +# Copyright 2023 Simon Wittl (Deggendorf Institute of Technology) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from .xray_source import XraySource +from .xray_detector import XrayDetector + +__all__ = ["XraySource", "XrayDetector"] diff --git a/src/artist_pythonlib/hardware/base_hardware.py b/src/artist_pythonlib/hardware/base_hardware.py new file mode 100644 index 0000000..782cb37 --- /dev/null +++ b/src/artist_pythonlib/hardware/base_hardware.py @@ -0,0 +1,29 @@ +# Copyright 2023 Simon Wittl (Deggendorf Institute of Technology) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +from __future__ import annotations + +from ..remote_connection import Junction, _rc +from ..api import API + + +class BaseHardware: + def __init__(self, remote_control: Junction | API = None) -> None: + if isinstance(remote_control, Junction): + self.rc = remote_control + elif isinstance(remote_control, API): + self.rc = remote_control.rc + elif remote_control is None: + self.rc = _rc + else: + raise ValueError("Wrong remote_control argument?") diff --git a/src/artist_pythonlib/hardware/xray_detector.py b/src/artist_pythonlib/hardware/xray_detector.py new file mode 100644 index 0000000..5e4a094 --- /dev/null +++ b/src/artist_pythonlib/hardware/xray_detector.py @@ -0,0 +1,73 @@ +# Copyright 2023 Simon Wittl (Deggendorf Institute of Technology) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +from __future__ import annotations + +from artist_pythonlib.api import API +from artist_pythonlib.remote_connection import Junction +from .base_hardware import BaseHardware + +import numpy as np + + +class XrayDetector(BaseHardware): + def __init__(self, remote_control: Junction | API = None) -> None: + """XRay detector object. Needs a remote control connection. + + Args: + remote_control (Junction | API, optional): Remote control connection for the communication with artist. Defaults to None. + """ + super().__init__(remote_control) + + @property + def detector_resolution_mm(self) -> np.ndarray: + """Current detector resolution / pixel pitch in [mm]. + + Returns: + np.ndarray: Detector resolution (u, v) in [mm]. + """ + return_value = self.rc.send("::XDetector::GetResolution") + return_value = np.array(np.float32(return_value.split(" "))) + return return_value + + @detector_resolution_mm.setter + def detector_resolution_mm(self, detector_resolution_mm: np.ndarray) -> None: + self.rc.send(f"set ::Xsetup_private(DGdx) {detector_resolution_mm[0]}") + self.rc.send(f"set ::Xsetup_private(DGdy) {detector_resolution_mm[1]}") + + @property + def detector_count_px(self) -> np.ndarray: + """Current detector pixel count. + + Returns: + np.ndarray: Detector pixel count (u, v) in [n]. + """ + return_value = self.rc.send("::XDetector::GetPixelSize") + return_value = np.array(np.int32(return_value.split(" "))) + return return_value + + @detector_count_px.setter + def detector_count_px(self, detector_count_px: np.ndarray) -> None: + self.rc.send(f"set ::Xsetup(DetectorPixelX) {detector_count_px[0]}") + self.rc.send(f"set ::Xsetup(DetectorPixelY) {detector_count_px[1]}") + + @property + def flatfield_correction(self) -> bool: + """Faltfiled corrected? + + Returns: + bool: Return wheter the projection is flatfield corrected or not. + """ + return_value = self.rc.send("array get Xdetector FFCorrRun") + return_value = return_value.split(" ")[1] + return bool(return_value) diff --git a/src/artist_pythonlib/hardware/xray_source.py b/src/artist_pythonlib/hardware/xray_source.py new file mode 100644 index 0000000..f1f7878 --- /dev/null +++ b/src/artist_pythonlib/hardware/xray_source.py @@ -0,0 +1,117 @@ +# Copyright 2023 Simon Wittl (Deggendorf Institute of Technology) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +from __future__ import annotations + + +from artist_pythonlib.api import API +from artist_pythonlib.remote_connection import Junction +from .base_hardware import BaseHardware + +from ..common_types import SOURCETYPES + + +class XraySource(BaseHardware): + def __init__(self, remote_control: Junction | API = None) -> None: + """Xray source objet. Needs a remote control connection. + + Args: + remote_control (Junction | API, optional): remote connection to communicate with aRTist. Defaults to None. + """ + super().__init__(remote_control) + + @property + def voltage_kv(self) -> float: + """Current voltage setting of the XRay source. + + Returns: + float: Voltage value in [kV]. + """ + return_value = self.rc.send("array get Xsource Voltage") + return_value = return_value.split(" ")[1] + return float(return_value) + + @voltage_kv.setter + def voltage_kv(self, voltage_kv: float) -> None: + self.rc.send(f"set ::Xsource(Voltage) {voltage_kv}") + self.rc.send("::XSource::ComputeSpectrum") + + @property + def exposure_ma(self) -> float: + """Current set exposure of the XRay source + + Returns: + float: Exposure in [µA]. + """ + return_value = self.rc.send("array get Xsource Exposure") + return_value = return_value.split(" ")[1] + return float(return_value) + + @exposure_ma.setter + def exposure_ma(self, exposure_ma: float) -> None: + self.rc.send(f"set ::Xsource(Exposure) {exposure_ma}") + + @property + def filter_material(self) -> str: + """Filter Material of the XRay source. + + Returns: + str: Filter material of the XRay source. + """ + return_value = self.rc.send("array get Xsource FilterMaterial") + return_value = return_value.split(" ")[1] + return str(return_value) + + @filter_material.setter + def filter_material(self, filter_material: float) -> None: + self.rc.send(f"set ::Xsource(FilterMaterial) {filter_material}") + self.rc.send("::XSource::ComputeSpectrum") + + @property + def filter_thickness_mm(self) -> float: + """Thickness of the filter in [mm]. + + Returns: + float: Filter thickness in [mm]. + """ + return_value = self.rc.send("array get Xsource FilterThickness") + return_value = return_value.split(" ")[1] + return float(return_value) + + @filter_thickness_mm.setter + def filter_thickness_mm(self, filter_thickness_mm: float) -> None: + self.rc.send(f"set ::Xsource(FilterThickness) {filter_thickness_mm}") + self.rc.send("::XSource::ComputeSpectrum") + + @property + def source_type(self) -> int: + """Source type of the XRay source. Types are Monocromatic or General. See SOURCETYPES. + + Returns: + int: Source type as integer. Use SOURCETYPES. + """ + return_value = self.rc.send("array get Xsource Tube") + return_value = return_value.split(" ")[1] + + if str(return_value).startswith("Mono"): + return SOURCETYPES.MONOCHROMATIC + elif str(return_value).startswith("General"): + return SOURCETYPES.GENERAL + + @source_type.setter + def source_type(self, source_type: SOURCETYPES) -> None: + if source_type == SOURCETYPES.MONOCHROMATIC: + self.rc.send("set ::Xsource(Tube) Mono") + elif source_type == SOURCETYPES.GENERAL: + self.rc.send("set ::Xsource(Tube) General") + self.rc.send("::XSource::ComputeSpectrum") diff --git a/src/artist_pythonlib/py.typed b/src/artist_pythonlib/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/src/artist_pythonlib/remote_connection.py b/src/artist_pythonlib/remote_connection.py new file mode 100644 index 0000000..a5163a8 --- /dev/null +++ b/src/artist_pythonlib/remote_connection.py @@ -0,0 +1,157 @@ +# Copyright 2023 Simon Wittl (Deggendorf Institute of Technology) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import numpy as np +import socket +import base64 +import pathlib +from PIL import Image + + +class Junction: + """Remote control of aRTist simulator (this is a test)""" + + def __init__(self, host="localhost", port=3658, bufferSize=1024, timeout=10): + self.host = host + self.port = port + self.bufferSize = bufferSize + self.timeout = timeout + self.error = 0 + self.progress = 0 + self.answer = {} + + self.connect() + + def connect(self): + try: + self.S = socket.socket() # Create socket (for TCP) + self.S.connect((self.host, self.port)) # Connect to aRTist + self.S.settimeout(self.timeout) + self.S.setblocking(True) + self.listen(0) + except ConnectionRefusedError: + print( + "The Connection to aRTist was refused. Is aRTist running and the remote connection enabled?" + ) + except Exception as e: + raise e + return self + + def send(self, command, msgType="RESULT"): + c = command + "\n" + self.S.send(c.encode()) + return self.listen(msgType=msgType) + + def listen(self, command_no=1, msgType="RESULT"): + answer = "" + stop = False + if command_no == 0: + self.S.settimeout(0.2) + while not stop: # and ("SUCCESS" not in total) and ("ERROR" not in total): # Solange server antwortet und nicht "SUCCESS" enthält + try: + msg = self.S.recv(self.bufferSize).decode() + except BaseException as e: + err = e.args[0] + if err == "timed out": + # print("Timeout\n") + answer += "RESULT Timeout\n" + # print(answer) + stop = True + continue + else: + if "SUCCESS" in msg: + answer += msg + stop = True + continue + elif "ERROR" in msg: + answer += msg + stop = True + # global error + self.error = self.error + 1 + continue + elif "PROGRESS" in msg: + try: + self.progress = float(msg.strip("PROGRESS ")) + except ValueError: + self.progress = 0 + continue + else: + if command_no == 0: + print(msg) + answer += msg + self.S.settimeout(self.timeout) + self.answer.update( + { + "SUCCESS": self.pick(answer, "SUCCESS"), + "RESULT": self.pick(answer, "RESULT"), + "SDTOUT": self.pick(answer, "STDOUT"), + "BASE64": self.pick(answer, "BASE64"), + "IMAGE": self.pick(answer, "IMAGE"), + "FILE": self.pick(answer, "FILE"), + } + ) + if msgType != "*": + answer = self.pick(answer, msgType) + return answer + + def pick(self, answer, res="RESULT"): + picked = "" + for a in answer.split("\n"): + if a.find(res) == 0: + picked += a[1 + len(res) :].strip("\r") + "\n" + if len(picked) == 0: + return res + " not found." + return picked + + def get_answer(self, key): + return self.answer[key] + + def save_image(self, imageName: str): + imageData = self.answer["BASE64"] + decodedData = base64.b64decode((imageData)) + imageHeader = self.answer["IMAGE"].split() + im = np.frombuffer(decodedData, np.double).reshape( + (int(imageHeader[1]), int(imageHeader[2])) + ) + Image.fromarray(im).save(imageName) + + def receive_file(self, fileName): + fileData = self.answer["BASE64"] + decodedFile = base64.b64decode((fileData)) + artistFile = open(fileName, "wb") + artistFile.write(decodedFile) + artistFile.close() + + def send_file(self, fileName): + outFile = open(fileName, "br") + fileBytes = outFile.read() + encBytes = base64.b64encode((fileBytes)) + encString = str(encBytes) + encString = encString.lstrip("b'").rstrip("'") + fileExtension = pathlib.Path(fileName).suffix + com = "::RemoteControl::ReceiveFile " + encString + " " + fileExtension + recAnswer = self.send(com, "RESULT") + return recAnswer + + def get_image(self) -> np.ndarray: + imageData = self.answer["BASE64"] + decodedData = base64.b64decode((imageData)) + imageHeader = self.answer["IMAGE"].split() + dtype = np.double + return np.frombuffer(decodedData, dtype).reshape( + (int(imageHeader[1]), int(imageHeader[2])) + ) + + +_rc = Junction() diff --git a/src/artist_pythonlib/trajectory/__init__.py b/src/artist_pythonlib/trajectory/__init__.py new file mode 100644 index 0000000..2d2d766 --- /dev/null +++ b/src/artist_pythonlib/trajectory/__init__.py @@ -0,0 +1,27 @@ +# Copyright 2023 Simon Wittl (Deggendorf Institute of Technology) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from .ct_trajectories import ( + circular_trajectory, + look_at_orientation, + sphere_trajectory, + arbitary_circular_trajectory, +) + +__all__ = [ + "circular_trajectory", + "look_at_orientation", + "sphere_trajectory", + "arbitary_circular_trajectory", +] diff --git a/src/artist_pythonlib/trajectory/ct_trajectories.py b/src/artist_pythonlib/trajectory/ct_trajectories.py new file mode 100644 index 0000000..3b2d464 --- /dev/null +++ b/src/artist_pythonlib/trajectory/ct_trajectories.py @@ -0,0 +1,127 @@ +# Copyright 2023 Simon Wittl (Deggendorf Institute of Technology) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +from __future__ import annotations + +import numpy as np +from scipy.spatial.transform import Rotation + + +def circular_trajectory( + fod_mm: float, fdd_mm: float, number_of_projections: int, opening_angle: float = 0.2 +) -> tuple[np.ndarray, np.ndarray, np.ndarray]: + if fod_mm > fdd_mm: + raise ValueError("fod > fdd.") + + rotation_angles = np.linspace( + 0.0, np.pi * (1.0 + opening_angle), number_of_projections, endpoint=False + ) + rotation_object = Rotation.from_euler("Y", rotation_angles, degrees=False) + + source_initial_position = np.array([0.0, 0.0, fod_mm]) + detector_initial_position = np.array([0.0, 0.0, fod_mm - fdd_mm]) + + source_positions = rotation_object.apply(source_initial_position) + detector_positions = rotation_object.apply(detector_initial_position) + + return source_positions, detector_positions, rotation_object.as_matrix() + + +def look_at_orientation( + source, detector, up_vector: np.ndarray = np.array([0.0, 0.0, 1.0]) +): + normal = source - detector + normal = normal / np.linalg.norm(normal) + + up_axis = int(np.argmax(up_vector)) + + line = np.cross(normal, up_vector) + col = np.cross(line, normal) + + if np.sign(col[up_axis]) != np.sign(up_vector[up_axis]): + col *= -1.0 + + line = np.cross(normal, col) + + rotation_matrix = np.eye(3) + rotation_matrix[:, 0] = line + rotation_matrix[:, 1] = col + rotation_matrix[:, 2] = normal + + if np.linalg.det(rotation_matrix) < 0.0: + rotation_matrix[:, np.argmax(up_vector)] *= -1.0 + + return rotation_matrix + + +def sphere_trajectory( + fod_mm: float, fdd_mm: float, number_of_projections: int +) -> tuple[np.ndarray, np.ndarray, np.ndarray]: + phi = (1.0 + np.sqrt(5.0)) / 2.0 + start = -(number_of_projections - 1.0) + end = number_of_projections - 1.0 + i = np.linspace(start, end, number_of_projections) + theta = np.divide(2.0 * i * np.pi, phi) + sphi = i / number_of_projections + cphi = ( + np.sqrt((number_of_projections + i) * (number_of_projections - i)) + / number_of_projections + ) + + point_array = np.zeros((number_of_projections, 3)) + + point_array[:, 0] = cphi * np.cos(theta) + point_array[:, 1] = cphi * np.sin(theta) + point_array[:, 2] = sphi + + source_positions = point_array * fod_mm + detector_positions = point_array * (fod_mm - fdd_mm) + orientation = np.array( + list(map(look_at_orientation, source_positions, detector_positions)) + ) + + return source_positions, detector_positions, orientation + + +def arbitary_circular_trajectory( + fod_mm: float, + fdd_mm: float, + number_of_projections: int, + transformation: np.ndarray = np.eye(4), + opening_angle: float = 0.2, +): + source_positions, detector_positions, orientation = circular_trajectory( + fod_mm, fdd_mm, number_of_projections, opening_angle + ) + + source_transformation_matrix = np.zeros((number_of_projections, 4, 4)) + source_transformation_matrix[:, 3, 3] = 1.0 + detector_transformation_matrix = source_transformation_matrix.copy() + + source_transformation_matrix[:, :3, 3] = source_positions + detector_transformation_matrix[:, :3, 3] = detector_positions + + source_transformation_matrix[:, :3, :3] = orientation + detector_transformation_matrix[:, :3, :3] = orientation + + transformation = np.expand_dims(transformation, 0) + source_transformation_matrix = transformation @ source_transformation_matrix + detector_transformation_matrix = transformation @ detector_transformation_matrix + + return ( + source_transformation_matrix[:, :3, 3].reshape((number_of_projections, 3)), + detector_transformation_matrix[:, :3, 3].reshape((number_of_projections, 3)), + detector_transformation_matrix[:, :3, :3].reshape( + (number_of_projections, 3, 3) + ), + ) diff --git a/src/artist_pythonlib/utility/__init__.py b/src/artist_pythonlib/utility/__init__.py new file mode 100644 index 0000000..d4b84c8 --- /dev/null +++ b/src/artist_pythonlib/utility/__init__.py @@ -0,0 +1,3 @@ +from .load_projection import load_projection, load_header + +__all__ = ["load_projection", "load_header"] diff --git a/src/artist_pythonlib/utility/load_projection.py b/src/artist_pythonlib/utility/load_projection.py new file mode 100644 index 0000000..0a46195 --- /dev/null +++ b/src/artist_pythonlib/utility/load_projection.py @@ -0,0 +1,27 @@ +from PIL import Image +import numpy as np +from pathlib import Path +import json +import time + + +def load_projection( + projection_path: Path, load_projection_geometry: bool = True +) -> tuple[np.ndarray, dict]: + try: + projection_array = np.array(Image.open(projection_path)) + except FileNotFoundError: + time.sleep(1) + projection_array = np.array(Image.open(projection_path)) + + if not load_projection_geometry: + return projection_array, None + else: + return projection_array, load_header(projection_path) + + +def load_header(projection_path) -> dict: + with open(str(projection_path.parent / f"{projection_path.stem}.json"), "r") as f: + projection_geometry = json.load(f) + + return projection_geometry diff --git a/uv.lock b/uv.lock new file mode 100644 index 0000000..f166e0a --- /dev/null +++ b/uv.lock @@ -0,0 +1,795 @@ +version = 1 +requires-python = ">=3.10" + +[[package]] +name = "artist-pythonlib" +version = "0.1.0" +source = { editable = "." } +dependencies = [ + { name = "matplotlib" }, + { name = "numpy" }, + { name = "pillow" }, + { name = "scipy" }, + { name = "thd-json" }, + { name = "xraydb" }, +] + +[package.optional-dependencies] +thd = [ + { name = "thd-json" }, +] + +[package.metadata] +requires-dist = [ + { name = "matplotlib", specifier = ">=3.9.2" }, + { name = "numpy", specifier = ">=2.1.3" }, + { name = "pillow", specifier = ">=11.0.0" }, + { name = "scipy", specifier = ">=1.14.1" }, + { name = "thd-json", git = "https://mygit.th-deg.de/roboct/definitions/json_schemas" }, + { name = "thd-json", marker = "extra == 'thd'", git = "https://mygit.th-deg.de/roboct/definitions/json_schemas" }, + { name = "xraydb", specifier = ">=4.5.4" }, +] + +[[package]] +name = "attrs" +version = "24.2.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/fc/0f/aafca9af9315aee06a89ffde799a10a582fe8de76c563ee80bbcdc08b3fb/attrs-24.2.0.tar.gz", hash = "sha256:5cfb1b9148b5b086569baec03f20d7b6bf3bcacc9a42bebf87ffaaca362f6346", size = 792678 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6a/21/5b6702a7f963e95456c0de2d495f67bf5fd62840ac655dc451586d23d39a/attrs-24.2.0-py3-none-any.whl", hash = "sha256:81921eb96de3191c8258c199618104dd27ac608d9366f5e35d011eae1867ede2", size = 63001 }, +] + +[[package]] +name = "contourpy" +version = "1.3.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/25/c2/fc7193cc5383637ff390a712e88e4ded0452c9fbcf84abe3de5ea3df1866/contourpy-1.3.1.tar.gz", hash = "sha256:dfd97abd83335045a913e3bcc4a09c0ceadbe66580cf573fe961f4a825efa699", size = 13465753 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b2/a3/80937fe3efe0edacf67c9a20b955139a1a622730042c1ea991956f2704ad/contourpy-1.3.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:a045f341a77b77e1c5de31e74e966537bba9f3c4099b35bf4c2e3939dd54cdab", size = 268466 }, + { url = "https://files.pythonhosted.org/packages/82/1d/e3eaebb4aa2d7311528c048350ca8e99cdacfafd99da87bc0a5f8d81f2c2/contourpy-1.3.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:500360b77259914f7805af7462e41f9cb7ca92ad38e9f94d6c8641b089338124", size = 253314 }, + { url = "https://files.pythonhosted.org/packages/de/f3/d796b22d1a2b587acc8100ba8c07fb7b5e17fde265a7bb05ab967f4c935a/contourpy-1.3.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b2f926efda994cdf3c8d3fdb40b9962f86edbc4457e739277b961eced3d0b4c1", size = 312003 }, + { url = "https://files.pythonhosted.org/packages/bf/f5/0e67902bc4394daee8daa39c81d4f00b50e063ee1a46cb3938cc65585d36/contourpy-1.3.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:adce39d67c0edf383647a3a007de0a45fd1b08dedaa5318404f1a73059c2512b", size = 351896 }, + { url = "https://files.pythonhosted.org/packages/1f/d6/e766395723f6256d45d6e67c13bb638dd1fa9dc10ef912dc7dd3dcfc19de/contourpy-1.3.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:abbb49fb7dac584e5abc6636b7b2a7227111c4f771005853e7d25176daaf8453", size = 320814 }, + { url = "https://files.pythonhosted.org/packages/a9/57/86c500d63b3e26e5b73a28b8291a67c5608d4aa87ebd17bd15bb33c178bc/contourpy-1.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a0cffcbede75c059f535725c1680dfb17b6ba8753f0c74b14e6a9c68c29d7ea3", size = 324969 }, + { url = "https://files.pythonhosted.org/packages/b8/62/bb146d1289d6b3450bccc4642e7f4413b92ebffd9bf2e91b0404323704a7/contourpy-1.3.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:ab29962927945d89d9b293eabd0d59aea28d887d4f3be6c22deaefbb938a7277", size = 1265162 }, + { url = "https://files.pythonhosted.org/packages/18/04/9f7d132ce49a212c8e767042cc80ae390f728060d2eea47058f55b9eff1c/contourpy-1.3.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:974d8145f8ca354498005b5b981165b74a195abfae9a8129df3e56771961d595", size = 1324328 }, + { url = "https://files.pythonhosted.org/packages/46/23/196813901be3f97c83ababdab1382e13e0edc0bb4e7b49a7bff15fcf754e/contourpy-1.3.1-cp310-cp310-win32.whl", hash = "sha256:ac4578ac281983f63b400f7fe6c101bedc10651650eef012be1ccffcbacf3697", size = 173861 }, + { url = "https://files.pythonhosted.org/packages/e0/82/c372be3fc000a3b2005061ca623a0d1ecd2eaafb10d9e883a2fc8566e951/contourpy-1.3.1-cp310-cp310-win_amd64.whl", hash = "sha256:174e758c66bbc1c8576992cec9599ce8b6672b741b5d336b5c74e35ac382b18e", size = 218566 }, + { url = "https://files.pythonhosted.org/packages/12/bb/11250d2906ee2e8b466b5f93e6b19d525f3e0254ac8b445b56e618527718/contourpy-1.3.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:3e8b974d8db2c5610fb4e76307e265de0edb655ae8169e8b21f41807ccbeec4b", size = 269555 }, + { url = "https://files.pythonhosted.org/packages/67/71/1e6e95aee21a500415f5d2dbf037bf4567529b6a4e986594d7026ec5ae90/contourpy-1.3.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:20914c8c973f41456337652a6eeca26d2148aa96dd7ac323b74516988bea89fc", size = 254549 }, + { url = "https://files.pythonhosted.org/packages/31/2c/b88986e8d79ac45efe9d8801ae341525f38e087449b6c2f2e6050468a42c/contourpy-1.3.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:19d40d37c1c3a4961b4619dd9d77b12124a453cc3d02bb31a07d58ef684d3d86", size = 313000 }, + { url = "https://files.pythonhosted.org/packages/c4/18/65280989b151fcf33a8352f992eff71e61b968bef7432fbfde3a364f0730/contourpy-1.3.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:113231fe3825ebf6f15eaa8bc1f5b0ddc19d42b733345eae0934cb291beb88b6", size = 352925 }, + { url = "https://files.pythonhosted.org/packages/f5/c7/5fd0146c93220dbfe1a2e0f98969293b86ca9bc041d6c90c0e065f4619ad/contourpy-1.3.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4dbbc03a40f916a8420e420d63e96a1258d3d1b58cbdfd8d1f07b49fcbd38e85", size = 323693 }, + { url = "https://files.pythonhosted.org/packages/85/fc/7fa5d17daf77306840a4e84668a48ddff09e6bc09ba4e37e85ffc8e4faa3/contourpy-1.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3a04ecd68acbd77fa2d39723ceca4c3197cb2969633836ced1bea14e219d077c", size = 326184 }, + { url = "https://files.pythonhosted.org/packages/ef/e7/104065c8270c7397c9571620d3ab880558957216f2b5ebb7e040f85eeb22/contourpy-1.3.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:c414fc1ed8ee1dbd5da626cf3710c6013d3d27456651d156711fa24f24bd1291", size = 1268031 }, + { url = "https://files.pythonhosted.org/packages/e2/4a/c788d0bdbf32c8113c2354493ed291f924d4793c4a2e85b69e737a21a658/contourpy-1.3.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:31c1b55c1f34f80557d3830d3dd93ba722ce7e33a0b472cba0ec3b6535684d8f", size = 1325995 }, + { url = "https://files.pythonhosted.org/packages/a6/e6/a2f351a90d955f8b0564caf1ebe4b1451a3f01f83e5e3a414055a5b8bccb/contourpy-1.3.1-cp311-cp311-win32.whl", hash = "sha256:f611e628ef06670df83fce17805c344710ca5cde01edfdc72751311da8585375", size = 174396 }, + { url = "https://files.pythonhosted.org/packages/a8/7e/cd93cab453720a5d6cb75588cc17dcdc08fc3484b9de98b885924ff61900/contourpy-1.3.1-cp311-cp311-win_amd64.whl", hash = "sha256:b2bdca22a27e35f16794cf585832e542123296b4687f9fd96822db6bae17bfc9", size = 219787 }, + { url = "https://files.pythonhosted.org/packages/37/6b/175f60227d3e7f5f1549fcb374592be311293132207e451c3d7c654c25fb/contourpy-1.3.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:0ffa84be8e0bd33410b17189f7164c3589c229ce5db85798076a3fa136d0e509", size = 271494 }, + { url = "https://files.pythonhosted.org/packages/6b/6a/7833cfae2c1e63d1d8875a50fd23371394f540ce809d7383550681a1fa64/contourpy-1.3.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:805617228ba7e2cbbfb6c503858e626ab528ac2a32a04a2fe88ffaf6b02c32bc", size = 255444 }, + { url = "https://files.pythonhosted.org/packages/7f/b3/7859efce66eaca5c14ba7619791b084ed02d868d76b928ff56890d2d059d/contourpy-1.3.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ade08d343436a94e633db932e7e8407fe7de8083967962b46bdfc1b0ced39454", size = 307628 }, + { url = "https://files.pythonhosted.org/packages/48/b2/011415f5e3f0a50b1e285a0bf78eb5d92a4df000553570f0851b6e309076/contourpy-1.3.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:47734d7073fb4590b4a40122b35917cd77be5722d80683b249dac1de266aac80", size = 347271 }, + { url = "https://files.pythonhosted.org/packages/84/7d/ef19b1db0f45b151ac78c65127235239a8cf21a59d1ce8507ce03e89a30b/contourpy-1.3.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2ba94a401342fc0f8b948e57d977557fbf4d515f03c67682dd5c6191cb2d16ec", size = 318906 }, + { url = "https://files.pythonhosted.org/packages/ba/99/6794142b90b853a9155316c8f470d2e4821fe6f086b03e372aca848227dd/contourpy-1.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:efa874e87e4a647fd2e4f514d5e91c7d493697127beb95e77d2f7561f6905bd9", size = 323622 }, + { url = "https://files.pythonhosted.org/packages/3c/0f/37d2c84a900cd8eb54e105f4fa9aebd275e14e266736778bb5dccbf3bbbb/contourpy-1.3.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1bf98051f1045b15c87868dbaea84f92408337d4f81d0e449ee41920ea121d3b", size = 1266699 }, + { url = "https://files.pythonhosted.org/packages/3a/8a/deb5e11dc7d9cc8f0f9c8b29d4f062203f3af230ba83c30a6b161a6effc9/contourpy-1.3.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:61332c87493b00091423e747ea78200659dc09bdf7fd69edd5e98cef5d3e9a8d", size = 1326395 }, + { url = "https://files.pythonhosted.org/packages/1a/35/7e267ae7c13aaf12322ccc493531f1e7f2eb8fba2927b9d7a05ff615df7a/contourpy-1.3.1-cp312-cp312-win32.whl", hash = "sha256:e914a8cb05ce5c809dd0fe350cfbb4e881bde5e2a38dc04e3afe1b3e58bd158e", size = 175354 }, + { url = "https://files.pythonhosted.org/packages/a1/35/c2de8823211d07e8a79ab018ef03960716c5dff6f4d5bff5af87fd682992/contourpy-1.3.1-cp312-cp312-win_amd64.whl", hash = "sha256:08d9d449a61cf53033612cb368f3a1b26cd7835d9b8cd326647efe43bca7568d", size = 220971 }, + { url = "https://files.pythonhosted.org/packages/9a/e7/de62050dce687c5e96f946a93546910bc67e483fe05324439e329ff36105/contourpy-1.3.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:a761d9ccfc5e2ecd1bf05534eda382aa14c3e4f9205ba5b1684ecfe400716ef2", size = 271548 }, + { url = "https://files.pythonhosted.org/packages/78/4d/c2a09ae014ae984c6bdd29c11e74d3121b25eaa117eca0bb76340efd7e1c/contourpy-1.3.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:523a8ee12edfa36f6d2a49407f705a6ef4c5098de4f498619787e272de93f2d5", size = 255576 }, + { url = "https://files.pythonhosted.org/packages/ab/8a/915380ee96a5638bda80cd061ccb8e666bfdccea38d5741cb69e6dbd61fc/contourpy-1.3.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ece6df05e2c41bd46776fbc712e0996f7c94e0d0543af1656956d150c4ca7c81", size = 306635 }, + { url = "https://files.pythonhosted.org/packages/29/5c/c83ce09375428298acd4e6582aeb68b1e0d1447f877fa993d9bf6cd3b0a0/contourpy-1.3.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:573abb30e0e05bf31ed067d2f82500ecfdaec15627a59d63ea2d95714790f5c2", size = 345925 }, + { url = "https://files.pythonhosted.org/packages/29/63/5b52f4a15e80c66c8078a641a3bfacd6e07106835682454647aca1afc852/contourpy-1.3.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a9fa36448e6a3a1a9a2ba23c02012c43ed88905ec80163f2ffe2421c7192a5d7", size = 318000 }, + { url = "https://files.pythonhosted.org/packages/9a/e2/30ca086c692691129849198659bf0556d72a757fe2769eb9620a27169296/contourpy-1.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3ea9924d28fc5586bf0b42d15f590b10c224117e74409dd7a0be3b62b74a501c", size = 322689 }, + { url = "https://files.pythonhosted.org/packages/6b/77/f37812ef700f1f185d348394debf33f22d531e714cf6a35d13d68a7003c7/contourpy-1.3.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5b75aa69cb4d6f137b36f7eb2ace9280cfb60c55dc5f61c731fdf6f037f958a3", size = 1268413 }, + { url = "https://files.pythonhosted.org/packages/3f/6d/ce84e79cdd128542ebeb268f84abb4b093af78e7f8ec504676673d2675bc/contourpy-1.3.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:041b640d4ec01922083645a94bb3b2e777e6b626788f4095cf21abbe266413c1", size = 1326530 }, + { url = "https://files.pythonhosted.org/packages/72/22/8282f4eae20c73c89bee7a82a19c4e27af9b57bb602ecaa00713d5bdb54d/contourpy-1.3.1-cp313-cp313-win32.whl", hash = "sha256:36987a15e8ace5f58d4d5da9dca82d498c2bbb28dff6e5d04fbfcc35a9cb3a82", size = 175315 }, + { url = "https://files.pythonhosted.org/packages/e3/d5/28bca491f65312b438fbf076589dcde7f6f966b196d900777f5811b9c4e2/contourpy-1.3.1-cp313-cp313-win_amd64.whl", hash = "sha256:a7895f46d47671fa7ceec40f31fae721da51ad34bdca0bee83e38870b1f47ffd", size = 220987 }, + { url = "https://files.pythonhosted.org/packages/2f/24/a4b285d6adaaf9746e4700932f579f1a7b6f9681109f694cfa233ae75c4e/contourpy-1.3.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:9ddeb796389dadcd884c7eb07bd14ef12408aaae358f0e2ae24114d797eede30", size = 285001 }, + { url = "https://files.pythonhosted.org/packages/48/1d/fb49a401b5ca4f06ccf467cd6c4f1fd65767e63c21322b29b04ec40b40b9/contourpy-1.3.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:19c1555a6801c2f084c7ddc1c6e11f02eb6a6016ca1318dd5452ba3f613a1751", size = 268553 }, + { url = "https://files.pythonhosted.org/packages/79/1e/4aef9470d13fd029087388fae750dccb49a50c012a6c8d1d634295caa644/contourpy-1.3.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:841ad858cff65c2c04bf93875e384ccb82b654574a6d7f30453a04f04af71342", size = 310386 }, + { url = "https://files.pythonhosted.org/packages/b0/34/910dc706ed70153b60392b5305c708c9810d425bde12499c9184a1100888/contourpy-1.3.1-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4318af1c925fb9a4fb190559ef3eec206845f63e80fb603d47f2d6d67683901c", size = 349806 }, + { url = "https://files.pythonhosted.org/packages/31/3c/faee6a40d66d7f2a87f7102236bf4780c57990dd7f98e5ff29881b1b1344/contourpy-1.3.1-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:14c102b0eab282427b662cb590f2e9340a9d91a1c297f48729431f2dcd16e14f", size = 321108 }, + { url = "https://files.pythonhosted.org/packages/17/69/390dc9b20dd4bb20585651d7316cc3054b7d4a7b4f8b710b2b698e08968d/contourpy-1.3.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:05e806338bfeaa006acbdeba0ad681a10be63b26e1b17317bfac3c5d98f36cda", size = 327291 }, + { url = "https://files.pythonhosted.org/packages/ef/74/7030b67c4e941fe1e5424a3d988080e83568030ce0355f7c9fc556455b01/contourpy-1.3.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:4d76d5993a34ef3df5181ba3c92fabb93f1eaa5729504fb03423fcd9f3177242", size = 1263752 }, + { url = "https://files.pythonhosted.org/packages/f0/ed/92d86f183a8615f13f6b9cbfc5d4298a509d6ce433432e21da838b4b63f4/contourpy-1.3.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:89785bb2a1980c1bd87f0cb1517a71cde374776a5f150936b82580ae6ead44a1", size = 1318403 }, + { url = "https://files.pythonhosted.org/packages/b3/0e/c8e4950c77dcfc897c71d61e56690a0a9df39543d2164040301b5df8e67b/contourpy-1.3.1-cp313-cp313t-win32.whl", hash = "sha256:8eb96e79b9f3dcadbad2a3891672f81cdcab7f95b27f28f1c67d75f045b6b4f1", size = 185117 }, + { url = "https://files.pythonhosted.org/packages/c1/31/1ae946f11dfbd229222e6d6ad8e7bd1891d3d48bde5fbf7a0beb9491f8e3/contourpy-1.3.1-cp313-cp313t-win_amd64.whl", hash = "sha256:287ccc248c9e0d0566934e7d606201abd74761b5703d804ff3df8935f523d546", size = 236668 }, + { url = "https://files.pythonhosted.org/packages/3e/4f/e56862e64b52b55b5ddcff4090085521fc228ceb09a88390a2b103dccd1b/contourpy-1.3.1-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:b457d6430833cee8e4b8e9b6f07aa1c161e5e0d52e118dc102c8f9bd7dd060d6", size = 265605 }, + { url = "https://files.pythonhosted.org/packages/b0/2e/52bfeeaa4541889f23d8eadc6386b442ee2470bd3cff9baa67deb2dd5c57/contourpy-1.3.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cb76c1a154b83991a3cbbf0dfeb26ec2833ad56f95540b442c73950af2013750", size = 315040 }, + { url = "https://files.pythonhosted.org/packages/52/94/86bfae441707205634d80392e873295652fc313dfd93c233c52c4dc07874/contourpy-1.3.1-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:44a29502ca9c7b5ba389e620d44f2fbe792b1fb5734e8b931ad307071ec58c53", size = 218221 }, +] + +[[package]] +name = "cycler" +version = "0.12.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a9/95/a3dbbb5028f35eafb79008e7522a75244477d2838f38cbb722248dabc2a8/cycler-0.12.1.tar.gz", hash = "sha256:88bb128f02ba341da8ef447245a9e138fae777f6a23943da4540077d3601eb1c", size = 7615 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e7/05/c19819d5e3d95294a6f5947fb9b9629efb316b96de511b418c53d245aae6/cycler-0.12.1-py3-none-any.whl", hash = "sha256:85cef7cff222d8644161529808465972e51340599459b8ac3ccbac5a854e0d30", size = 8321 }, +] + +[[package]] +name = "exceptiongroup" +version = "1.2.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/09/35/2495c4ac46b980e4ca1f6ad6db102322ef3ad2410b79fdde159a4b0f3b92/exceptiongroup-1.2.2.tar.gz", hash = "sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc", size = 28883 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/02/cc/b7e31358aac6ed1ef2bb790a9746ac2c69bcb3c8588b41616914eb106eaf/exceptiongroup-1.2.2-py3-none-any.whl", hash = "sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b", size = 16453 }, +] + +[[package]] +name = "fonttools" +version = "4.55.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d7/4e/053fe1b5c0ce346c0a9d0557492c654362bafb14f026eae0d3ee98009152/fonttools-4.55.0.tar.gz", hash = "sha256:7636acc6ab733572d5e7eec922b254ead611f1cdad17be3f0be7418e8bfaca71", size = 3490431 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d8/8c/57600ebff0b2119b725bc11eeea32b17b0220f3fae71b5fff082a1891270/fonttools-4.55.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:51c029d4c0608a21a3d3d169dfc3fb776fde38f00b35ca11fdab63ba10a16f61", size = 2770301 }, + { url = "https://files.pythonhosted.org/packages/02/94/dff7e57a751918b133a303418202b4f43e3dc3c887e2a648089e0463b1a7/fonttools-4.55.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:bca35b4e411362feab28e576ea10f11268b1aeed883b9f22ed05675b1e06ac69", size = 2295806 }, + { url = "https://files.pythonhosted.org/packages/09/31/ff18d79d449510850fe4a96c0ba50ee6d0b9b815a6b5a2489d809e9a8db5/fonttools-4.55.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9ce4ba6981e10f7e0ccff6348e9775ce25ffadbee70c9fd1a3737e3e9f5fa74f", size = 4577709 }, + { url = "https://files.pythonhosted.org/packages/c4/03/8136887d1b0b7a9831c7e8e2598c0e5851e31cc2231295769350349a236b/fonttools-4.55.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:31d00f9852a6051dac23294a4cf2df80ced85d1d173a61ba90a3d8f5abc63c60", size = 4633411 }, + { url = "https://files.pythonhosted.org/packages/a7/37/86ac06a7505e57de2daaf0a1cc885b7767c74d376ef2cf82933e8ef79399/fonttools-4.55.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:e198e494ca6e11f254bac37a680473a311a88cd40e58f9cc4dc4911dfb686ec6", size = 4572887 }, + { url = "https://files.pythonhosted.org/packages/0d/85/1e429359d1842a104b638433587ff62d9dc8339a8c467787087962502a53/fonttools-4.55.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:7208856f61770895e79732e1dcbe49d77bd5783adf73ae35f87fcc267df9db81", size = 4745036 }, + { url = "https://files.pythonhosted.org/packages/81/65/763ac1fe2a3e52220f7a7fd2a5de0c784045e773aa9d299450019ac66f9e/fonttools-4.55.0-cp310-cp310-win32.whl", hash = "sha256:e7e6a352ff9e46e8ef8a3b1fe2c4478f8a553e1b5a479f2e899f9dc5f2055880", size = 2170126 }, + { url = "https://files.pythonhosted.org/packages/3e/67/93939482715e629c4bd6fd1f3d154c1bf45b81ee383f50e44d31fa542f83/fonttools-4.55.0-cp310-cp310-win_amd64.whl", hash = "sha256:636caaeefe586d7c84b5ee0734c1a5ab2dae619dc21c5cf336f304ddb8f6001b", size = 2213882 }, + { url = "https://files.pythonhosted.org/packages/17/50/75461e050ded02b9eaa8097df52c2a8752cf4c24db8b44b150755b76c8f1/fonttools-4.55.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:fa34aa175c91477485c44ddfbb51827d470011e558dfd5c7309eb31bef19ec51", size = 2771444 }, + { url = "https://files.pythonhosted.org/packages/de/5e/98130db3770e8d12f70aa61f2555c32284d4e9c592862469d32b7ee48626/fonttools-4.55.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:37dbb3fdc2ef7302d3199fb12468481cbebaee849e4b04bc55b77c24e3c49189", size = 2296439 }, + { url = "https://files.pythonhosted.org/packages/17/35/36fe271296fe7624811f5261a0662155e075b43b79ffacea85a03f36593d/fonttools-4.55.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b5263d8e7ef3c0ae87fbce7f3ec2f546dc898d44a337e95695af2cd5ea21a967", size = 4883141 }, + { url = "https://files.pythonhosted.org/packages/47/2b/9bf7527260d265281dd812951aa22f3d1c331bcc91e86e7038dc6b9737cb/fonttools-4.55.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f307f6b5bf9e86891213b293e538d292cd1677e06d9faaa4bf9c086ad5f132f6", size = 4931050 }, + { url = "https://files.pythonhosted.org/packages/0b/7b/7324d3aa8424c71b63ba2e76eb4a46d6947e23065996e755c1682e666f42/fonttools-4.55.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:f0a4b52238e7b54f998d6a56b46a2c56b59c74d4f8a6747fb9d4042190f37cd3", size = 4894154 }, + { url = "https://files.pythonhosted.org/packages/2c/53/a54926be69e43d277877106a6cbfab467cb02f9c756258c7c9932e8eb382/fonttools-4.55.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:3e569711464f777a5d4ef522e781dc33f8095ab5efd7548958b36079a9f2f88c", size = 5064715 }, + { url = "https://files.pythonhosted.org/packages/0c/f7/9602868af9a2dfc4659637a752da8691655e81a2d6138231dcaa1efe8840/fonttools-4.55.0-cp311-cp311-win32.whl", hash = "sha256:2b3ab90ec0f7b76c983950ac601b58949f47aca14c3f21eed858b38d7ec42b05", size = 2169536 }, + { url = "https://files.pythonhosted.org/packages/30/57/9e2ddd16ad84ab26616ae4346b3b15e9a50669ca1b442cbe760af073807c/fonttools-4.55.0-cp311-cp311-win_amd64.whl", hash = "sha256:aa046f6a63bb2ad521004b2769095d4c9480c02c1efa7d7796b37826508980b6", size = 2215265 }, + { url = "https://files.pythonhosted.org/packages/ec/79/38209f8f6235021b6209147ec7b2f748afde65c59c6274ac96fef3912094/fonttools-4.55.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:838d2d8870f84fc785528a692e724f2379d5abd3fc9dad4d32f91cf99b41e4a7", size = 2765205 }, + { url = "https://files.pythonhosted.org/packages/e3/07/434a21eab80524613c9753db2ff21d6bc3cf264412d8833a85022fd39088/fonttools-4.55.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:f46b863d74bab7bb0d395f3b68d3f52a03444964e67ce5c43ce43a75efce9246", size = 2293908 }, + { url = "https://files.pythonhosted.org/packages/c8/63/aa3274d9be36aaaef8c087e413cbc1dd682ff94776a82c111bad88482947/fonttools-4.55.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:33b52a9cfe4e658e21b1f669f7309b4067910321757fec53802ca8f6eae96a5a", size = 4795901 }, + { url = "https://files.pythonhosted.org/packages/fc/0b/dbe13f2c8d745ffdf5c2bc25391263927d4ec2b927e44d5d5f70cd372873/fonttools-4.55.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:732a9a63d6ea4a81b1b25a1f2e5e143761b40c2e1b79bb2b68e4893f45139a40", size = 4879252 }, + { url = "https://files.pythonhosted.org/packages/46/85/eefb400ec66e9e7c159d13c72aba473d9c2a0c556d812b0916418aa9019e/fonttools-4.55.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:7dd91ac3fcb4c491bb4763b820bcab6c41c784111c24172616f02f4bc227c17d", size = 4773177 }, + { url = "https://files.pythonhosted.org/packages/93/75/f06d175df4d7dbad97061c8698210ce4231cce9aa56cc263f3b6b5340540/fonttools-4.55.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:1f0e115281a32ff532118aa851ef497a1b7cda617f4621c1cdf81ace3e36fb0c", size = 5032809 }, + { url = "https://files.pythonhosted.org/packages/78/eb/f3520ba63b5e4a034f2bfd34d8ab32eb95a1bf37a1f792ea48461fba08f6/fonttools-4.55.0-cp312-cp312-win32.whl", hash = "sha256:6c99b5205844f48a05cb58d4a8110a44d3038c67ed1d79eb733c4953c628b0f6", size = 2157762 }, + { url = "https://files.pythonhosted.org/packages/aa/d1/5f007861cab890f2a35a19a1d2a2815655ec10b0ea7fd881b1d3aaab0076/fonttools-4.55.0-cp312-cp312-win_amd64.whl", hash = "sha256:f8c8c76037d05652510ae45be1cd8fb5dd2fd9afec92a25374ac82255993d57c", size = 2203746 }, + { url = "https://files.pythonhosted.org/packages/c3/87/a669ac26c6077e37ffb06abf29c5571789eefe518d06c52df392181ee694/fonttools-4.55.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:8118dc571921dc9e4b288d9cb423ceaf886d195a2e5329cc427df82bba872cd9", size = 2752519 }, + { url = "https://files.pythonhosted.org/packages/0c/e9/4822ad238fe215133c7df20f1cdb1a58cfb634a31523e77ff0fb2033970a/fonttools-4.55.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:01124f2ca6c29fad4132d930da69158d3f49b2350e4a779e1efbe0e82bd63f6c", size = 2286819 }, + { url = "https://files.pythonhosted.org/packages/3e/a4/d7941c3897129e60fe68d20e4819fda4d0c4858d77badae0e80ca6440b36/fonttools-4.55.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:81ffd58d2691f11f7c8438796e9f21c374828805d33e83ff4b76e4635633674c", size = 4770382 }, + { url = "https://files.pythonhosted.org/packages/31/cf/c51ea1348f9fba9c627439afad9dee0090040809ab431f4422b5bfdda34c/fonttools-4.55.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5435e5f1eb893c35c2bc2b9cd3c9596b0fcb0a59e7a14121562986dd4c47b8dd", size = 4858336 }, + { url = "https://files.pythonhosted.org/packages/73/be/36c1fe0e5c9a96b068ddd7e82001243bbe7fe12549c8d14e1bd025bf40c9/fonttools-4.55.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:d12081729280c39d001edd0f4f06d696014c26e6e9a0a55488fabc37c28945e4", size = 4756072 }, + { url = "https://files.pythonhosted.org/packages/5c/18/6dd381c29f215a017f79aa9fea0722424a0046b47991c4390a78ff87ce0c/fonttools-4.55.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a7ad1f1b98ab6cb927ab924a38a8649f1ffd7525c75fe5b594f5dab17af70e18", size = 5008668 }, + { url = "https://files.pythonhosted.org/packages/b8/95/316f20092b389b927dba1d1dccd3f541853f96e707e210f1b9f4e7bacdd5/fonttools-4.55.0-cp313-cp313-win32.whl", hash = "sha256:abe62987c37630dca69a104266277216de1023cf570c1643bb3a19a9509e7a1b", size = 2155841 }, + { url = "https://files.pythonhosted.org/packages/35/ca/b4638aa3e446184892e2f9cc8ef44bb506f47fea04580df7fb84f5a4363d/fonttools-4.55.0-cp313-cp313-win_amd64.whl", hash = "sha256:2863555ba90b573e4201feaf87a7e71ca3b97c05aa4d63548a4b69ea16c9e998", size = 2200587 }, + { url = "https://files.pythonhosted.org/packages/b4/4a/786589606d4989cb34d8bc766cd687d955aaf3039c367fe7104bcf82dc98/fonttools-4.55.0-py3-none-any.whl", hash = "sha256:12db5888cd4dd3fcc9f0ee60c6edd3c7e1fd44b7dd0f31381ea03df68f8a153f", size = 1100249 }, +] + +[[package]] +name = "greenlet" +version = "3.1.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/2f/ff/df5fede753cc10f6a5be0931204ea30c35fa2f2ea7a35b25bdaf4fe40e46/greenlet-3.1.1.tar.gz", hash = "sha256:4ce3ac6cdb6adf7946475d7ef31777c26d94bccc377e070a7986bd2d5c515467", size = 186022 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/25/90/5234a78dc0ef6496a6eb97b67a42a8e96742a56f7dc808cb954a85390448/greenlet-3.1.1-cp310-cp310-macosx_11_0_universal2.whl", hash = "sha256:0bbae94a29c9e5c7e4a2b7f0aae5c17e8e90acbfd3bf6270eeba60c39fce3563", size = 271235 }, + { url = "https://files.pythonhosted.org/packages/7c/16/cd631fa0ab7d06ef06387135b7549fdcc77d8d859ed770a0d28e47b20972/greenlet-3.1.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0fde093fb93f35ca72a556cf72c92ea3ebfda3d79fc35bb19fbe685853869a83", size = 637168 }, + { url = "https://files.pythonhosted.org/packages/2f/b1/aed39043a6fec33c284a2c9abd63ce191f4f1a07319340ffc04d2ed3256f/greenlet-3.1.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:36b89d13c49216cadb828db8dfa6ce86bbbc476a82d3a6c397f0efae0525bdd0", size = 648826 }, + { url = "https://files.pythonhosted.org/packages/76/25/40e0112f7f3ebe54e8e8ed91b2b9f970805143efef16d043dfc15e70f44b/greenlet-3.1.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:94b6150a85e1b33b40b1464a3f9988dcc5251d6ed06842abff82e42632fac120", size = 644443 }, + { url = "https://files.pythonhosted.org/packages/fb/2f/3850b867a9af519794784a7eeed1dd5bc68ffbcc5b28cef703711025fd0a/greenlet-3.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:93147c513fac16385d1036b7e5b102c7fbbdb163d556b791f0f11eada7ba65dc", size = 643295 }, + { url = "https://files.pythonhosted.org/packages/cf/69/79e4d63b9387b48939096e25115b8af7cd8a90397a304f92436bcb21f5b2/greenlet-3.1.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:da7a9bff22ce038e19bf62c4dd1ec8391062878710ded0a845bcf47cc0200617", size = 599544 }, + { url = "https://files.pythonhosted.org/packages/46/1d/44dbcb0e6c323bd6f71b8c2f4233766a5faf4b8948873225d34a0b7efa71/greenlet-3.1.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:b2795058c23988728eec1f36a4e5e4ebad22f8320c85f3587b539b9ac84128d7", size = 1125456 }, + { url = "https://files.pythonhosted.org/packages/e0/1d/a305dce121838d0278cee39d5bb268c657f10a5363ae4b726848f833f1bb/greenlet-3.1.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:ed10eac5830befbdd0c32f83e8aa6288361597550ba669b04c48f0f9a2c843c6", size = 1149111 }, + { url = "https://files.pythonhosted.org/packages/96/28/d62835fb33fb5652f2e98d34c44ad1a0feacc8b1d3f1aecab035f51f267d/greenlet-3.1.1-cp310-cp310-win_amd64.whl", hash = "sha256:77c386de38a60d1dfb8e55b8c1101d68c79dfdd25c7095d51fec2dd800892b80", size = 298392 }, + { url = "https://files.pythonhosted.org/packages/28/62/1c2665558618553c42922ed47a4e6d6527e2fa3516a8256c2f431c5d0441/greenlet-3.1.1-cp311-cp311-macosx_11_0_universal2.whl", hash = "sha256:e4d333e558953648ca09d64f13e6d8f0523fa705f51cae3f03b5983489958c70", size = 272479 }, + { url = "https://files.pythonhosted.org/packages/76/9d/421e2d5f07285b6e4e3a676b016ca781f63cfe4a0cd8eaecf3fd6f7a71ae/greenlet-3.1.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:09fc016b73c94e98e29af67ab7b9a879c307c6731a2c9da0db5a7d9b7edd1159", size = 640404 }, + { url = "https://files.pythonhosted.org/packages/e5/de/6e05f5c59262a584e502dd3d261bbdd2c97ab5416cc9c0b91ea38932a901/greenlet-3.1.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d5e975ca70269d66d17dd995dafc06f1b06e8cb1ec1e9ed54c1d1e4a7c4cf26e", size = 652813 }, + { url = "https://files.pythonhosted.org/packages/49/93/d5f93c84241acdea15a8fd329362c2c71c79e1a507c3f142a5d67ea435ae/greenlet-3.1.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3b2813dc3de8c1ee3f924e4d4227999285fd335d1bcc0d2be6dc3f1f6a318ec1", size = 648517 }, + { url = "https://files.pythonhosted.org/packages/15/85/72f77fc02d00470c86a5c982b8daafdf65d38aefbbe441cebff3bf7037fc/greenlet-3.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e347b3bfcf985a05e8c0b7d462ba6f15b1ee1c909e2dcad795e49e91b152c383", size = 647831 }, + { url = "https://files.pythonhosted.org/packages/f7/4b/1c9695aa24f808e156c8f4813f685d975ca73c000c2a5056c514c64980f6/greenlet-3.1.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9e8f8c9cb53cdac7ba9793c276acd90168f416b9ce36799b9b885790f8ad6c0a", size = 602413 }, + { url = "https://files.pythonhosted.org/packages/76/70/ad6e5b31ef330f03b12559d19fda2606a522d3849cde46b24f223d6d1619/greenlet-3.1.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:62ee94988d6b4722ce0028644418d93a52429e977d742ca2ccbe1c4f4a792511", size = 1129619 }, + { url = "https://files.pythonhosted.org/packages/f4/fb/201e1b932e584066e0f0658b538e73c459b34d44b4bd4034f682423bc801/greenlet-3.1.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:1776fd7f989fc6b8d8c8cb8da1f6b82c5814957264d1f6cf818d475ec2bf6395", size = 1155198 }, + { url = "https://files.pythonhosted.org/packages/12/da/b9ed5e310bb8b89661b80cbcd4db5a067903bbcd7fc854923f5ebb4144f0/greenlet-3.1.1-cp311-cp311-win_amd64.whl", hash = "sha256:48ca08c771c268a768087b408658e216133aecd835c0ded47ce955381105ba39", size = 298930 }, + { url = "https://files.pythonhosted.org/packages/7d/ec/bad1ac26764d26aa1353216fcbfa4670050f66d445448aafa227f8b16e80/greenlet-3.1.1-cp312-cp312-macosx_11_0_universal2.whl", hash = "sha256:4afe7ea89de619adc868e087b4d2359282058479d7cfb94970adf4b55284574d", size = 274260 }, + { url = "https://files.pythonhosted.org/packages/66/d4/c8c04958870f482459ab5956c2942c4ec35cac7fe245527f1039837c17a9/greenlet-3.1.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f406b22b7c9a9b4f8aa9d2ab13d6ae0ac3e85c9a809bd590ad53fed2bf70dc79", size = 649064 }, + { url = "https://files.pythonhosted.org/packages/51/41/467b12a8c7c1303d20abcca145db2be4e6cd50a951fa30af48b6ec607581/greenlet-3.1.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c3a701fe5a9695b238503ce5bbe8218e03c3bcccf7e204e455e7462d770268aa", size = 663420 }, + { url = "https://files.pythonhosted.org/packages/27/8f/2a93cd9b1e7107d5c7b3b7816eeadcac2ebcaf6d6513df9abaf0334777f6/greenlet-3.1.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2846930c65b47d70b9d178e89c7e1a69c95c1f68ea5aa0a58646b7a96df12441", size = 658035 }, + { url = "https://files.pythonhosted.org/packages/57/5c/7c6f50cb12be092e1dccb2599be5a942c3416dbcfb76efcf54b3f8be4d8d/greenlet-3.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:99cfaa2110534e2cf3ba31a7abcac9d328d1d9f1b95beede58294a60348fba36", size = 660105 }, + { url = "https://files.pythonhosted.org/packages/f1/66/033e58a50fd9ec9df00a8671c74f1f3a320564c6415a4ed82a1c651654ba/greenlet-3.1.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1443279c19fca463fc33e65ef2a935a5b09bb90f978beab37729e1c3c6c25fe9", size = 613077 }, + { url = "https://files.pythonhosted.org/packages/19/c5/36384a06f748044d06bdd8776e231fadf92fc896bd12cb1c9f5a1bda9578/greenlet-3.1.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:b7cede291382a78f7bb5f04a529cb18e068dd29e0fb27376074b6d0317bf4dd0", size = 1135975 }, + { url = "https://files.pythonhosted.org/packages/38/f9/c0a0eb61bdf808d23266ecf1d63309f0e1471f284300ce6dac0ae1231881/greenlet-3.1.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:23f20bb60ae298d7d8656c6ec6db134bca379ecefadb0b19ce6f19d1f232a942", size = 1163955 }, + { url = "https://files.pythonhosted.org/packages/43/21/a5d9df1d21514883333fc86584c07c2b49ba7c602e670b174bd73cfc9c7f/greenlet-3.1.1-cp312-cp312-win_amd64.whl", hash = "sha256:7124e16b4c55d417577c2077be379514321916d5790fa287c9ed6f23bd2ffd01", size = 299655 }, + { url = "https://files.pythonhosted.org/packages/f3/57/0db4940cd7bb461365ca8d6fd53e68254c9dbbcc2b452e69d0d41f10a85e/greenlet-3.1.1-cp313-cp313-macosx_11_0_universal2.whl", hash = "sha256:05175c27cb459dcfc05d026c4232f9de8913ed006d42713cb8a5137bd49375f1", size = 272990 }, + { url = "https://files.pythonhosted.org/packages/1c/ec/423d113c9f74e5e402e175b157203e9102feeb7088cee844d735b28ef963/greenlet-3.1.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:935e943ec47c4afab8965954bf49bfa639c05d4ccf9ef6e924188f762145c0ff", size = 649175 }, + { url = "https://files.pythonhosted.org/packages/a9/46/ddbd2db9ff209186b7b7c621d1432e2f21714adc988703dbdd0e65155c77/greenlet-3.1.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:667a9706c970cb552ede35aee17339a18e8f2a87a51fba2ed39ceeeb1004798a", size = 663425 }, + { url = "https://files.pythonhosted.org/packages/bc/f9/9c82d6b2b04aa37e38e74f0c429aece5eeb02bab6e3b98e7db89b23d94c6/greenlet-3.1.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b8a678974d1f3aa55f6cc34dc480169d58f2e6d8958895d68845fa4ab566509e", size = 657736 }, + { url = "https://files.pythonhosted.org/packages/d9/42/b87bc2a81e3a62c3de2b0d550bf91a86939442b7ff85abb94eec3fc0e6aa/greenlet-3.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:efc0f674aa41b92da8c49e0346318c6075d734994c3c4e4430b1c3f853e498e4", size = 660347 }, + { url = "https://files.pythonhosted.org/packages/37/fa/71599c3fd06336cdc3eac52e6871cfebab4d9d70674a9a9e7a482c318e99/greenlet-3.1.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0153404a4bb921f0ff1abeb5ce8a5131da56b953eda6e14b88dc6bbc04d2049e", size = 615583 }, + { url = "https://files.pythonhosted.org/packages/4e/96/e9ef85de031703ee7a4483489b40cf307f93c1824a02e903106f2ea315fe/greenlet-3.1.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:275f72decf9932639c1c6dd1013a1bc266438eb32710016a1c742df5da6e60a1", size = 1133039 }, + { url = "https://files.pythonhosted.org/packages/87/76/b2b6362accd69f2d1889db61a18c94bc743e961e3cab344c2effaa4b4a25/greenlet-3.1.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:c4aab7f6381f38a4b42f269057aee279ab0fc7bf2e929e3d4abfae97b682a12c", size = 1160716 }, + { url = "https://files.pythonhosted.org/packages/1f/1b/54336d876186920e185066d8c3024ad55f21d7cc3683c856127ddb7b13ce/greenlet-3.1.1-cp313-cp313-win_amd64.whl", hash = "sha256:b42703b1cf69f2aa1df7d1030b9d77d3e584a70755674d60e710f0af570f3761", size = 299490 }, + { url = "https://files.pythonhosted.org/packages/5f/17/bea55bf36990e1638a2af5ba10c1640273ef20f627962cf97107f1e5d637/greenlet-3.1.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f1695e76146579f8c06c1509c7ce4dfe0706f49c6831a817ac04eebb2fd02011", size = 643731 }, + { url = "https://files.pythonhosted.org/packages/78/d2/aa3d2157f9ab742a08e0fd8f77d4699f37c22adfbfeb0c610a186b5f75e0/greenlet-3.1.1-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7876452af029456b3f3549b696bb36a06db7c90747740c5302f74a9e9fa14b13", size = 649304 }, + { url = "https://files.pythonhosted.org/packages/f1/8e/d0aeffe69e53ccff5a28fa86f07ad1d2d2d6537a9506229431a2a02e2f15/greenlet-3.1.1-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4ead44c85f8ab905852d3de8d86f6f8baf77109f9da589cb4fa142bd3b57b475", size = 646537 }, + { url = "https://files.pythonhosted.org/packages/05/79/e15408220bbb989469c8871062c97c6c9136770657ba779711b90870d867/greenlet-3.1.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8320f64b777d00dd7ccdade271eaf0cad6636343293a25074cc5566160e4de7b", size = 642506 }, + { url = "https://files.pythonhosted.org/packages/18/87/470e01a940307796f1d25f8167b551a968540fbe0551c0ebb853cb527dd6/greenlet-3.1.1-cp313-cp313t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6510bf84a6b643dabba74d3049ead221257603a253d0a9873f55f6a59a65f822", size = 602753 }, + { url = "https://files.pythonhosted.org/packages/e2/72/576815ba674eddc3c25028238f74d7b8068902b3968cbe456771b166455e/greenlet-3.1.1-cp313-cp313t-musllinux_1_1_aarch64.whl", hash = "sha256:04b013dc07c96f83134b1e99888e7a79979f1a247e2a9f59697fa14b5862ed01", size = 1122731 }, + { url = "https://files.pythonhosted.org/packages/ac/38/08cc303ddddc4b3d7c628c3039a61a3aae36c241ed01393d00c2fd663473/greenlet-3.1.1-cp313-cp313t-musllinux_1_1_x86_64.whl", hash = "sha256:411f015496fec93c1c8cd4e5238da364e1da7a124bcb293f085bf2860c32c6f6", size = 1142112 }, +] + +[[package]] +name = "hypothesis" +version = "6.119.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "attrs" }, + { name = "exceptiongroup", marker = "python_full_version < '3.11'" }, + { name = "sortedcontainers" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a5/6f/98262d753772030d140d8cd04eadebac545ba4945702f4471decc37b8cb5/hypothesis-6.119.3.tar.gz", hash = "sha256:1403676d95bc9f118a30ce2c97fcbdd28dd99f3a1ffe3456970d98a56b370f36", size = 412497 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/67/9d/32e2277a2dbc48b687f4acedbc6421c33a5f03177c8cb0d262d5ffc2ccf3/hypothesis-6.119.3-py3-none-any.whl", hash = "sha256:dff13689c4ceb0d84d92e0309fca3ccc1b547ac30552037c712a9080eb75cd05", size = 473632 }, +] + +[[package]] +name = "hypothesis-jsonschema" +version = "0.23.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "hypothesis" }, + { name = "jsonschema" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/4f/ad/2073dd29d8463a92c243d0c298370e50e0d4082bc67f156dc613634d0ec4/hypothesis-jsonschema-0.23.1.tar.gz", hash = "sha256:f4ac032024342a4149a10253984f5a5736b82b3fe2afb0888f3834a31153f215", size = 42896 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/17/44/635a8d2add845c9a2d99a93a379df77f7e70829f0a1d7d5a6998b61f9d01/hypothesis_jsonschema-0.23.1-py3-none-any.whl", hash = "sha256:a4d74d9516dd2784fbbae82e009f62486c9104ac6f4e3397091d98a1d5ee94a2", size = 29200 }, +] + +[[package]] +name = "json-schema" +version = "0.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/2a/04/855eecfdd379ff774ce86770808c6663ad4fdf14c43ed4e6fd7156aa5cf9/json_schema-0.3.tar.gz", hash = "sha256:a164efbb405f535615e58aff191b55fbfdad61d2ff0e7bfce6acf086358ca4b3", size = 5425 } + +[[package]] +name = "jsonschema" +version = "4.23.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "attrs" }, + { name = "jsonschema-specifications" }, + { name = "referencing" }, + { name = "rpds-py" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/38/2e/03362ee4034a4c917f697890ccd4aec0800ccf9ded7f511971c75451deec/jsonschema-4.23.0.tar.gz", hash = "sha256:d71497fef26351a33265337fa77ffeb82423f3ea21283cd9467bb03999266bc4", size = 325778 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/69/4a/4f9dbeb84e8850557c02365a0eee0649abe5eb1d84af92a25731c6c0f922/jsonschema-4.23.0-py3-none-any.whl", hash = "sha256:fbadb6f8b144a8f8cf9f0b89ba94501d143e50411a1278633f56a7acf7fd5566", size = 88462 }, +] + +[[package]] +name = "jsonschema-specifications" +version = "2024.10.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "referencing" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/10/db/58f950c996c793472e336ff3655b13fbcf1e3b359dcf52dcf3ed3b52c352/jsonschema_specifications-2024.10.1.tar.gz", hash = "sha256:0f38b83639958ce1152d02a7f062902c41c8fd20d558b0c34344292d417ae272", size = 15561 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/0f/8910b19ac0670a0f80ce1008e5e751c4a57e14d2c4c13a482aa6079fa9d6/jsonschema_specifications-2024.10.1-py3-none-any.whl", hash = "sha256:a09a0680616357d9a0ecf05c12ad234479f549239d0f5b55f3deea67475da9bf", size = 18459 }, +] + +[[package]] +name = "kiwisolver" +version = "1.4.7" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/85/4d/2255e1c76304cbd60b48cee302b66d1dde4468dc5b1160e4b7cb43778f2a/kiwisolver-1.4.7.tar.gz", hash = "sha256:9893ff81bd7107f7b685d3017cc6583daadb4fc26e4a888350df530e41980a60", size = 97286 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/97/14/fc943dd65268a96347472b4fbe5dcc2f6f55034516f80576cd0dd3a8930f/kiwisolver-1.4.7-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:8a9c83f75223d5e48b0bc9cb1bf2776cf01563e00ade8775ffe13b0b6e1af3a6", size = 122440 }, + { url = "https://files.pythonhosted.org/packages/1e/46/e68fed66236b69dd02fcdb506218c05ac0e39745d696d22709498896875d/kiwisolver-1.4.7-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:58370b1ffbd35407444d57057b57da5d6549d2d854fa30249771775c63b5fe17", size = 65758 }, + { url = "https://files.pythonhosted.org/packages/ef/fa/65de49c85838681fc9cb05de2a68067a683717321e01ddafb5b8024286f0/kiwisolver-1.4.7-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:aa0abdf853e09aff551db11fce173e2177d00786c688203f52c87ad7fcd91ef9", size = 64311 }, + { url = "https://files.pythonhosted.org/packages/42/9c/cc8d90f6ef550f65443bad5872ffa68f3dee36de4974768628bea7c14979/kiwisolver-1.4.7-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:8d53103597a252fb3ab8b5845af04c7a26d5e7ea8122303dd7a021176a87e8b9", size = 1637109 }, + { url = "https://files.pythonhosted.org/packages/55/91/0a57ce324caf2ff5403edab71c508dd8f648094b18cfbb4c8cc0fde4a6ac/kiwisolver-1.4.7-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:88f17c5ffa8e9462fb79f62746428dd57b46eb931698e42e990ad63103f35e6c", size = 1617814 }, + { url = "https://files.pythonhosted.org/packages/12/5d/c36140313f2510e20207708adf36ae4919416d697ee0236b0ddfb6fd1050/kiwisolver-1.4.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:88a9ca9c710d598fd75ee5de59d5bda2684d9db36a9f50b6125eaea3969c2599", size = 1400881 }, + { url = "https://files.pythonhosted.org/packages/56/d0/786e524f9ed648324a466ca8df86298780ef2b29c25313d9a4f16992d3cf/kiwisolver-1.4.7-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f4d742cb7af1c28303a51b7a27aaee540e71bb8e24f68c736f6f2ffc82f2bf05", size = 1512972 }, + { url = "https://files.pythonhosted.org/packages/67/5a/77851f2f201e6141d63c10a0708e996a1363efaf9e1609ad0441b343763b/kiwisolver-1.4.7-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e28c7fea2196bf4c2f8d46a0415c77a1c480cc0724722f23d7410ffe9842c407", size = 1444787 }, + { url = "https://files.pythonhosted.org/packages/06/5f/1f5eaab84355885e224a6fc8d73089e8713dc7e91c121f00b9a1c58a2195/kiwisolver-1.4.7-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:e968b84db54f9d42046cf154e02911e39c0435c9801681e3fc9ce8a3c4130278", size = 2199212 }, + { url = "https://files.pythonhosted.org/packages/b5/28/9152a3bfe976a0ae21d445415defc9d1cd8614b2910b7614b30b27a47270/kiwisolver-1.4.7-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:0c18ec74c0472de033e1bebb2911c3c310eef5649133dd0bedf2a169a1b269e5", size = 2346399 }, + { url = "https://files.pythonhosted.org/packages/26/f6/453d1904c52ac3b400f4d5e240ac5fec25263716723e44be65f4d7149d13/kiwisolver-1.4.7-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:8f0ea6da6d393d8b2e187e6a5e3fb81f5862010a40c3945e2c6d12ae45cfb2ad", size = 2308688 }, + { url = "https://files.pythonhosted.org/packages/5a/9a/d4968499441b9ae187e81745e3277a8b4d7c60840a52dc9d535a7909fac3/kiwisolver-1.4.7-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:f106407dda69ae456dd1227966bf445b157ccc80ba0dff3802bb63f30b74e895", size = 2445493 }, + { url = "https://files.pythonhosted.org/packages/07/c9/032267192e7828520dacb64dfdb1d74f292765f179e467c1cba97687f17d/kiwisolver-1.4.7-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:84ec80df401cfee1457063732d90022f93951944b5b58975d34ab56bb150dfb3", size = 2262191 }, + { url = "https://files.pythonhosted.org/packages/6c/ad/db0aedb638a58b2951da46ddaeecf204be8b4f5454df020d850c7fa8dca8/kiwisolver-1.4.7-cp310-cp310-win32.whl", hash = "sha256:71bb308552200fb2c195e35ef05de12f0c878c07fc91c270eb3d6e41698c3bcc", size = 46644 }, + { url = "https://files.pythonhosted.org/packages/12/ca/d0f7b7ffbb0be1e7c2258b53554efec1fd652921f10d7d85045aff93ab61/kiwisolver-1.4.7-cp310-cp310-win_amd64.whl", hash = "sha256:44756f9fd339de0fb6ee4f8c1696cfd19b2422e0d70b4cefc1cc7f1f64045a8c", size = 55877 }, + { url = "https://files.pythonhosted.org/packages/97/6c/cfcc128672f47a3e3c0d918ecb67830600078b025bfc32d858f2e2d5c6a4/kiwisolver-1.4.7-cp310-cp310-win_arm64.whl", hash = "sha256:78a42513018c41c2ffd262eb676442315cbfe3c44eed82385c2ed043bc63210a", size = 48347 }, + { url = "https://files.pythonhosted.org/packages/e9/44/77429fa0a58f941d6e1c58da9efe08597d2e86bf2b2cce6626834f49d07b/kiwisolver-1.4.7-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:d2b0e12a42fb4e72d509fc994713d099cbb15ebf1103545e8a45f14da2dfca54", size = 122442 }, + { url = "https://files.pythonhosted.org/packages/e5/20/8c75caed8f2462d63c7fd65e16c832b8f76cda331ac9e615e914ee80bac9/kiwisolver-1.4.7-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:2a8781ac3edc42ea4b90bc23e7d37b665d89423818e26eb6df90698aa2287c95", size = 65762 }, + { url = "https://files.pythonhosted.org/packages/f4/98/fe010f15dc7230f45bc4cf367b012d651367fd203caaa992fd1f5963560e/kiwisolver-1.4.7-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:46707a10836894b559e04b0fd143e343945c97fd170d69a2d26d640b4e297935", size = 64319 }, + { url = "https://files.pythonhosted.org/packages/8b/1b/b5d618f4e58c0675654c1e5051bcf42c776703edb21c02b8c74135541f60/kiwisolver-1.4.7-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ef97b8df011141c9b0f6caf23b29379f87dd13183c978a30a3c546d2c47314cb", size = 1334260 }, + { url = "https://files.pythonhosted.org/packages/b8/01/946852b13057a162a8c32c4c8d2e9ed79f0bb5d86569a40c0b5fb103e373/kiwisolver-1.4.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3ab58c12a2cd0fc769089e6d38466c46d7f76aced0a1f54c77652446733d2d02", size = 1426589 }, + { url = "https://files.pythonhosted.org/packages/70/d1/c9f96df26b459e15cf8a965304e6e6f4eb291e0f7a9460b4ad97b047561e/kiwisolver-1.4.7-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:803b8e1459341c1bb56d1c5c010406d5edec8a0713a0945851290a7930679b51", size = 1541080 }, + { url = "https://files.pythonhosted.org/packages/d3/73/2686990eb8b02d05f3de759d6a23a4ee7d491e659007dd4c075fede4b5d0/kiwisolver-1.4.7-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f9a9e8a507420fe35992ee9ecb302dab68550dedc0da9e2880dd88071c5fb052", size = 1470049 }, + { url = "https://files.pythonhosted.org/packages/a7/4b/2db7af3ed3af7c35f388d5f53c28e155cd402a55432d800c543dc6deb731/kiwisolver-1.4.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:18077b53dc3bb490e330669a99920c5e6a496889ae8c63b58fbc57c3d7f33a18", size = 1426376 }, + { url = "https://files.pythonhosted.org/packages/05/83/2857317d04ea46dc5d115f0df7e676997bbd968ced8e2bd6f7f19cfc8d7f/kiwisolver-1.4.7-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:6af936f79086a89b3680a280c47ea90b4df7047b5bdf3aa5c524bbedddb9e545", size = 2222231 }, + { url = "https://files.pythonhosted.org/packages/0d/b5/866f86f5897cd4ab6d25d22e403404766a123f138bd6a02ecb2cdde52c18/kiwisolver-1.4.7-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:3abc5b19d24af4b77d1598a585b8a719beb8569a71568b66f4ebe1fb0449460b", size = 2368634 }, + { url = "https://files.pythonhosted.org/packages/c1/ee/73de8385403faba55f782a41260210528fe3273d0cddcf6d51648202d6d0/kiwisolver-1.4.7-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:933d4de052939d90afbe6e9d5273ae05fb836cc86c15b686edd4b3560cc0ee36", size = 2329024 }, + { url = "https://files.pythonhosted.org/packages/a1/e7/cd101d8cd2cdfaa42dc06c433df17c8303d31129c9fdd16c0ea37672af91/kiwisolver-1.4.7-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:65e720d2ab2b53f1f72fb5da5fb477455905ce2c88aaa671ff0a447c2c80e8e3", size = 2468484 }, + { url = "https://files.pythonhosted.org/packages/e1/72/84f09d45a10bc57a40bb58b81b99d8f22b58b2040c912b7eb97ebf625bf2/kiwisolver-1.4.7-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:3bf1ed55088f214ba6427484c59553123fdd9b218a42bbc8c6496d6754b1e523", size = 2284078 }, + { url = "https://files.pythonhosted.org/packages/d2/d4/71828f32b956612dc36efd7be1788980cb1e66bfb3706e6dec9acad9b4f9/kiwisolver-1.4.7-cp311-cp311-win32.whl", hash = "sha256:4c00336b9dd5ad96d0a558fd18a8b6f711b7449acce4c157e7343ba92dd0cf3d", size = 46645 }, + { url = "https://files.pythonhosted.org/packages/a1/65/d43e9a20aabcf2e798ad1aff6c143ae3a42cf506754bcb6a7ed8259c8425/kiwisolver-1.4.7-cp311-cp311-win_amd64.whl", hash = "sha256:929e294c1ac1e9f615c62a4e4313ca1823ba37326c164ec720a803287c4c499b", size = 56022 }, + { url = "https://files.pythonhosted.org/packages/35/b3/9f75a2e06f1b4ca00b2b192bc2b739334127d27f1d0625627ff8479302ba/kiwisolver-1.4.7-cp311-cp311-win_arm64.whl", hash = "sha256:e33e8fbd440c917106b237ef1a2f1449dfbb9b6f6e1ce17c94cd6a1e0d438376", size = 48536 }, + { url = "https://files.pythonhosted.org/packages/97/9c/0a11c714cf8b6ef91001c8212c4ef207f772dd84540104952c45c1f0a249/kiwisolver-1.4.7-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:5360cc32706dab3931f738d3079652d20982511f7c0ac5711483e6eab08efff2", size = 121808 }, + { url = "https://files.pythonhosted.org/packages/f2/d8/0fe8c5f5d35878ddd135f44f2af0e4e1d379e1c7b0716f97cdcb88d4fd27/kiwisolver-1.4.7-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:942216596dc64ddb25adb215c3c783215b23626f8d84e8eff8d6d45c3f29f75a", size = 65531 }, + { url = "https://files.pythonhosted.org/packages/80/c5/57fa58276dfdfa612241d640a64ca2f76adc6ffcebdbd135b4ef60095098/kiwisolver-1.4.7-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:48b571ecd8bae15702e4f22d3ff6a0f13e54d3d00cd25216d5e7f658242065ee", size = 63894 }, + { url = "https://files.pythonhosted.org/packages/8b/e9/26d3edd4c4ad1c5b891d8747a4f81b1b0aba9fb9721de6600a4adc09773b/kiwisolver-1.4.7-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ad42ba922c67c5f219097b28fae965e10045ddf145d2928bfac2eb2e17673640", size = 1369296 }, + { url = "https://files.pythonhosted.org/packages/b6/67/3f4850b5e6cffb75ec40577ddf54f7b82b15269cc5097ff2e968ee32ea7d/kiwisolver-1.4.7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:612a10bdae23404a72941a0fc8fa2660c6ea1217c4ce0dbcab8a8f6543ea9e7f", size = 1461450 }, + { url = "https://files.pythonhosted.org/packages/52/be/86cbb9c9a315e98a8dc6b1d23c43cffd91d97d49318854f9c37b0e41cd68/kiwisolver-1.4.7-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9e838bba3a3bac0fe06d849d29772eb1afb9745a59710762e4ba3f4cb8424483", size = 1579168 }, + { url = "https://files.pythonhosted.org/packages/0f/00/65061acf64bd5fd34c1f4ae53f20b43b0a017a541f242a60b135b9d1e301/kiwisolver-1.4.7-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:22f499f6157236c19f4bbbd472fa55b063db77a16cd74d49afe28992dff8c258", size = 1507308 }, + { url = "https://files.pythonhosted.org/packages/21/e4/c0b6746fd2eb62fe702118b3ca0cb384ce95e1261cfada58ff693aeec08a/kiwisolver-1.4.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:693902d433cf585133699972b6d7c42a8b9f8f826ebcaf0132ff55200afc599e", size = 1464186 }, + { url = "https://files.pythonhosted.org/packages/0a/0f/529d0a9fffb4d514f2782c829b0b4b371f7f441d61aa55f1de1c614c4ef3/kiwisolver-1.4.7-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:4e77f2126c3e0b0d055f44513ed349038ac180371ed9b52fe96a32aa071a5107", size = 2247877 }, + { url = "https://files.pythonhosted.org/packages/d1/e1/66603ad779258843036d45adcbe1af0d1a889a07af4635f8b4ec7dccda35/kiwisolver-1.4.7-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:657a05857bda581c3656bfc3b20e353c232e9193eb167766ad2dc58b56504948", size = 2404204 }, + { url = "https://files.pythonhosted.org/packages/8d/61/de5fb1ca7ad1f9ab7970e340a5b833d735df24689047de6ae71ab9d8d0e7/kiwisolver-1.4.7-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:4bfa75a048c056a411f9705856abfc872558e33c055d80af6a380e3658766038", size = 2352461 }, + { url = "https://files.pythonhosted.org/packages/ba/d2/0edc00a852e369827f7e05fd008275f550353f1f9bcd55db9363d779fc63/kiwisolver-1.4.7-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:34ea1de54beef1c104422d210c47c7d2a4999bdecf42c7b5718fbe59a4cac383", size = 2501358 }, + { url = "https://files.pythonhosted.org/packages/84/15/adc15a483506aec6986c01fb7f237c3aec4d9ed4ac10b756e98a76835933/kiwisolver-1.4.7-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:90da3b5f694b85231cf93586dad5e90e2d71b9428f9aad96952c99055582f520", size = 2314119 }, + { url = "https://files.pythonhosted.org/packages/36/08/3a5bb2c53c89660863a5aa1ee236912269f2af8762af04a2e11df851d7b2/kiwisolver-1.4.7-cp312-cp312-win32.whl", hash = "sha256:18e0cca3e008e17fe9b164b55735a325140a5a35faad8de92dd80265cd5eb80b", size = 46367 }, + { url = "https://files.pythonhosted.org/packages/19/93/c05f0a6d825c643779fc3c70876bff1ac221f0e31e6f701f0e9578690d70/kiwisolver-1.4.7-cp312-cp312-win_amd64.whl", hash = "sha256:58cb20602b18f86f83a5c87d3ee1c766a79c0d452f8def86d925e6c60fbf7bfb", size = 55884 }, + { url = "https://files.pythonhosted.org/packages/d2/f9/3828d8f21b6de4279f0667fb50a9f5215e6fe57d5ec0d61905914f5b6099/kiwisolver-1.4.7-cp312-cp312-win_arm64.whl", hash = "sha256:f5a8b53bdc0b3961f8b6125e198617c40aeed638b387913bf1ce78afb1b0be2a", size = 48528 }, + { url = "https://files.pythonhosted.org/packages/c4/06/7da99b04259b0f18b557a4effd1b9c901a747f7fdd84cf834ccf520cb0b2/kiwisolver-1.4.7-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:2e6039dcbe79a8e0f044f1c39db1986a1b8071051efba3ee4d74f5b365f5226e", size = 121913 }, + { url = "https://files.pythonhosted.org/packages/97/f5/b8a370d1aa593c17882af0a6f6755aaecd643640c0ed72dcfd2eafc388b9/kiwisolver-1.4.7-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:a1ecf0ac1c518487d9d23b1cd7139a6a65bc460cd101ab01f1be82ecf09794b6", size = 65627 }, + { url = "https://files.pythonhosted.org/packages/2a/fc/6c0374f7503522539e2d4d1b497f5ebad3f8ed07ab51aed2af988dd0fb65/kiwisolver-1.4.7-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:7ab9ccab2b5bd5702ab0803676a580fffa2aa178c2badc5557a84cc943fcf750", size = 63888 }, + { url = "https://files.pythonhosted.org/packages/bf/3e/0b7172793d0f41cae5c923492da89a2ffcd1adf764c16159ca047463ebd3/kiwisolver-1.4.7-cp313-cp313-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f816dd2277f8d63d79f9c8473a79fe54047bc0467754962840782c575522224d", size = 1369145 }, + { url = "https://files.pythonhosted.org/packages/77/92/47d050d6f6aced2d634258123f2688fbfef8ded3c5baf2c79d94d91f1f58/kiwisolver-1.4.7-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cf8bcc23ceb5a1b624572a1623b9f79d2c3b337c8c455405ef231933a10da379", size = 1461448 }, + { url = "https://files.pythonhosted.org/packages/9c/1b/8f80b18e20b3b294546a1adb41701e79ae21915f4175f311a90d042301cf/kiwisolver-1.4.7-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:dea0bf229319828467d7fca8c7c189780aa9ff679c94539eed7532ebe33ed37c", size = 1578750 }, + { url = "https://files.pythonhosted.org/packages/a4/fe/fe8e72f3be0a844f257cadd72689c0848c6d5c51bc1d60429e2d14ad776e/kiwisolver-1.4.7-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7c06a4c7cf15ec739ce0e5971b26c93638730090add60e183530d70848ebdd34", size = 1507175 }, + { url = "https://files.pythonhosted.org/packages/39/fa/cdc0b6105d90eadc3bee525fecc9179e2b41e1ce0293caaf49cb631a6aaf/kiwisolver-1.4.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:913983ad2deb14e66d83c28b632fd35ba2b825031f2fa4ca29675e665dfecbe1", size = 1463963 }, + { url = "https://files.pythonhosted.org/packages/6e/5c/0c03c4e542720c6177d4f408e56d1c8315899db72d46261a4e15b8b33a41/kiwisolver-1.4.7-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5337ec7809bcd0f424c6b705ecf97941c46279cf5ed92311782c7c9c2026f07f", size = 2248220 }, + { url = "https://files.pythonhosted.org/packages/3d/ee/55ef86d5a574f4e767df7da3a3a7ff4954c996e12d4fbe9c408170cd7dcc/kiwisolver-1.4.7-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:4c26ed10c4f6fa6ddb329a5120ba3b6db349ca192ae211e882970bfc9d91420b", size = 2404463 }, + { url = "https://files.pythonhosted.org/packages/0f/6d/73ad36170b4bff4825dc588acf4f3e6319cb97cd1fb3eb04d9faa6b6f212/kiwisolver-1.4.7-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:c619b101e6de2222c1fcb0531e1b17bbffbe54294bfba43ea0d411d428618c27", size = 2352842 }, + { url = "https://files.pythonhosted.org/packages/0b/16/fa531ff9199d3b6473bb4d0f47416cdb08d556c03b8bc1cccf04e756b56d/kiwisolver-1.4.7-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:073a36c8273647592ea332e816e75ef8da5c303236ec0167196793eb1e34657a", size = 2501635 }, + { url = "https://files.pythonhosted.org/packages/78/7e/aa9422e78419db0cbe75fb86d8e72b433818f2e62e2e394992d23d23a583/kiwisolver-1.4.7-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:3ce6b2b0231bda412463e152fc18335ba32faf4e8c23a754ad50ffa70e4091ee", size = 2314556 }, + { url = "https://files.pythonhosted.org/packages/a8/b2/15f7f556df0a6e5b3772a1e076a9d9f6c538ce5f05bd590eca8106508e06/kiwisolver-1.4.7-cp313-cp313-win32.whl", hash = "sha256:f4c9aee212bc89d4e13f58be11a56cc8036cabad119259d12ace14b34476fd07", size = 46364 }, + { url = "https://files.pythonhosted.org/packages/0b/db/32e897e43a330eee8e4770bfd2737a9584b23e33587a0812b8e20aac38f7/kiwisolver-1.4.7-cp313-cp313-win_amd64.whl", hash = "sha256:8a3ec5aa8e38fc4c8af308917ce12c536f1c88452ce554027e55b22cbbfbff76", size = 55887 }, + { url = "https://files.pythonhosted.org/packages/c8/a4/df2bdca5270ca85fd25253049eb6708d4127be2ed0e5c2650217450b59e9/kiwisolver-1.4.7-cp313-cp313-win_arm64.whl", hash = "sha256:76c8094ac20ec259471ac53e774623eb62e6e1f56cd8690c67ce6ce4fcb05650", size = 48530 }, + { url = "https://files.pythonhosted.org/packages/ac/59/741b79775d67ab67ced9bb38552da688c0305c16e7ee24bba7a2be253fb7/kiwisolver-1.4.7-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:94252291e3fe68001b1dd747b4c0b3be12582839b95ad4d1b641924d68fd4643", size = 59491 }, + { url = "https://files.pythonhosted.org/packages/58/cc/fb239294c29a5656e99e3527f7369b174dd9cc7c3ef2dea7cb3c54a8737b/kiwisolver-1.4.7-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:5b7dfa3b546da08a9f622bb6becdb14b3e24aaa30adba66749d38f3cc7ea9706", size = 57648 }, + { url = "https://files.pythonhosted.org/packages/3b/ef/2f009ac1f7aab9f81efb2d837301d255279d618d27b6015780115ac64bdd/kiwisolver-1.4.7-pp310-pypy310_pp73-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bd3de6481f4ed8b734da5df134cd5a6a64fe32124fe83dde1e5b5f29fe30b1e6", size = 84257 }, + { url = "https://files.pythonhosted.org/packages/81/e1/c64f50987f85b68b1c52b464bb5bf73e71570c0f7782d626d1eb283ad620/kiwisolver-1.4.7-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a91b5f9f1205845d488c928e8570dcb62b893372f63b8b6e98b863ebd2368ff2", size = 80906 }, + { url = "https://files.pythonhosted.org/packages/fd/71/1687c5c0a0be2cee39a5c9c389e546f9c6e215e46b691d00d9f646892083/kiwisolver-1.4.7-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:40fa14dbd66b8b8f470d5fc79c089a66185619d31645f9b0773b88b19f7223c4", size = 79951 }, + { url = "https://files.pythonhosted.org/packages/ea/8b/d7497df4a1cae9367adf21665dd1f896c2a7aeb8769ad77b662c5e2bcce7/kiwisolver-1.4.7-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:eb542fe7933aa09d8d8f9d9097ef37532a7df6497819d16efe4359890a2f417a", size = 55715 }, +] + +[[package]] +name = "matplotlib" +version = "3.9.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "contourpy" }, + { name = "cycler" }, + { name = "fonttools" }, + { name = "kiwisolver" }, + { name = "numpy" }, + { name = "packaging" }, + { name = "pillow" }, + { name = "pyparsing" }, + { name = "python-dateutil" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9e/d8/3d7f706c69e024d4287c1110d74f7dabac91d9843b99eadc90de9efc8869/matplotlib-3.9.2.tar.gz", hash = "sha256:96ab43906269ca64a6366934106fa01534454a69e471b7bf3d79083981aaab92", size = 36088381 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6a/9d/84eeb82ecdd3ba71b12dd6ab5c820c5cc1e868003ecb3717d41b589ec02a/matplotlib-3.9.2-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:9d78bbc0cbc891ad55b4f39a48c22182e9bdaea7fc0e5dbd364f49f729ca1bbb", size = 7893310 }, + { url = "https://files.pythonhosted.org/packages/36/98/cbacbd30241369d099f9c13a2b6bc3b7068d85214f5b5795e583ac3d8aba/matplotlib-3.9.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c375cc72229614632c87355366bdf2570c2dac01ac66b8ad048d2dabadf2d0d4", size = 7764089 }, + { url = "https://files.pythonhosted.org/packages/a8/a0/917f3c6d3a8774a3a1502d9f3dfc1456e07c1fa0c211a23b75a69e154180/matplotlib-3.9.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1d94ff717eb2bd0b58fe66380bd8b14ac35f48a98e7c6765117fe67fb7684e64", size = 8192377 }, + { url = "https://files.pythonhosted.org/packages/8d/9d/d06860390f9d154fa884f1740a5456378fb153ff57443c91a4a32bab7092/matplotlib-3.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ab68d50c06938ef28681073327795c5db99bb4666214d2d5f880ed11aeaded66", size = 8303983 }, + { url = "https://files.pythonhosted.org/packages/9e/a7/c0e848ed7de0766c605af62d8097472a37f1a81d93e9afe94faa5890f24d/matplotlib-3.9.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:65aacf95b62272d568044531e41de26285d54aec8cb859031f511f84bd8b495a", size = 9083318 }, + { url = "https://files.pythonhosted.org/packages/09/6c/0fa50c001340a45cde44853c116d6551aea741e59a7261c38f473b53553b/matplotlib-3.9.2-cp310-cp310-win_amd64.whl", hash = "sha256:3fd595f34aa8a55b7fc8bf9ebea8aa665a84c82d275190a61118d33fbc82ccae", size = 7819628 }, + { url = "https://files.pythonhosted.org/packages/77/c2/f9d7fe80a8fcce9bb128d1381c6fe41a8d286d7e18395e273002e8e0fa34/matplotlib-3.9.2-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:d8dd059447824eec055e829258ab092b56bb0579fc3164fa09c64f3acd478772", size = 7902925 }, + { url = "https://files.pythonhosted.org/packages/28/ba/8be09886eb56ac04a218a1dc3fa728a5c4cac60b019b4f1687885166da00/matplotlib-3.9.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:c797dac8bb9c7a3fd3382b16fe8f215b4cf0f22adccea36f1545a6d7be310b41", size = 7773193 }, + { url = "https://files.pythonhosted.org/packages/e6/9a/5991972a560db3ab621312a7ca5efec339ae2122f25901c0846865c4b72f/matplotlib-3.9.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d719465db13267bcef19ea8954a971db03b9f48b4647e3860e4bc8e6ed86610f", size = 8202378 }, + { url = "https://files.pythonhosted.org/packages/01/75/6c7ce560e95714a10fcbb3367d1304975a1a3e620f72af28921b796403f3/matplotlib-3.9.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8912ef7c2362f7193b5819d17dae8629b34a95c58603d781329712ada83f9447", size = 8314361 }, + { url = "https://files.pythonhosted.org/packages/6e/49/dc7384c6c092958e0b75e754efbd9e52500154939c3d715789cee9fb8a53/matplotlib-3.9.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:7741f26a58a240f43bee74965c4882b6c93df3e7eb3de160126d8c8f53a6ae6e", size = 9091428 }, + { url = "https://files.pythonhosted.org/packages/8b/ce/15b0bb2fb29b3d46211d8ca740b96b5232499fc49200b58b8d571292c9a6/matplotlib-3.9.2-cp311-cp311-win_amd64.whl", hash = "sha256:ae82a14dab96fbfad7965403c643cafe6515e386de723e498cf3eeb1e0b70cc7", size = 7829377 }, + { url = "https://files.pythonhosted.org/packages/82/de/54f7f38ce6de79cb77d513bb3eaa4e0b1031e9fd6022214f47943fa53a88/matplotlib-3.9.2-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:ac43031375a65c3196bee99f6001e7fa5bdfb00ddf43379d3c0609bdca042df9", size = 7892511 }, + { url = "https://files.pythonhosted.org/packages/35/3e/5713b84a02b24b2a4bd4d6673bfc03017e6654e1d8793ece783b7ed4d484/matplotlib-3.9.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:be0fc24a5e4531ae4d8e858a1a548c1fe33b176bb13eff7f9d0d38ce5112a27d", size = 7769370 }, + { url = "https://files.pythonhosted.org/packages/5b/bd/c404502aa1824456d2862dd6b9b0c1917761a51a32f7f83ff8cf94b6d117/matplotlib-3.9.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bf81de2926c2db243c9b2cbc3917619a0fc85796c6ba4e58f541df814bbf83c7", size = 8193260 }, + { url = "https://files.pythonhosted.org/packages/27/75/de5b9cd67648051cae40039da0c8cbc497a0d99acb1a1f3d087cd66d27b7/matplotlib-3.9.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f6ee45bc4245533111ced13f1f2cace1e7f89d1c793390392a80c139d6cf0e6c", size = 8306310 }, + { url = "https://files.pythonhosted.org/packages/de/e3/2976e4e54d7ee76eaf54b7639fdc10a223d05c2bdded7045233e9871e469/matplotlib-3.9.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:306c8dfc73239f0e72ac50e5a9cf19cc4e8e331dd0c54f5e69ca8758550f1e1e", size = 9086717 }, + { url = "https://files.pythonhosted.org/packages/d2/92/c2b9464a0562feb6ae780bdc152364810862e07ef5e6affa2b7686028db2/matplotlib-3.9.2-cp312-cp312-win_amd64.whl", hash = "sha256:5413401594cfaff0052f9d8b1aafc6d305b4bd7c4331dccd18f561ff7e1d3bd3", size = 7832805 }, + { url = "https://files.pythonhosted.org/packages/5c/7f/8932eac316b32f464b8f9069f151294dcd892c8fbde61fe8bcd7ba7f7f7e/matplotlib-3.9.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:18128cc08f0d3cfff10b76baa2f296fc28c4607368a8402de61bb3f2eb33c7d9", size = 7893012 }, + { url = "https://files.pythonhosted.org/packages/90/89/9db9db3dd0ff3e2c49e452236dfe29e60b5586a88f8928ca1d153d0da8b5/matplotlib-3.9.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:4876d7d40219e8ae8bb70f9263bcbe5714415acfdf781086601211335e24f8aa", size = 7769810 }, + { url = "https://files.pythonhosted.org/packages/67/26/d2661cdc2e1410b8929c5f12dfd521e4528abfed1b3c3d5a28ac48258b43/matplotlib-3.9.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6d9f07a80deab4bb0b82858a9e9ad53d1382fd122be8cde11080f4e7dfedb38b", size = 8193779 }, + { url = "https://files.pythonhosted.org/packages/95/70/4839eaa672bf4eacc98ebc8d23633e02b6daf39e294e7433c4ab11a689be/matplotlib-3.9.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f7c0410f181a531ec4e93bbc27692f2c71a15c2da16766f5ba9761e7ae518413", size = 8306260 }, + { url = "https://files.pythonhosted.org/packages/88/62/7b263b2cb2724b45d3a4f9c8c6137696cc3ef037d44383fb01ac2a9555c2/matplotlib-3.9.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:909645cce2dc28b735674ce0931a4ac94e12f5b13f6bb0b5a5e65e7cea2c192b", size = 9086073 }, + { url = "https://files.pythonhosted.org/packages/b0/6d/3572fe243c74112fef120f0bc86f5edd21f49b60e8322fc7f6a01fe945dd/matplotlib-3.9.2-cp313-cp313-win_amd64.whl", hash = "sha256:f32c7410c7f246838a77d6d1eff0c0f87f3cb0e7c4247aebea71a6d5a68cab49", size = 7833041 }, + { url = "https://files.pythonhosted.org/packages/03/8f/9d505be3eb2f40ec731674fb6b47d10cc3147bbd6a9ea7a08c8da55415c6/matplotlib-3.9.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:37e51dd1c2db16ede9cfd7b5cabdfc818b2c6397c83f8b10e0e797501c963a03", size = 7933657 }, + { url = "https://files.pythonhosted.org/packages/5d/68/44b458b9794bcff2a66921f8c9a8110a50a0bb099bd5f7cabb428a1dc765/matplotlib-3.9.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:b82c5045cebcecd8496a4d694d43f9cc84aeeb49fe2133e036b207abe73f4d30", size = 7799276 }, + { url = "https://files.pythonhosted.org/packages/47/79/8486d4ddcaaf676314b5fb58e8fe19d1a6210a443a7c31fa72d4215fcb87/matplotlib-3.9.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f053c40f94bc51bc03832a41b4f153d83f2062d88c72b5e79997072594e97e51", size = 8221027 }, + { url = "https://files.pythonhosted.org/packages/56/62/72a472181578c3d035dcda0d0fa2e259ba2c4cb91132588a348bb705b70d/matplotlib-3.9.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dbe196377a8248972f5cede786d4c5508ed5f5ca4a1e09b44bda889958b33f8c", size = 8329097 }, + { url = "https://files.pythonhosted.org/packages/01/8a/760f7fce66b39f447ad160800619d0bd5d0936d2b4633587116534a4afe0/matplotlib-3.9.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:5816b1e1fe8c192cbc013f8f3e3368ac56fbecf02fb41b8f8559303f24c5015e", size = 9093770 }, +] + +[[package]] +name = "numpy" +version = "2.1.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/25/ca/1166b75c21abd1da445b97bf1fa2f14f423c6cfb4fc7c4ef31dccf9f6a94/numpy-2.1.3.tar.gz", hash = "sha256:aa08e04e08aaf974d4458def539dece0d28146d866a39da5639596f4921fd761", size = 20166090 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f1/80/d572a4737626372915bca41c3afbfec9d173561a39a0a61bacbbfd1dafd4/numpy-2.1.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c894b4305373b9c5576d7a12b473702afdf48ce5369c074ba304cc5ad8730dff", size = 21152472 }, + { url = "https://files.pythonhosted.org/packages/6f/bb/7bfba10c791ae3bb6716da77ad85a82d5fac07fc96fb0023ef0571df9d20/numpy-2.1.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b47fbb433d3260adcd51eb54f92a2ffbc90a4595f8970ee00e064c644ac788f5", size = 13747967 }, + { url = "https://files.pythonhosted.org/packages/da/d6/2df7bde35f0478455f0be5934877b3e5a505f587b00230f54a519a6b55a5/numpy-2.1.3-cp310-cp310-macosx_14_0_arm64.whl", hash = "sha256:825656d0743699c529c5943554d223c021ff0494ff1442152ce887ef4f7561a1", size = 5354921 }, + { url = "https://files.pythonhosted.org/packages/d1/bb/75b945874f931494891eac6ca06a1764d0e8208791f3addadb2963b83527/numpy-2.1.3-cp310-cp310-macosx_14_0_x86_64.whl", hash = "sha256:6a4825252fcc430a182ac4dee5a505053d262c807f8a924603d411f6718b88fd", size = 6888603 }, + { url = "https://files.pythonhosted.org/packages/68/a7/fde73636f6498dbfa6d82fc336164635fe592f1ad0d13285fcb6267fdc1c/numpy-2.1.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e711e02f49e176a01d0349d82cb5f05ba4db7d5e7e0defd026328e5cfb3226d3", size = 13889862 }, + { url = "https://files.pythonhosted.org/packages/05/db/5d9c91b2e1e2e72be1369278f696356d44975befcae830daf2e667dcb54f/numpy-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:78574ac2d1a4a02421f25da9559850d59457bac82f2b8d7a44fe83a64f770098", size = 16328151 }, + { url = "https://files.pythonhosted.org/packages/3e/6a/7eb732109b53ae64a29e25d7e68eb9d6611037f6354875497008a49e74d3/numpy-2.1.3-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:c7662f0e3673fe4e832fe07b65c50342ea27d989f92c80355658c7f888fcc83c", size = 16704107 }, + { url = "https://files.pythonhosted.org/packages/88/cc/278113b66a1141053cbda6f80e4200c6da06b3079c2d27bda1fde41f2c1f/numpy-2.1.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:fa2d1337dc61c8dc417fbccf20f6d1e139896a30721b7f1e832b2bb6ef4eb6c4", size = 14385789 }, + { url = "https://files.pythonhosted.org/packages/f5/69/eb20f5e1bfa07449bc67574d2f0f7c1e6b335fb41672e43861a7727d85f2/numpy-2.1.3-cp310-cp310-win32.whl", hash = "sha256:72dcc4a35a8515d83e76b58fdf8113a5c969ccd505c8a946759b24e3182d1f23", size = 6536706 }, + { url = "https://files.pythonhosted.org/packages/8e/8b/1c131ab5a94c1086c289c6e1da1d843de9dbd95fe5f5ee6e61904c9518e2/numpy-2.1.3-cp310-cp310-win_amd64.whl", hash = "sha256:ecc76a9ba2911d8d37ac01de72834d8849e55473457558e12995f4cd53e778e0", size = 12864165 }, + { url = "https://files.pythonhosted.org/packages/ad/81/c8167192eba5247593cd9d305ac236847c2912ff39e11402e72ae28a4985/numpy-2.1.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:4d1167c53b93f1f5d8a139a742b3c6f4d429b54e74e6b57d0eff40045187b15d", size = 21156252 }, + { url = "https://files.pythonhosted.org/packages/da/74/5a60003fc3d8a718d830b08b654d0eea2d2db0806bab8f3c2aca7e18e010/numpy-2.1.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:c80e4a09b3d95b4e1cac08643f1152fa71a0a821a2d4277334c88d54b2219a41", size = 13784119 }, + { url = "https://files.pythonhosted.org/packages/47/7c/864cb966b96fce5e63fcf25e1e4d957fe5725a635e5f11fe03f39dd9d6b5/numpy-2.1.3-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:576a1c1d25e9e02ed7fa5477f30a127fe56debd53b8d2c89d5578f9857d03ca9", size = 5352978 }, + { url = "https://files.pythonhosted.org/packages/09/ac/61d07930a4993dd9691a6432de16d93bbe6aa4b1c12a5e573d468eefc1ca/numpy-2.1.3-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:973faafebaae4c0aaa1a1ca1ce02434554d67e628b8d805e61f874b84e136b09", size = 6892570 }, + { url = "https://files.pythonhosted.org/packages/27/2f/21b94664f23af2bb52030653697c685022119e0dc93d6097c3cb45bce5f9/numpy-2.1.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:762479be47a4863e261a840e8e01608d124ee1361e48b96916f38b119cfda04a", size = 13896715 }, + { url = "https://files.pythonhosted.org/packages/7a/f0/80811e836484262b236c684a75dfc4ba0424bc670e765afaa911468d9f39/numpy-2.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc6f24b3d1ecc1eebfbf5d6051faa49af40b03be1aaa781ebdadcbc090b4539b", size = 16339644 }, + { url = "https://files.pythonhosted.org/packages/fa/81/ce213159a1ed8eb7d88a2a6ef4fbdb9e4ffd0c76b866c350eb4e3c37e640/numpy-2.1.3-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:17ee83a1f4fef3c94d16dc1802b998668b5419362c8a4f4e8a491de1b41cc3ee", size = 16712217 }, + { url = "https://files.pythonhosted.org/packages/7d/84/4de0b87d5a72f45556b2a8ee9fc8801e8518ec867fc68260c1f5dcb3903f/numpy-2.1.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:15cb89f39fa6d0bdfb600ea24b250e5f1a3df23f901f51c8debaa6a5d122b2f0", size = 14399053 }, + { url = "https://files.pythonhosted.org/packages/7e/1c/e5fabb9ad849f9d798b44458fd12a318d27592d4bc1448e269dec070ff04/numpy-2.1.3-cp311-cp311-win32.whl", hash = "sha256:d9beb777a78c331580705326d2367488d5bc473b49a9bc3036c154832520aca9", size = 6534741 }, + { url = "https://files.pythonhosted.org/packages/1e/48/a9a4b538e28f854bfb62e1dea3c8fea12e90216a276c7777ae5345ff29a7/numpy-2.1.3-cp311-cp311-win_amd64.whl", hash = "sha256:d89dd2b6da69c4fff5e39c28a382199ddedc3a5be5390115608345dec660b9e2", size = 12869487 }, + { url = "https://files.pythonhosted.org/packages/8a/f0/385eb9970309643cbca4fc6eebc8bb16e560de129c91258dfaa18498da8b/numpy-2.1.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:f55ba01150f52b1027829b50d70ef1dafd9821ea82905b63936668403c3b471e", size = 20849658 }, + { url = "https://files.pythonhosted.org/packages/54/4a/765b4607f0fecbb239638d610d04ec0a0ded9b4951c56dc68cef79026abf/numpy-2.1.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:13138eadd4f4da03074851a698ffa7e405f41a0845a6b1ad135b81596e4e9958", size = 13492258 }, + { url = "https://files.pythonhosted.org/packages/bd/a7/2332679479c70b68dccbf4a8eb9c9b5ee383164b161bee9284ac141fbd33/numpy-2.1.3-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:a6b46587b14b888e95e4a24d7b13ae91fa22386c199ee7b418f449032b2fa3b8", size = 5090249 }, + { url = "https://files.pythonhosted.org/packages/c1/67/4aa00316b3b981a822c7a239d3a8135be2a6945d1fd11d0efb25d361711a/numpy-2.1.3-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:0fa14563cc46422e99daef53d725d0c326e99e468a9320a240affffe87852564", size = 6621704 }, + { url = "https://files.pythonhosted.org/packages/5e/da/1a429ae58b3b6c364eeec93bf044c532f2ff7b48a52e41050896cf15d5b1/numpy-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8637dcd2caa676e475503d1f8fdb327bc495554e10838019651b76d17b98e512", size = 13606089 }, + { url = "https://files.pythonhosted.org/packages/9e/3e/3757f304c704f2f0294a6b8340fcf2be244038be07da4cccf390fa678a9f/numpy-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2312b2aa89e1f43ecea6da6ea9a810d06aae08321609d8dc0d0eda6d946a541b", size = 16043185 }, + { url = "https://files.pythonhosted.org/packages/43/97/75329c28fea3113d00c8d2daf9bc5828d58d78ed661d8e05e234f86f0f6d/numpy-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:a38c19106902bb19351b83802531fea19dee18e5b37b36454f27f11ff956f7fc", size = 16410751 }, + { url = "https://files.pythonhosted.org/packages/ad/7a/442965e98b34e0ae9da319f075b387bcb9a1e0658276cc63adb8c9686f7b/numpy-2.1.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:02135ade8b8a84011cbb67dc44e07c58f28575cf9ecf8ab304e51c05528c19f0", size = 14082705 }, + { url = "https://files.pythonhosted.org/packages/ac/b6/26108cf2cfa5c7e03fb969b595c93131eab4a399762b51ce9ebec2332e80/numpy-2.1.3-cp312-cp312-win32.whl", hash = "sha256:e6988e90fcf617da2b5c78902fe8e668361b43b4fe26dbf2d7b0f8034d4cafb9", size = 6239077 }, + { url = "https://files.pythonhosted.org/packages/a6/84/fa11dad3404b7634aaab50733581ce11e5350383311ea7a7010f464c0170/numpy-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:0d30c543f02e84e92c4b1f415b7c6b5326cbe45ee7882b6b77db7195fb971e3a", size = 12566858 }, + { url = "https://files.pythonhosted.org/packages/4d/0b/620591441457e25f3404c8057eb924d04f161244cb8a3680d529419aa86e/numpy-2.1.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:96fe52fcdb9345b7cd82ecd34547fca4321f7656d500eca497eb7ea5a926692f", size = 20836263 }, + { url = "https://files.pythonhosted.org/packages/45/e1/210b2d8b31ce9119145433e6ea78046e30771de3fe353f313b2778142f34/numpy-2.1.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f653490b33e9c3a4c1c01d41bc2aef08f9475af51146e4a7710c450cf9761598", size = 13507771 }, + { url = "https://files.pythonhosted.org/packages/55/44/aa9ee3caee02fa5a45f2c3b95cafe59c44e4b278fbbf895a93e88b308555/numpy-2.1.3-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:dc258a761a16daa791081d026f0ed4399b582712e6fc887a95af09df10c5ca57", size = 5075805 }, + { url = "https://files.pythonhosted.org/packages/78/d6/61de6e7e31915ba4d87bbe1ae859e83e6582ea14c6add07c8f7eefd8488f/numpy-2.1.3-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:016d0f6f5e77b0f0d45d77387ffa4bb89816b57c835580c3ce8e099ef830befe", size = 6608380 }, + { url = "https://files.pythonhosted.org/packages/3e/46/48bdf9b7241e317e6cf94276fe11ba673c06d1fdf115d8b4ebf616affd1a/numpy-2.1.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c181ba05ce8299c7aa3125c27b9c2167bca4a4445b7ce73d5febc411ca692e43", size = 13602451 }, + { url = "https://files.pythonhosted.org/packages/70/50/73f9a5aa0810cdccda9c1d20be3cbe4a4d6ea6bfd6931464a44c95eef731/numpy-2.1.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5641516794ca9e5f8a4d17bb45446998c6554704d888f86df9b200e66bdcce56", size = 16039822 }, + { url = "https://files.pythonhosted.org/packages/ad/cd/098bc1d5a5bc5307cfc65ee9369d0ca658ed88fbd7307b0d49fab6ca5fa5/numpy-2.1.3-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:ea4dedd6e394a9c180b33c2c872b92f7ce0f8e7ad93e9585312b0c5a04777a4a", size = 16411822 }, + { url = "https://files.pythonhosted.org/packages/83/a2/7d4467a2a6d984549053b37945620209e702cf96a8bc658bc04bba13c9e2/numpy-2.1.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:b0df3635b9c8ef48bd3be5f862cf71b0a4716fa0e702155c45067c6b711ddcef", size = 14079598 }, + { url = "https://files.pythonhosted.org/packages/e9/6a/d64514dcecb2ee70bfdfad10c42b76cab657e7ee31944ff7a600f141d9e9/numpy-2.1.3-cp313-cp313-win32.whl", hash = "sha256:50ca6aba6e163363f132b5c101ba078b8cbd3fa92c7865fd7d4d62d9779ac29f", size = 6236021 }, + { url = "https://files.pythonhosted.org/packages/bb/f9/12297ed8d8301a401e7d8eb6b418d32547f1d700ed3c038d325a605421a4/numpy-2.1.3-cp313-cp313-win_amd64.whl", hash = "sha256:747641635d3d44bcb380d950679462fae44f54b131be347d5ec2bce47d3df9ed", size = 12560405 }, + { url = "https://files.pythonhosted.org/packages/a7/45/7f9244cd792e163b334e3a7f02dff1239d2890b6f37ebf9e82cbe17debc0/numpy-2.1.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:996bb9399059c5b82f76b53ff8bb686069c05acc94656bb259b1d63d04a9506f", size = 20859062 }, + { url = "https://files.pythonhosted.org/packages/b1/b4/a084218e7e92b506d634105b13e27a3a6645312b93e1c699cc9025adb0e1/numpy-2.1.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:45966d859916ad02b779706bb43b954281db43e185015df6eb3323120188f9e4", size = 13515839 }, + { url = "https://files.pythonhosted.org/packages/27/45/58ed3f88028dcf80e6ea580311dc3edefdd94248f5770deb980500ef85dd/numpy-2.1.3-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:baed7e8d7481bfe0874b566850cb0b85243e982388b7b23348c6db2ee2b2ae8e", size = 5116031 }, + { url = "https://files.pythonhosted.org/packages/37/a8/eb689432eb977d83229094b58b0f53249d2209742f7de529c49d61a124a0/numpy-2.1.3-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:a9f7f672a3388133335589cfca93ed468509cb7b93ba3105fce780d04a6576a0", size = 6629977 }, + { url = "https://files.pythonhosted.org/packages/42/a3/5355ad51ac73c23334c7caaed01adadfda49544f646fcbfbb4331deb267b/numpy-2.1.3-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d7aac50327da5d208db2eec22eb11e491e3fe13d22653dce51b0f4109101b408", size = 13575951 }, + { url = "https://files.pythonhosted.org/packages/c4/70/ea9646d203104e647988cb7d7279f135257a6b7e3354ea6c56f8bafdb095/numpy-2.1.3-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4394bc0dbd074b7f9b52024832d16e019decebf86caf909d94f6b3f77a8ee3b6", size = 16022655 }, + { url = "https://files.pythonhosted.org/packages/14/ce/7fc0612903e91ff9d0b3f2eda4e18ef9904814afcae5b0f08edb7f637883/numpy-2.1.3-cp313-cp313t-musllinux_1_1_x86_64.whl", hash = "sha256:50d18c4358a0a8a53f12a8ba9d772ab2d460321e6a93d6064fc22443d189853f", size = 16399902 }, + { url = "https://files.pythonhosted.org/packages/ef/62/1d3204313357591c913c32132a28f09a26357e33ea3c4e2fe81269e0dca1/numpy-2.1.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:14e253bd43fc6b37af4921b10f6add6925878a42a0c5fe83daee390bca80bc17", size = 14067180 }, + { url = "https://files.pythonhosted.org/packages/24/d7/78a40ed1d80e23a774cb8a34ae8a9493ba1b4271dde96e56ccdbab1620ef/numpy-2.1.3-cp313-cp313t-win32.whl", hash = "sha256:08788d27a5fd867a663f6fc753fd7c3ad7e92747efc73c53bca2f19f8bc06f48", size = 6291907 }, + { url = "https://files.pythonhosted.org/packages/86/09/a5ab407bd7f5f5599e6a9261f964ace03a73e7c6928de906981c31c38082/numpy-2.1.3-cp313-cp313t-win_amd64.whl", hash = "sha256:2564fbdf2b99b3f815f2107c1bbc93e2de8ee655a69c261363a1172a79a257d4", size = 12644098 }, + { url = "https://files.pythonhosted.org/packages/00/e7/8d8bb791b62586cc432ecbb70632b4f23b7b7c88df41878de7528264f6d7/numpy-2.1.3-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:4f2015dfe437dfebbfce7c85c7b53d81ba49e71ba7eadbf1df40c915af75979f", size = 20983893 }, + { url = "https://files.pythonhosted.org/packages/5e/f3/cb8118a044b5007586245a650360c9f5915b2f4232dd7658bb7a63dd1d02/numpy-2.1.3-pp310-pypy310_pp73-macosx_14_0_x86_64.whl", hash = "sha256:3522b0dfe983a575e6a9ab3a4a4dfe156c3e428468ff08ce582b9bb6bd1d71d4", size = 6752501 }, + { url = "https://files.pythonhosted.org/packages/53/f5/365b46439b518d2ec6ebb880cc0edf90f225145dfd4db7958334f7164530/numpy-2.1.3-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c006b607a865b07cd981ccb218a04fc86b600411d83d6fc261357f1c0966755d", size = 16142601 }, + { url = "https://files.pythonhosted.org/packages/03/c2/d1fee6ba999aa7cd41ca6856937f2baaf604c3eec1565eae63451ec31e5e/numpy-2.1.3-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:e14e26956e6f1696070788252dcdff11b4aca4c3e8bd166e0df1bb8f315a67cb", size = 12771397 }, +] + +[[package]] +name = "packaging" +version = "24.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d0/63/68dbb6eb2de9cb10ee4c9c14a0148804425e13c4fb20d61cce69f53106da/packaging-24.2.tar.gz", hash = "sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f", size = 163950 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/88/ef/eb23f262cca3c0c4eb7ab1933c3b1f03d021f2c48f54763065b6f0e321be/packaging-24.2-py3-none-any.whl", hash = "sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759", size = 65451 }, +] + +[[package]] +name = "pillow" +version = "11.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a5/26/0d95c04c868f6bdb0c447e3ee2de5564411845e36a858cfd63766bc7b563/pillow-11.0.0.tar.gz", hash = "sha256:72bacbaf24ac003fea9bff9837d1eedb6088758d41e100c1552930151f677739", size = 46737780 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/98/fb/a6ce6836bd7fd93fbf9144bf54789e02babc27403b50a9e1583ee877d6da/pillow-11.0.0-cp310-cp310-macosx_10_10_x86_64.whl", hash = "sha256:6619654954dc4936fcff82db8eb6401d3159ec6be81e33c6000dfd76ae189947", size = 3154708 }, + { url = "https://files.pythonhosted.org/packages/6a/1d/1f51e6e912d8ff316bb3935a8cda617c801783e0b998bf7a894e91d3bd4c/pillow-11.0.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b3c5ac4bed7519088103d9450a1107f76308ecf91d6dabc8a33a2fcfb18d0fba", size = 2979223 }, + { url = "https://files.pythonhosted.org/packages/90/83/e2077b0192ca8a9ef794dbb74700c7e48384706467067976c2a95a0f40a1/pillow-11.0.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a65149d8ada1055029fcb665452b2814fe7d7082fcb0c5bed6db851cb69b2086", size = 4183167 }, + { url = "https://files.pythonhosted.org/packages/0e/74/467af0146970a98349cdf39e9b79a6cc8a2e7558f2c01c28a7b6b85c5bda/pillow-11.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:88a58d8ac0cc0e7f3a014509f0455248a76629ca9b604eca7dc5927cc593c5e9", size = 4283912 }, + { url = "https://files.pythonhosted.org/packages/85/b1/d95d4f7ca3a6c1ae120959605875a31a3c209c4e50f0029dc1a87566cf46/pillow-11.0.0-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:c26845094b1af3c91852745ae78e3ea47abf3dbcd1cf962f16b9a5fbe3ee8488", size = 4195815 }, + { url = "https://files.pythonhosted.org/packages/41/c3/94f33af0762ed76b5a237c5797e088aa57f2b7fa8ee7932d399087be66a8/pillow-11.0.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:1a61b54f87ab5786b8479f81c4b11f4d61702830354520837f8cc791ebba0f5f", size = 4366117 }, + { url = "https://files.pythonhosted.org/packages/ba/3c/443e7ef01f597497268899e1cca95c0de947c9bbf77a8f18b3c126681e5d/pillow-11.0.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:674629ff60030d144b7bca2b8330225a9b11c482ed408813924619c6f302fdbb", size = 4278607 }, + { url = "https://files.pythonhosted.org/packages/26/95/1495304448b0081e60c0c5d63f928ef48bb290acee7385804426fa395a21/pillow-11.0.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:598b4e238f13276e0008299bd2482003f48158e2b11826862b1eb2ad7c768b97", size = 4410685 }, + { url = "https://files.pythonhosted.org/packages/45/da/861e1df971ef0de9870720cb309ca4d553b26a9483ec9be3a7bf1de4a095/pillow-11.0.0-cp310-cp310-win32.whl", hash = "sha256:9a0f748eaa434a41fccf8e1ee7a3eed68af1b690e75328fd7a60af123c193b50", size = 2249185 }, + { url = "https://files.pythonhosted.org/packages/d5/4e/78f7c5202ea2a772a5ab05069c1b82503e6353cd79c7e474d4945f4b82c3/pillow-11.0.0-cp310-cp310-win_amd64.whl", hash = "sha256:a5629742881bcbc1f42e840af185fd4d83a5edeb96475a575f4da50d6ede337c", size = 2566726 }, + { url = "https://files.pythonhosted.org/packages/77/e4/6e84eada35cbcc646fc1870f72ccfd4afacb0fae0c37ffbffe7f5dc24bf1/pillow-11.0.0-cp310-cp310-win_arm64.whl", hash = "sha256:ee217c198f2e41f184f3869f3e485557296d505b5195c513b2bfe0062dc537f1", size = 2254585 }, + { url = "https://files.pythonhosted.org/packages/f0/eb/f7e21b113dd48a9c97d364e0915b3988c6a0b6207652f5a92372871b7aa4/pillow-11.0.0-cp311-cp311-macosx_10_10_x86_64.whl", hash = "sha256:1c1d72714f429a521d8d2d018badc42414c3077eb187a59579f28e4270b4b0fc", size = 3154705 }, + { url = "https://files.pythonhosted.org/packages/25/b3/2b54a1d541accebe6bd8b1358b34ceb2c509f51cb7dcda8687362490da5b/pillow-11.0.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:499c3a1b0d6fc8213519e193796eb1a86a1be4b1877d678b30f83fd979811d1a", size = 2979222 }, + { url = "https://files.pythonhosted.org/packages/20/12/1a41eddad8265c5c19dda8fb6c269ce15ee25e0b9f8f26286e6202df6693/pillow-11.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c8b2351c85d855293a299038e1f89db92a2f35e8d2f783489c6f0b2b5f3fe8a3", size = 4190220 }, + { url = "https://files.pythonhosted.org/packages/a9/9b/8a8c4d07d77447b7457164b861d18f5a31ae6418ef5c07f6f878fa09039a/pillow-11.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6f4dba50cfa56f910241eb7f883c20f1e7b1d8f7d91c750cd0b318bad443f4d5", size = 4291399 }, + { url = "https://files.pythonhosted.org/packages/fc/e4/130c5fab4a54d3991129800dd2801feeb4b118d7630148cd67f0e6269d4c/pillow-11.0.0-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:5ddbfd761ee00c12ee1be86c9c0683ecf5bb14c9772ddbd782085779a63dd55b", size = 4202709 }, + { url = "https://files.pythonhosted.org/packages/39/63/b3fc299528d7df1f678b0666002b37affe6b8751225c3d9c12cf530e73ed/pillow-11.0.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:45c566eb10b8967d71bf1ab8e4a525e5a93519e29ea071459ce517f6b903d7fa", size = 4372556 }, + { url = "https://files.pythonhosted.org/packages/c6/a6/694122c55b855b586c26c694937d36bb8d3b09c735ff41b2f315c6e66a10/pillow-11.0.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:b4fd7bd29610a83a8c9b564d457cf5bd92b4e11e79a4ee4716a63c959699b306", size = 4287187 }, + { url = "https://files.pythonhosted.org/packages/ba/a9/f9d763e2671a8acd53d29b1e284ca298bc10a595527f6be30233cdb9659d/pillow-11.0.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:cb929ca942d0ec4fac404cbf520ee6cac37bf35be479b970c4ffadf2b6a1cad9", size = 4418468 }, + { url = "https://files.pythonhosted.org/packages/6e/0e/b5cbad2621377f11313a94aeb44ca55a9639adabcaaa073597a1925f8c26/pillow-11.0.0-cp311-cp311-win32.whl", hash = "sha256:006bcdd307cc47ba43e924099a038cbf9591062e6c50e570819743f5607404f5", size = 2249249 }, + { url = "https://files.pythonhosted.org/packages/dc/83/1470c220a4ff06cd75fc609068f6605e567ea51df70557555c2ab6516b2c/pillow-11.0.0-cp311-cp311-win_amd64.whl", hash = "sha256:52a2d8323a465f84faaba5236567d212c3668f2ab53e1c74c15583cf507a0291", size = 2566769 }, + { url = "https://files.pythonhosted.org/packages/52/98/def78c3a23acee2bcdb2e52005fb2810ed54305602ec1bfcfab2bda6f49f/pillow-11.0.0-cp311-cp311-win_arm64.whl", hash = "sha256:16095692a253047fe3ec028e951fa4221a1f3ed3d80c397e83541a3037ff67c9", size = 2254611 }, + { url = "https://files.pythonhosted.org/packages/1c/a3/26e606ff0b2daaf120543e537311fa3ae2eb6bf061490e4fea51771540be/pillow-11.0.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:d2c0a187a92a1cb5ef2c8ed5412dd8d4334272617f532d4ad4de31e0495bd923", size = 3147642 }, + { url = "https://files.pythonhosted.org/packages/4f/d5/1caabedd8863526a6cfa44ee7a833bd97f945dc1d56824d6d76e11731939/pillow-11.0.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:084a07ef0821cfe4858fe86652fffac8e187b6ae677e9906e192aafcc1b69903", size = 2978999 }, + { url = "https://files.pythonhosted.org/packages/d9/ff/5a45000826a1aa1ac6874b3ec5a856474821a1b59d838c4f6ce2ee518fe9/pillow-11.0.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8069c5179902dcdce0be9bfc8235347fdbac249d23bd90514b7a47a72d9fecf4", size = 4196794 }, + { url = "https://files.pythonhosted.org/packages/9d/21/84c9f287d17180f26263b5f5c8fb201de0f88b1afddf8a2597a5c9fe787f/pillow-11.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f02541ef64077f22bf4924f225c0fd1248c168f86e4b7abdedd87d6ebaceab0f", size = 4300762 }, + { url = "https://files.pythonhosted.org/packages/84/39/63fb87cd07cc541438b448b1fed467c4d687ad18aa786a7f8e67b255d1aa/pillow-11.0.0-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:fcb4621042ac4b7865c179bb972ed0da0218a076dc1820ffc48b1d74c1e37fe9", size = 4210468 }, + { url = "https://files.pythonhosted.org/packages/7f/42/6e0f2c2d5c60f499aa29be14f860dd4539de322cd8fb84ee01553493fb4d/pillow-11.0.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:00177a63030d612148e659b55ba99527803288cea7c75fb05766ab7981a8c1b7", size = 4381824 }, + { url = "https://files.pythonhosted.org/packages/31/69/1ef0fb9d2f8d2d114db982b78ca4eeb9db9a29f7477821e160b8c1253f67/pillow-11.0.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:8853a3bf12afddfdf15f57c4b02d7ded92c7a75a5d7331d19f4f9572a89c17e6", size = 4296436 }, + { url = "https://files.pythonhosted.org/packages/44/ea/dad2818c675c44f6012289a7c4f46068c548768bc6c7f4e8c4ae5bbbc811/pillow-11.0.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:3107c66e43bda25359d5ef446f59c497de2b5ed4c7fdba0894f8d6cf3822dafc", size = 4429714 }, + { url = "https://files.pythonhosted.org/packages/af/3a/da80224a6eb15bba7a0dcb2346e2b686bb9bf98378c0b4353cd88e62b171/pillow-11.0.0-cp312-cp312-win32.whl", hash = "sha256:86510e3f5eca0ab87429dd77fafc04693195eec7fd6a137c389c3eeb4cfb77c6", size = 2249631 }, + { url = "https://files.pythonhosted.org/packages/57/97/73f756c338c1d86bb802ee88c3cab015ad7ce4b838f8a24f16b676b1ac7c/pillow-11.0.0-cp312-cp312-win_amd64.whl", hash = "sha256:8ec4a89295cd6cd4d1058a5e6aec6bf51e0eaaf9714774e1bfac7cfc9051db47", size = 2567533 }, + { url = "https://files.pythonhosted.org/packages/0b/30/2b61876e2722374558b871dfbfcbe4e406626d63f4f6ed92e9c8e24cac37/pillow-11.0.0-cp312-cp312-win_arm64.whl", hash = "sha256:27a7860107500d813fcd203b4ea19b04babe79448268403172782754870dac25", size = 2254890 }, + { url = "https://files.pythonhosted.org/packages/63/24/e2e15e392d00fcf4215907465d8ec2a2f23bcec1481a8ebe4ae760459995/pillow-11.0.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:bcd1fb5bb7b07f64c15618c89efcc2cfa3e95f0e3bcdbaf4642509de1942a699", size = 3147300 }, + { url = "https://files.pythonhosted.org/packages/43/72/92ad4afaa2afc233dc44184adff289c2e77e8cd916b3ddb72ac69495bda3/pillow-11.0.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0e038b0745997c7dcaae350d35859c9715c71e92ffb7e0f4a8e8a16732150f38", size = 2978742 }, + { url = "https://files.pythonhosted.org/packages/9e/da/c8d69c5bc85d72a8523fe862f05ababdc52c0a755cfe3d362656bb86552b/pillow-11.0.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0ae08bd8ffc41aebf578c2af2f9d8749d91f448b3bfd41d7d9ff573d74f2a6b2", size = 4194349 }, + { url = "https://files.pythonhosted.org/packages/cd/e8/686d0caeed6b998351d57796496a70185376ed9c8ec7d99e1d19ad591fc6/pillow-11.0.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d69bfd8ec3219ae71bcde1f942b728903cad25fafe3100ba2258b973bd2bc1b2", size = 4298714 }, + { url = "https://files.pythonhosted.org/packages/ec/da/430015cec620d622f06854be67fd2f6721f52fc17fca8ac34b32e2d60739/pillow-11.0.0-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:61b887f9ddba63ddf62fd02a3ba7add935d053b6dd7d58998c630e6dbade8527", size = 4208514 }, + { url = "https://files.pythonhosted.org/packages/44/ae/7e4f6662a9b1cb5f92b9cc9cab8321c381ffbee309210940e57432a4063a/pillow-11.0.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:c6a660307ca9d4867caa8d9ca2c2658ab685de83792d1876274991adec7b93fa", size = 4380055 }, + { url = "https://files.pythonhosted.org/packages/74/d5/1a807779ac8a0eeed57f2b92a3c32ea1b696e6140c15bd42eaf908a261cd/pillow-11.0.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:73e3a0200cdda995c7e43dd47436c1548f87a30bb27fb871f352a22ab8dcf45f", size = 4296751 }, + { url = "https://files.pythonhosted.org/packages/38/8c/5fa3385163ee7080bc13026d59656267daaaaf3c728c233d530e2c2757c8/pillow-11.0.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:fba162b8872d30fea8c52b258a542c5dfd7b235fb5cb352240c8d63b414013eb", size = 4430378 }, + { url = "https://files.pythonhosted.org/packages/ca/1d/ad9c14811133977ff87035bf426875b93097fb50af747793f013979facdb/pillow-11.0.0-cp313-cp313-win32.whl", hash = "sha256:f1b82c27e89fffc6da125d5eb0ca6e68017faf5efc078128cfaa42cf5cb38798", size = 2249588 }, + { url = "https://files.pythonhosted.org/packages/fb/01/3755ba287dac715e6afdb333cb1f6d69740a7475220b4637b5ce3d78cec2/pillow-11.0.0-cp313-cp313-win_amd64.whl", hash = "sha256:8ba470552b48e5835f1d23ecb936bb7f71d206f9dfeee64245f30c3270b994de", size = 2567509 }, + { url = "https://files.pythonhosted.org/packages/c0/98/2c7d727079b6be1aba82d195767d35fcc2d32204c7a5820f822df5330152/pillow-11.0.0-cp313-cp313-win_arm64.whl", hash = "sha256:846e193e103b41e984ac921b335df59195356ce3f71dcfd155aa79c603873b84", size = 2254791 }, + { url = "https://files.pythonhosted.org/packages/eb/38/998b04cc6f474e78b563716b20eecf42a2fa16a84589d23c8898e64b0ffd/pillow-11.0.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:4ad70c4214f67d7466bea6a08061eba35c01b1b89eaa098040a35272a8efb22b", size = 3150854 }, + { url = "https://files.pythonhosted.org/packages/13/8e/be23a96292113c6cb26b2aa3c8b3681ec62b44ed5c2bd0b258bd59503d3c/pillow-11.0.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:6ec0d5af64f2e3d64a165f490d96368bb5dea8b8f9ad04487f9ab60dc4bb6003", size = 2982369 }, + { url = "https://files.pythonhosted.org/packages/97/8a/3db4eaabb7a2ae8203cd3a332a005e4aba00067fc514aaaf3e9721be31f1/pillow-11.0.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c809a70e43c7977c4a42aefd62f0131823ebf7dd73556fa5d5950f5b354087e2", size = 4333703 }, + { url = "https://files.pythonhosted.org/packages/28/ac/629ffc84ff67b9228fe87a97272ab125bbd4dc462745f35f192d37b822f1/pillow-11.0.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:4b60c9520f7207aaf2e1d94de026682fc227806c6e1f55bba7606d1c94dd623a", size = 4412550 }, + { url = "https://files.pythonhosted.org/packages/d6/07/a505921d36bb2df6868806eaf56ef58699c16c388e378b0dcdb6e5b2fb36/pillow-11.0.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:1e2688958a840c822279fda0086fec1fdab2f95bf2b717b66871c4ad9859d7e8", size = 4461038 }, + { url = "https://files.pythonhosted.org/packages/d6/b9/fb620dd47fc7cc9678af8f8bd8c772034ca4977237049287e99dda360b66/pillow-11.0.0-cp313-cp313t-win32.whl", hash = "sha256:607bbe123c74e272e381a8d1957083a9463401f7bd01287f50521ecb05a313f8", size = 2253197 }, + { url = "https://files.pythonhosted.org/packages/df/86/25dde85c06c89d7fc5db17940f07aae0a56ac69aa9ccb5eb0f09798862a8/pillow-11.0.0-cp313-cp313t-win_amd64.whl", hash = "sha256:5c39ed17edea3bc69c743a8dd3e9853b7509625c2462532e62baa0732163a904", size = 2572169 }, + { url = "https://files.pythonhosted.org/packages/51/85/9c33f2517add612e17f3381aee7c4072779130c634921a756c97bc29fb49/pillow-11.0.0-cp313-cp313t-win_arm64.whl", hash = "sha256:75acbbeb05b86bc53cbe7b7e6fe00fbcf82ad7c684b3ad82e3d711da9ba287d3", size = 2256828 }, + { url = "https://files.pythonhosted.org/packages/36/57/42a4dd825eab762ba9e690d696d894ba366e06791936056e26e099398cda/pillow-11.0.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:1187739620f2b365de756ce086fdb3604573337cc28a0d3ac4a01ab6b2d2a6d2", size = 3119239 }, + { url = "https://files.pythonhosted.org/packages/98/f7/25f9f9e368226a1d6cf3507081a1a7944eddd3ca7821023377043f5a83c8/pillow-11.0.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:fbbcb7b57dc9c794843e3d1258c0fbf0f48656d46ffe9e09b63bbd6e8cd5d0a2", size = 2950803 }, + { url = "https://files.pythonhosted.org/packages/59/01/98ead48a6c2e31e6185d4c16c978a67fe3ccb5da5c2ff2ba8475379bb693/pillow-11.0.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5d203af30149ae339ad1b4f710d9844ed8796e97fda23ffbc4cc472968a47d0b", size = 3281098 }, + { url = "https://files.pythonhosted.org/packages/51/c0/570255b2866a0e4d500a14f950803a2ec273bac7badc43320120b9262450/pillow-11.0.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:21a0d3b115009ebb8ac3d2ebec5c2982cc693da935f4ab7bb5c8ebe2f47d36f2", size = 3323665 }, + { url = "https://files.pythonhosted.org/packages/0e/75/689b4ec0483c42bfc7d1aacd32ade7a226db4f4fac57c6fdcdf90c0731e3/pillow-11.0.0-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:73853108f56df97baf2bb8b522f3578221e56f646ba345a372c78326710d3830", size = 3310533 }, + { url = "https://files.pythonhosted.org/packages/3d/30/38bd6149cf53da1db4bad304c543ade775d225961c4310f30425995cb9ec/pillow-11.0.0-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:e58876c91f97b0952eb766123bfef372792ab3f4e3e1f1a2267834c2ab131734", size = 3414886 }, + { url = "https://files.pythonhosted.org/packages/ec/3d/c32a51d848401bd94cabb8767a39621496491ee7cd5199856b77da9b18ad/pillow-11.0.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:224aaa38177597bb179f3ec87eeefcce8e4f85e608025e9cfac60de237ba6316", size = 2567508 }, +] + +[[package]] +name = "platformdirs" +version = "4.3.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/13/fc/128cc9cb8f03208bdbf93d3aa862e16d376844a14f9a0ce5cf4507372de4/platformdirs-4.3.6.tar.gz", hash = "sha256:357fb2acbc885b0419afd3ce3ed34564c13c9b95c89360cd9563f73aa5e2b907", size = 21302 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/3c/a6/bc1012356d8ece4d66dd75c4b9fc6c1f6650ddd5991e421177d9f8f671be/platformdirs-4.3.6-py3-none-any.whl", hash = "sha256:73e575e1408ab8103900836b97580d5307456908a03e92031bab39e4554cc3fb", size = 18439 }, +] + +[[package]] +name = "pyparsing" +version = "3.2.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/8c/d5/e5aeee5387091148a19e1145f63606619cb5f20b83fccb63efae6474e7b2/pyparsing-3.2.0.tar.gz", hash = "sha256:cbf74e27246d595d9a74b186b810f6fbb86726dbf3b9532efb343f6d7294fe9c", size = 920984 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/be/ec/2eb3cd785efd67806c46c13a17339708ddc346cbb684eade7a6e6f79536a/pyparsing-3.2.0-py3-none-any.whl", hash = "sha256:93d9577b88da0bbea8cc8334ee8b918ed014968fd2ec383e868fb8afb1ccef84", size = 106921 }, +] + +[[package]] +name = "python-dateutil" +version = "2.9.0.post0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "six" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/66/c0/0c8b6ad9f17a802ee498c46e004a0eb49bc148f2fd230864601a86dcf6db/python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", size = 342432 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427", size = 229892 }, +] + +[[package]] +name = "referencing" +version = "0.35.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "attrs" }, + { name = "rpds-py" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/99/5b/73ca1f8e72fff6fa52119dbd185f73a907b1989428917b24cff660129b6d/referencing-0.35.1.tar.gz", hash = "sha256:25b42124a6c8b632a425174f24087783efb348a6f1e0008e63cd4466fedf703c", size = 62991 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b7/59/2056f61236782a2c86b33906c025d4f4a0b17be0161b63b70fd9e8775d36/referencing-0.35.1-py3-none-any.whl", hash = "sha256:eda6d3234d62814d1c64e305c1331c9a3a6132da475ab6382eaa997b21ee75de", size = 26684 }, +] + +[[package]] +name = "rpds-py" +version = "0.21.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/23/80/afdf96daf9b27d61483ef05b38f282121db0e38f5fd4e89f40f5c86c2a4f/rpds_py-0.21.0.tar.gz", hash = "sha256:ed6378c9d66d0de903763e7706383d60c33829581f0adff47b6535f1802fa6db", size = 26335 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4c/a4/91747f902f166c589f1753cbd8bda713aceb75817c8bb597058a38aa85e6/rpds_py-0.21.0-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:a017f813f24b9df929674d0332a374d40d7f0162b326562daae8066b502d0590", size = 327473 }, + { url = "https://files.pythonhosted.org/packages/8a/72/75a30a07f96ae210e732c50c7339e742945fdc83661e65a1c80fcf39ceea/rpds_py-0.21.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:20cc1ed0bcc86d8e1a7e968cce15be45178fd16e2ff656a243145e0b439bd250", size = 318359 }, + { url = "https://files.pythonhosted.org/packages/dc/63/87d469d7628cd71366fd1baa32573acd37385843b8d39b6e2b69f16eec48/rpds_py-0.21.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ad116dda078d0bc4886cb7840e19811562acdc7a8e296ea6ec37e70326c1b41c", size = 361377 }, + { url = "https://files.pythonhosted.org/packages/dd/b1/78da258a4cafa1d8606a21b7d9ed4cc9d72d1c663583060ab02444b9bd9c/rpds_py-0.21.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:808f1ac7cf3b44f81c9475475ceb221f982ef548e44e024ad5f9e7060649540e", size = 369494 }, + { url = "https://files.pythonhosted.org/packages/44/47/6fdb7273cc80066d434e83cd49a3cfedb6d96ff70908480870877fb64b1e/rpds_py-0.21.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:de552f4a1916e520f2703ec474d2b4d3f86d41f353e7680b597512ffe7eac5d0", size = 403639 }, + { url = "https://files.pythonhosted.org/packages/5f/4a/8c6c46afc050b5243be579be7f7b194d00b9731e83cc0845e9c70db127bb/rpds_py-0.21.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:efec946f331349dfc4ae9d0e034c263ddde19414fe5128580f512619abed05f1", size = 430551 }, + { url = "https://files.pythonhosted.org/packages/d4/31/2dd40abc26fc0fc037b86006583276dc375d38ac821d4ca2394274e8045b/rpds_py-0.21.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b80b4690bbff51a034bfde9c9f6bf9357f0a8c61f548942b80f7b66356508bf5", size = 360795 }, + { url = "https://files.pythonhosted.org/packages/9d/2a/665b9ebef76f54764f1437ac03373a95a69480b7ce56c480360f88730cae/rpds_py-0.21.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:085ed25baac88953d4283e5b5bd094b155075bb40d07c29c4f073e10623f9f2e", size = 382663 }, + { url = "https://files.pythonhosted.org/packages/e8/8c/e056f0c887d29baa256f8c8d7f7079a72d80395c35c14219de45ab19dce2/rpds_py-0.21.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:daa8efac2a1273eed2354397a51216ae1e198ecbce9036fba4e7610b308b6153", size = 546477 }, + { url = "https://files.pythonhosted.org/packages/33/11/588568f6c2ed5c9d6d121c188c71ca0f76e0e369a6d66f835737189e5a75/rpds_py-0.21.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:95a5bad1ac8a5c77b4e658671642e4af3707f095d2b78a1fdd08af0dfb647624", size = 549477 }, + { url = "https://files.pythonhosted.org/packages/15/86/c1401e2f70fbdf963c2ac9157994ebeb00c101ddf87975a90507f27cb2f4/rpds_py-0.21.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:3e53861b29a13d5b70116ea4230b5f0f3547b2c222c5daa090eb7c9c82d7f664", size = 527966 }, + { url = "https://files.pythonhosted.org/packages/66/f2/452420f1493112825e975c87b3b4fd8b334e0e228cdb641597a92e0c3267/rpds_py-0.21.0-cp310-none-win32.whl", hash = "sha256:ea3a6ac4d74820c98fcc9da4a57847ad2cc36475a8bd9683f32ab6d47a2bd682", size = 200978 }, + { url = "https://files.pythonhosted.org/packages/35/4c/674b2e2d75607acdbc7a162ace36dcaad225c9e760cef5defa5c0f5ddd2d/rpds_py-0.21.0-cp310-none-win_amd64.whl", hash = "sha256:b8f107395f2f1d151181880b69a2869c69e87ec079c49c0016ab96860b6acbe5", size = 218549 }, + { url = "https://files.pythonhosted.org/packages/80/61/615929ea79f5fd0b3aca000411a33bcc1753607ccc1af0ce7b05b56e6e56/rpds_py-0.21.0-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:5555db3e618a77034954b9dc547eae94166391a98eb867905ec8fcbce1308d95", size = 327267 }, + { url = "https://files.pythonhosted.org/packages/a5/f5/28e89dda55b731d78cbfea284dc9789d265a8a06523f0adf60e9b05cade7/rpds_py-0.21.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:97ef67d9bbc3e15584c2f3c74bcf064af36336c10d2e21a2131e123ce0f924c9", size = 318227 }, + { url = "https://files.pythonhosted.org/packages/e4/ef/eb90feb3e384543c48e2f867551075c43a429aa4c9a44e9c4bd71f4f786b/rpds_py-0.21.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4ab2c2a26d2f69cdf833174f4d9d86118edc781ad9a8fa13970b527bf8236027", size = 361235 }, + { url = "https://files.pythonhosted.org/packages/ed/e7/8ea2d3d3398266c5c8ddd957d86003493b6d14f8f158b726dd09c8f43dee/rpds_py-0.21.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4e8921a259f54bfbc755c5bbd60c82bb2339ae0324163f32868f63f0ebb873d9", size = 369467 }, + { url = "https://files.pythonhosted.org/packages/51/25/a286abda9da7820c971a0b1abcf1d31fb81c44a1088a128ad26c77206622/rpds_py-0.21.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8a7ff941004d74d55a47f916afc38494bd1cfd4b53c482b77c03147c91ac0ac3", size = 403482 }, + { url = "https://files.pythonhosted.org/packages/7a/1e/9c3c0463fe142456dcd9e9be0ffd15b66a77adfcdf3ecf94fa2b12d95fcb/rpds_py-0.21.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5145282a7cd2ac16ea0dc46b82167754d5e103a05614b724457cffe614f25bd8", size = 429943 }, + { url = "https://files.pythonhosted.org/packages/e1/fd/f1fd7e77fef8e5a442ce7fd80ba957730877515fe18d7195f646408a60ce/rpds_py-0.21.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:de609a6f1b682f70bb7163da745ee815d8f230d97276db049ab447767466a09d", size = 360437 }, + { url = "https://files.pythonhosted.org/packages/55/83/347932db075847f4f8172c3b53ad70fe725edd9058f0d4098080ad45e3bc/rpds_py-0.21.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:40c91c6e34cf016fa8e6b59d75e3dbe354830777fcfd74c58b279dceb7975b75", size = 382400 }, + { url = "https://files.pythonhosted.org/packages/22/9b/2a6eeab4e6752adba751cfee19bdf35d11e1073509f74883cbf14d42d682/rpds_py-0.21.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d2132377f9deef0c4db89e65e8bb28644ff75a18df5293e132a8d67748397b9f", size = 546560 }, + { url = "https://files.pythonhosted.org/packages/3c/19/6e51a141fe6f017d07b7d899b10a4af9e0f268deffacc1107d70fcd9257b/rpds_py-0.21.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:0a9e0759e7be10109645a9fddaaad0619d58c9bf30a3f248a2ea57a7c417173a", size = 549334 }, + { url = "https://files.pythonhosted.org/packages/cf/40/4ae09a07e4531278e6bee41ef3e4f166c23468135afc2c6c98917bfc28e6/rpds_py-0.21.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9e20da3957bdf7824afdd4b6eeb29510e83e026473e04952dca565170cd1ecc8", size = 527855 }, + { url = "https://files.pythonhosted.org/packages/eb/45/2135be31543677687a426117c56d8b33e8b581bc4a8b7abfa53721012162/rpds_py-0.21.0-cp311-none-win32.whl", hash = "sha256:f71009b0d5e94c0e86533c0b27ed7cacc1239cb51c178fd239c3cfefefb0400a", size = 200968 }, + { url = "https://files.pythonhosted.org/packages/68/fa/e66c3aaf13ef91c203ba47c102cd7c5dca92dde8837e5093577968d6d36d/rpds_py-0.21.0-cp311-none-win_amd64.whl", hash = "sha256:e168afe6bf6ab7ab46c8c375606298784ecbe3ba31c0980b7dcbb9631dcba97e", size = 218502 }, + { url = "https://files.pythonhosted.org/packages/d9/5a/3aa6f5d8bacbe4f55ebf9a3c9628dad40cdb57f845124cf13c78895ea156/rpds_py-0.21.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:30b912c965b2aa76ba5168fd610087bad7fcde47f0a8367ee8f1876086ee6d1d", size = 329516 }, + { url = "https://files.pythonhosted.org/packages/df/c0/67c8c8ac850c6e3681e356a59d46315bf73bc77cb50c9a32db8ae44325b7/rpds_py-0.21.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ca9989d5d9b1b300bc18e1801c67b9f6d2c66b8fd9621b36072ed1df2c977f72", size = 321245 }, + { url = "https://files.pythonhosted.org/packages/64/83/bf31341f21fa594035891ff04a497dc86b210cc1a903a9cc01b097cc614f/rpds_py-0.21.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6f54e7106f0001244a5f4cf810ba8d3f9c542e2730821b16e969d6887b664266", size = 363951 }, + { url = "https://files.pythonhosted.org/packages/a2/e1/8218bba36737621262df316fbb729639af25ff611cc07bfeaadc1bfa6292/rpds_py-0.21.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:fed5dfefdf384d6fe975cc026886aece4f292feaf69d0eeb716cfd3c5a4dd8be", size = 373113 }, + { url = "https://files.pythonhosted.org/packages/39/8d/4afcd688e3ad33ec273900f42e6a41e9bd9f43cfc509b6d498683d2d0338/rpds_py-0.21.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:590ef88db231c9c1eece44dcfefd7515d8bf0d986d64d0caf06a81998a9e8cab", size = 405944 }, + { url = "https://files.pythonhosted.org/packages/fa/65/3326efa721b6ecd70262aab69a26c9bc19398cdb0a2a416ef30b58326460/rpds_py-0.21.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f983e4c2f603c95dde63df633eec42955508eefd8d0f0e6d236d31a044c882d7", size = 422874 }, + { url = "https://files.pythonhosted.org/packages/31/fb/48a647d0afab74289dd21a4128002d58684c22600a22c4bfb76cb9e3bfb0/rpds_py-0.21.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b229ce052ddf1a01c67d68166c19cb004fb3612424921b81c46e7ea7ccf7c3bf", size = 364227 }, + { url = "https://files.pythonhosted.org/packages/f1/b0/1cdd179d7382dd52d65b1fd19c54d090b6bd0688dfbe259bb5ab7548c359/rpds_py-0.21.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ebf64e281a06c904a7636781d2e973d1f0926a5b8b480ac658dc0f556e7779f4", size = 386447 }, + { url = "https://files.pythonhosted.org/packages/dc/41/84ace07f31aac3a96b73a374d89106cf252f7d3274e7cae85d17a27c602d/rpds_py-0.21.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:998a8080c4495e4f72132f3d66ff91f5997d799e86cec6ee05342f8f3cda7dca", size = 549386 }, + { url = "https://files.pythonhosted.org/packages/33/ce/bf51bc5a3aa539171ea8c7737ab5ac06cef54c79b6b2a0511afc41533c89/rpds_py-0.21.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:98486337f7b4f3c324ab402e83453e25bb844f44418c066623db88e4c56b7c7b", size = 554777 }, + { url = "https://files.pythonhosted.org/packages/76/b1/950568e55a94c2979c2b61ec24e76e648a525fbc7551ccfc1f2841e39d44/rpds_py-0.21.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:a78d8b634c9df7f8d175451cfeac3810a702ccb85f98ec95797fa98b942cea11", size = 530918 }, + { url = "https://files.pythonhosted.org/packages/78/84/93f00e3613426c8a7a9ca16782d2828f2ac55296dd5c6b599379d9f59ee2/rpds_py-0.21.0-cp312-none-win32.whl", hash = "sha256:a58ce66847711c4aa2ecfcfaff04cb0327f907fead8945ffc47d9407f41ff952", size = 203112 }, + { url = "https://files.pythonhosted.org/packages/e6/08/7a186847dd78881a781d2be9b42c8e49c3261c0f4a6d0289ba9a1e4cde71/rpds_py-0.21.0-cp312-none-win_amd64.whl", hash = "sha256:e860f065cc4ea6f256d6f411aba4b1251255366e48e972f8a347cf88077b24fd", size = 220735 }, + { url = "https://files.pythonhosted.org/packages/32/3a/e69ec108eefb9b1f19ee00dde7a800b485942e62b123f01d9156a6d8569c/rpds_py-0.21.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:ee4eafd77cc98d355a0d02f263efc0d3ae3ce4a7c24740010a8b4012bbb24937", size = 329206 }, + { url = "https://files.pythonhosted.org/packages/f6/c0/fa689498fa3415565306398c8d2a596207c2a13d3cc03724f32514bddfbc/rpds_py-0.21.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:688c93b77e468d72579351a84b95f976bd7b3e84aa6686be6497045ba84be560", size = 320245 }, + { url = "https://files.pythonhosted.org/packages/68/d0/466b61007005f1b2fd8501f23e4bdee4d71c7381b61358750920d1882ac9/rpds_py-0.21.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c38dbf31c57032667dd5a2f0568ccde66e868e8f78d5a0d27dcc56d70f3fcd3b", size = 363585 }, + { url = "https://files.pythonhosted.org/packages/1e/e2/787ea3a0f4b197893c62c254e6f14929c40bbcff86922928ac4eafaa8edf/rpds_py-0.21.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:2d6129137f43f7fa02d41542ffff4871d4aefa724a5fe38e2c31a4e0fd343fb0", size = 372302 }, + { url = "https://files.pythonhosted.org/packages/b5/ef/99f2cfe6aa128c21f1b30c66ecd348cbd59792953ca35eeb6efa38b88aa1/rpds_py-0.21.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:520ed8b99b0bf86a176271f6fe23024323862ac674b1ce5b02a72bfeff3fff44", size = 405344 }, + { url = "https://files.pythonhosted.org/packages/30/3c/9d12d0b76ecfe80a7ba4770459828dda495d72b18cafd6dfd54c67b2e282/rpds_py-0.21.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:aaeb25ccfb9b9014a10eaf70904ebf3f79faaa8e60e99e19eef9f478651b9b74", size = 422322 }, + { url = "https://files.pythonhosted.org/packages/f9/22/387aec1cd6e124adbc3b1f40c4e4152c3963ae47d78d3ca650102ea72c4f/rpds_py-0.21.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:af04ac89c738e0f0f1b913918024c3eab6e3ace989518ea838807177d38a2e94", size = 363739 }, + { url = "https://files.pythonhosted.org/packages/d1/3e/0ad65b776db13d13f002ab363fe3821cd1adec500d8e05e0a81047a75f9d/rpds_py-0.21.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:b9b76e2afd585803c53c5b29e992ecd183f68285b62fe2668383a18e74abe7a3", size = 386579 }, + { url = "https://files.pythonhosted.org/packages/4f/3b/c68c1067b24a7df47edcc0325a825908601aba399e2d372a156edc631ad1/rpds_py-0.21.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5afb5efde74c54724e1a01118c6e5c15e54e642c42a1ba588ab1f03544ac8c7a", size = 548924 }, + { url = "https://files.pythonhosted.org/packages/ab/1c/35f1a5cce4bca71c49664f00140010a96b126e5f443ebaf6db741c25b9b7/rpds_py-0.21.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:52c041802a6efa625ea18027a0723676a778869481d16803481ef6cc02ea8cb3", size = 554217 }, + { url = "https://files.pythonhosted.org/packages/c8/d0/48154c152f9adb8304b21d867d28e79be3b352633fb195c03c7107a4da9a/rpds_py-0.21.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:ee1e4fc267b437bb89990b2f2abf6c25765b89b72dd4a11e21934df449e0c976", size = 530540 }, + { url = "https://files.pythonhosted.org/packages/50/e8/78847f4e112e99fd5b7bc30fea3e4a44c20b811473d6755f944c5bf0aec7/rpds_py-0.21.0-cp313-none-win32.whl", hash = "sha256:0c025820b78817db6a76413fff6866790786c38f95ea3f3d3c93dbb73b632202", size = 202604 }, + { url = "https://files.pythonhosted.org/packages/60/31/083e6337775e133fb0217ed0ab0752380efa6e5112f2250d592d4135a228/rpds_py-0.21.0-cp313-none-win_amd64.whl", hash = "sha256:320c808df533695326610a1b6a0a6e98f033e49de55d7dc36a13c8a30cfa756e", size = 220448 }, + { url = "https://files.pythonhosted.org/packages/ff/d3/ffb04445d29c03d380047c62bed01b979adb9204424e2c833817012f679e/rpds_py-0.21.0-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:6b4ef7725386dc0762857097f6b7266a6cdd62bfd209664da6712cb26acef035", size = 328265 }, + { url = "https://files.pythonhosted.org/packages/dc/9d/894ff29a2be8f85fd1acff6e0c1b52b629aee019da8651125af9ee4894e1/rpds_py-0.21.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:6bc0e697d4d79ab1aacbf20ee5f0df80359ecf55db33ff41481cf3e24f206919", size = 319238 }, + { url = "https://files.pythonhosted.org/packages/43/3d/0e5b835c22933a5bdc4413e4a91de55a8c1ef33f55eb2514a5cf24729173/rpds_py-0.21.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:da52d62a96e61c1c444f3998c434e8b263c384f6d68aca8274d2e08d1906325c", size = 362136 }, + { url = "https://files.pythonhosted.org/packages/67/81/c9f29da910ac19758f170633c0937fc2f0898b84389bd05bfc255c985f19/rpds_py-0.21.0-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:98e4fe5db40db87ce1c65031463a760ec7906ab230ad2249b4572c2fc3ef1f9f", size = 370411 }, + { url = "https://files.pythonhosted.org/packages/a8/df/b989044f90b81093e454eb54799e7ee5b085ebf957a75d07d5e21eac2fb5/rpds_py-0.21.0-pp310-pypy310_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:30bdc973f10d28e0337f71d202ff29345320f8bc49a31c90e6c257e1ccef4333", size = 404598 }, + { url = "https://files.pythonhosted.org/packages/8f/09/f79cd575f503932f41138c4bec4c902eb3b71ea8570436688145cc77b8ef/rpds_py-0.21.0-pp310-pypy310_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:faa5e8496c530f9c71f2b4e1c49758b06e5f4055e17144906245c99fa6d45356", size = 430224 }, + { url = "https://files.pythonhosted.org/packages/34/46/7fae3500bc188df2feee09dd72df262b97d31e8e4bd2ff4a8be4e28bf1d3/rpds_py-0.21.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:32eb88c30b6a4f0605508023b7141d043a79b14acb3b969aa0b4f99b25bc7d4a", size = 361660 }, + { url = "https://files.pythonhosted.org/packages/5b/1d/d850242d30e68f99ad80815576f38b378b5aba393613e3357ed5e593499e/rpds_py-0.21.0-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a89a8ce9e4e75aeb7fa5d8ad0f3fecdee813802592f4f46a15754dcb2fd6b061", size = 384008 }, + { url = "https://files.pythonhosted.org/packages/c9/16/df4cfd1de216c25de24f8631f17380f8edee92201ec7810d1e2ba1dd9f85/rpds_py-0.21.0-pp310-pypy310_pp73-musllinux_1_2_aarch64.whl", hash = "sha256:241e6c125568493f553c3d0fdbb38c74babf54b45cef86439d4cd97ff8feb34d", size = 546855 }, + { url = "https://files.pythonhosted.org/packages/c0/b8/03d4561095d4fbf2ab62ed651a2b5cb674fe5245b1ab2f7909e8056bd014/rpds_py-0.21.0-pp310-pypy310_pp73-musllinux_1_2_i686.whl", hash = "sha256:3b766a9f57663396e4f34f5140b3595b233a7b146e94777b97a8413a1da1be18", size = 550599 }, + { url = "https://files.pythonhosted.org/packages/f4/54/d93867e2bf4acf57314798181faf3bd7d1a4f51a3aa81cb6211d56f74d3f/rpds_py-0.21.0-pp310-pypy310_pp73-musllinux_1_2_x86_64.whl", hash = "sha256:af4a644bf890f56e41e74be7d34e9511e4954894d544ec6b8efe1e21a1a8da6c", size = 528963 }, + { url = "https://files.pythonhosted.org/packages/66/86/6f72984a284d720d84fba5ee7b0d1b0d320978b516497cbfd6e335e95a3e/rpds_py-0.21.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:3e30a69a706e8ea20444b98a49f386c17b26f860aa9245329bab0851ed100677", size = 219621 }, +] + +[[package]] +name = "scipy" +version = "1.14.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/62/11/4d44a1f274e002784e4dbdb81e0ea96d2de2d1045b2132d5af62cc31fd28/scipy-1.14.1.tar.gz", hash = "sha256:5a275584e726026a5699459aa72f828a610821006228e841b94275c4a7c08417", size = 58620554 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/64/68/3bc0cfaf64ff507d82b1e5d5b64521df4c8bf7e22bc0b897827cbee9872c/scipy-1.14.1-cp310-cp310-macosx_10_13_x86_64.whl", hash = "sha256:b28d2ca4add7ac16ae8bb6632a3c86e4b9e4d52d3e34267f6e1b0c1f8d87e389", size = 39069598 }, + { url = "https://files.pythonhosted.org/packages/43/a5/8d02f9c372790326ad405d94f04d4339482ec082455b9e6e288f7100513b/scipy-1.14.1-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:d0d2821003174de06b69e58cef2316a6622b60ee613121199cb2852a873f8cf3", size = 29879676 }, + { url = "https://files.pythonhosted.org/packages/07/42/0e0bea9666fcbf2cb6ea0205db42c81b1f34d7b729ba251010edf9c80ebd/scipy-1.14.1-cp310-cp310-macosx_14_0_arm64.whl", hash = "sha256:8bddf15838ba768bb5f5083c1ea012d64c9a444e16192762bd858f1e126196d0", size = 23088696 }, + { url = "https://files.pythonhosted.org/packages/15/47/298ab6fef5ebf31b426560e978b8b8548421d4ed0bf99263e1eb44532306/scipy-1.14.1-cp310-cp310-macosx_14_0_x86_64.whl", hash = "sha256:97c5dddd5932bd2a1a31c927ba5e1463a53b87ca96b5c9bdf5dfd6096e27efc3", size = 25470699 }, + { url = "https://files.pythonhosted.org/packages/d8/df/cdb6be5274bc694c4c22862ac3438cb04f360ed9df0aecee02ce0b798380/scipy-1.14.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2ff0a7e01e422c15739ecd64432743cf7aae2b03f3084288f399affcefe5222d", size = 35606631 }, + { url = "https://files.pythonhosted.org/packages/47/78/b0c2c23880dd1e99e938ad49ccfb011ae353758a2dc5ed7ee59baff684c3/scipy-1.14.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8e32dced201274bf96899e6491d9ba3e9a5f6b336708656466ad0522d8528f69", size = 41178528 }, + { url = "https://files.pythonhosted.org/packages/5d/aa/994b45c34b897637b853ec04334afa55a85650a0d11dacfa67232260fb0a/scipy-1.14.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:8426251ad1e4ad903a4514712d2fa8fdd5382c978010d1c6f5f37ef286a713ad", size = 42784535 }, + { url = "https://files.pythonhosted.org/packages/e7/1c/8daa6df17a945cb1a2a1e3bae3c49643f7b3b94017ff01a4787064f03f84/scipy-1.14.1-cp310-cp310-win_amd64.whl", hash = "sha256:a49f6ed96f83966f576b33a44257d869756df6cf1ef4934f59dd58b25e0327e5", size = 44772117 }, + { url = "https://files.pythonhosted.org/packages/b2/ab/070ccfabe870d9f105b04aee1e2860520460ef7ca0213172abfe871463b9/scipy-1.14.1-cp311-cp311-macosx_10_13_x86_64.whl", hash = "sha256:2da0469a4ef0ecd3693761acbdc20f2fdeafb69e6819cc081308cc978153c675", size = 39076999 }, + { url = "https://files.pythonhosted.org/packages/a7/c5/02ac82f9bb8f70818099df7e86c3ad28dae64e1347b421d8e3adf26acab6/scipy-1.14.1-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:c0ee987efa6737242745f347835da2cc5bb9f1b42996a4d97d5c7ff7928cb6f2", size = 29894570 }, + { url = "https://files.pythonhosted.org/packages/ed/05/7f03e680cc5249c4f96c9e4e845acde08eb1aee5bc216eff8a089baa4ddb/scipy-1.14.1-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:3a1b111fac6baec1c1d92f27e76511c9e7218f1695d61b59e05e0fe04dc59617", size = 23103567 }, + { url = "https://files.pythonhosted.org/packages/5e/fc/9f1413bef53171f379d786aabc104d4abeea48ee84c553a3e3d8c9f96a9c/scipy-1.14.1-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:8475230e55549ab3f207bff11ebfc91c805dc3463ef62eda3ccf593254524ce8", size = 25499102 }, + { url = "https://files.pythonhosted.org/packages/c2/4b/b44bee3c2ddc316b0159b3d87a3d467ef8d7edfd525e6f7364a62cd87d90/scipy-1.14.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:278266012eb69f4a720827bdd2dc54b2271c97d84255b2faaa8f161a158c3b37", size = 35586346 }, + { url = "https://files.pythonhosted.org/packages/93/6b/701776d4bd6bdd9b629c387b5140f006185bd8ddea16788a44434376b98f/scipy-1.14.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fef8c87f8abfb884dac04e97824b61299880c43f4ce675dd2cbeadd3c9b466d2", size = 41165244 }, + { url = "https://files.pythonhosted.org/packages/06/57/e6aa6f55729a8f245d8a6984f2855696c5992113a5dc789065020f8be753/scipy-1.14.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b05d43735bb2f07d689f56f7b474788a13ed8adc484a85aa65c0fd931cf9ccd2", size = 42817917 }, + { url = "https://files.pythonhosted.org/packages/ea/c2/5ecadc5fcccefaece775feadcd795060adf5c3b29a883bff0e678cfe89af/scipy-1.14.1-cp311-cp311-win_amd64.whl", hash = "sha256:716e389b694c4bb564b4fc0c51bc84d381735e0d39d3f26ec1af2556ec6aad94", size = 44781033 }, + { url = "https://files.pythonhosted.org/packages/c0/04/2bdacc8ac6387b15db6faa40295f8bd25eccf33f1f13e68a72dc3c60a99e/scipy-1.14.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:631f07b3734d34aced009aaf6fedfd0eb3498a97e581c3b1e5f14a04164a456d", size = 39128781 }, + { url = "https://files.pythonhosted.org/packages/c8/53/35b4d41f5fd42f5781dbd0dd6c05d35ba8aa75c84ecddc7d44756cd8da2e/scipy-1.14.1-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:af29a935803cc707ab2ed7791c44288a682f9c8107bc00f0eccc4f92c08d6e07", size = 29939542 }, + { url = "https://files.pythonhosted.org/packages/66/67/6ef192e0e4d77b20cc33a01e743b00bc9e68fb83b88e06e636d2619a8767/scipy-1.14.1-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:2843f2d527d9eebec9a43e6b406fb7266f3af25a751aa91d62ff416f54170bc5", size = 23148375 }, + { url = "https://files.pythonhosted.org/packages/f6/32/3a6dedd51d68eb7b8e7dc7947d5d841bcb699f1bf4463639554986f4d782/scipy-1.14.1-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:eb58ca0abd96911932f688528977858681a59d61a7ce908ffd355957f7025cfc", size = 25578573 }, + { url = "https://files.pythonhosted.org/packages/f0/5a/efa92a58dc3a2898705f1dc9dbaf390ca7d4fba26d6ab8cfffb0c72f656f/scipy-1.14.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:30ac8812c1d2aab7131a79ba62933a2a76f582d5dbbc695192453dae67ad6310", size = 35319299 }, + { url = "https://files.pythonhosted.org/packages/8e/ee/8a26858ca517e9c64f84b4c7734b89bda8e63bec85c3d2f432d225bb1886/scipy-1.14.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8f9ea80f2e65bdaa0b7627fb00cbeb2daf163caa015e59b7516395fe3bd1e066", size = 40849331 }, + { url = "https://files.pythonhosted.org/packages/a5/cd/06f72bc9187840f1c99e1a8750aad4216fc7dfdd7df46e6280add14b4822/scipy-1.14.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:edaf02b82cd7639db00dbff629995ef185c8df4c3ffa71a5562a595765a06ce1", size = 42544049 }, + { url = "https://files.pythonhosted.org/packages/aa/7d/43ab67228ef98c6b5dd42ab386eae2d7877036970a0d7e3dd3eb47a0d530/scipy-1.14.1-cp312-cp312-win_amd64.whl", hash = "sha256:2ff38e22128e6c03ff73b6bb0f85f897d2362f8c052e3b8ad00532198fbdae3f", size = 44521212 }, + { url = "https://files.pythonhosted.org/packages/50/ef/ac98346db016ff18a6ad7626a35808f37074d25796fd0234c2bb0ed1e054/scipy-1.14.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:1729560c906963fc8389f6aac023739ff3983e727b1a4d87696b7bf108316a79", size = 39091068 }, + { url = "https://files.pythonhosted.org/packages/b9/cc/70948fe9f393b911b4251e96b55bbdeaa8cca41f37c26fd1df0232933b9e/scipy-1.14.1-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:4079b90df244709e675cdc8b93bfd8a395d59af40b72e339c2287c91860deb8e", size = 29875417 }, + { url = "https://files.pythonhosted.org/packages/3b/2e/35f549b7d231c1c9f9639f9ef49b815d816bf54dd050da5da1c11517a218/scipy-1.14.1-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:e0cf28db0f24a38b2a0ca33a85a54852586e43cf6fd876365c86e0657cfe7d73", size = 23084508 }, + { url = "https://files.pythonhosted.org/packages/3f/d6/b028e3f3e59fae61fb8c0f450db732c43dd1d836223a589a8be9f6377203/scipy-1.14.1-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:0c2f95de3b04e26f5f3ad5bb05e74ba7f68b837133a4492414b3afd79dfe540e", size = 25503364 }, + { url = "https://files.pythonhosted.org/packages/a7/2f/6c142b352ac15967744d62b165537a965e95d557085db4beab2a11f7943b/scipy-1.14.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b99722ea48b7ea25e8e015e8341ae74624f72e5f21fc2abd45f3a93266de4c5d", size = 35292639 }, + { url = "https://files.pythonhosted.org/packages/56/46/2449e6e51e0d7c3575f289f6acb7f828938eaab8874dbccfeb0cd2b71a27/scipy-1.14.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5149e3fd2d686e42144a093b206aef01932a0059c2a33ddfa67f5f035bdfe13e", size = 40798288 }, + { url = "https://files.pythonhosted.org/packages/32/cd/9d86f7ed7f4497c9fd3e39f8918dd93d9f647ba80d7e34e4946c0c2d1a7c/scipy-1.14.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e4f5a7c49323533f9103d4dacf4e4f07078f360743dec7f7596949149efeec06", size = 42524647 }, + { url = "https://files.pythonhosted.org/packages/f5/1b/6ee032251bf4cdb0cc50059374e86a9f076308c1512b61c4e003e241efb7/scipy-1.14.1-cp313-cp313-win_amd64.whl", hash = "sha256:baff393942b550823bfce952bb62270ee17504d02a1801d7fd0719534dfb9c84", size = 44469524 }, +] + +[[package]] +name = "six" +version = "1.16.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/71/39/171f1c67cd00715f190ba0b100d606d440a28c93c7714febeca8b79af85e/six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926", size = 34041 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254", size = 11053 }, +] + +[[package]] +name = "sortedcontainers" +version = "2.4.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e8/c4/ba2f8066cceb6f23394729afe52f3bf7adec04bf9ed2c820b39e19299111/sortedcontainers-2.4.0.tar.gz", hash = "sha256:25caa5a06cc30b6b83d11423433f65d1f9d76c4c6a0c90e3379eaa43b9bfdb88", size = 30594 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl", hash = "sha256:a163dcaede0f1c021485e957a39245190e74249897e2ae4b2aa38595db237ee0", size = 29575 }, +] + +[[package]] +name = "sqlalchemy" +version = "2.0.36" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "greenlet", marker = "(python_full_version < '3.13' and platform_machine == 'AMD64') or (python_full_version < '3.13' and platform_machine == 'WIN32') or (python_full_version < '3.13' and platform_machine == 'aarch64') or (python_full_version < '3.13' and platform_machine == 'amd64') or (python_full_version < '3.13' and platform_machine == 'ppc64le') or (python_full_version < '3.13' and platform_machine == 'win32') or (python_full_version < '3.13' and platform_machine == 'x86_64')" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/50/65/9cbc9c4c3287bed2499e05033e207473504dc4df999ce49385fb1f8b058a/sqlalchemy-2.0.36.tar.gz", hash = "sha256:7f2767680b6d2398aea7082e45a774b2b0767b5c8d8ffb9c8b683088ea9b29c5", size = 9574485 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/db/72/14ab694b8b3f0e35ef5beb74a8fea2811aa791ba1611c44dc90cdf46af17/SQLAlchemy-2.0.36-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:59b8f3adb3971929a3e660337f5dacc5942c2cdb760afcabb2614ffbda9f9f72", size = 2092604 }, + { url = "https://files.pythonhosted.org/packages/1e/59/333fcbca58b79f5b8b61853d6137530198823392151fa8fd9425f367519e/SQLAlchemy-2.0.36-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:37350015056a553e442ff672c2d20e6f4b6d0b2495691fa239d8aa18bb3bc908", size = 2083796 }, + { url = "https://files.pythonhosted.org/packages/6c/a0/ec3c188d2b0c1bc742262e76408d44104598d7247c23f5b06bb97ee21bfa/SQLAlchemy-2.0.36-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8318f4776c85abc3f40ab185e388bee7a6ea99e7fa3a30686580b209eaa35c08", size = 3066165 }, + { url = "https://files.pythonhosted.org/packages/07/15/68ef91de5b8b7f80fb2d2b3b31ed42180c6227fe0a701aed9d01d34f98ec/SQLAlchemy-2.0.36-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c245b1fbade9c35e5bd3b64270ab49ce990369018289ecfde3f9c318411aaa07", size = 3074428 }, + { url = "https://files.pythonhosted.org/packages/e2/4c/9dfea5e63b87325eef6d9cdaac913459aa6a157a05a05ea6ff20004aee8e/SQLAlchemy-2.0.36-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:69f93723edbca7342624d09f6704e7126b152eaed3cdbb634cb657a54332a3c5", size = 3030477 }, + { url = "https://files.pythonhosted.org/packages/16/a5/fcfde8e74ea5f683b24add22463bfc21e431d4a5531c8a5b55bc6fbea164/SQLAlchemy-2.0.36-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:f9511d8dd4a6e9271d07d150fb2f81874a3c8c95e11ff9af3a2dfc35fe42ee44", size = 3055942 }, + { url = "https://files.pythonhosted.org/packages/3c/ee/c22c415a771d791ae99146d72ffdb20e43625acd24835ea7fc157436d59f/SQLAlchemy-2.0.36-cp310-cp310-win32.whl", hash = "sha256:c3f3631693003d8e585d4200730616b78fafd5a01ef8b698f6967da5c605b3fa", size = 2064960 }, + { url = "https://files.pythonhosted.org/packages/aa/af/ad9c25cadc79bd851bdb9d82b68af9bdb91ff05f56d0da2f8a654825974f/SQLAlchemy-2.0.36-cp310-cp310-win_amd64.whl", hash = "sha256:a86bfab2ef46d63300c0f06936bd6e6c0105faa11d509083ba8f2f9d237fb5b5", size = 2089078 }, + { url = "https://files.pythonhosted.org/packages/00/4e/5a67963fd7cbc1beb8bd2152e907419f4c940ef04600b10151a751fe9e06/SQLAlchemy-2.0.36-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:fd3a55deef00f689ce931d4d1b23fa9f04c880a48ee97af488fd215cf24e2a6c", size = 2093782 }, + { url = "https://files.pythonhosted.org/packages/b3/24/30e33b6389ebb5a17df2a4243b091bc709fb3dfc9a48c8d72f8e037c943d/SQLAlchemy-2.0.36-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4f5e9cd989b45b73bd359f693b935364f7e1f79486e29015813c338450aa5a71", size = 2084180 }, + { url = "https://files.pythonhosted.org/packages/10/1e/70e9ed2143a27065246be40f78637ad5160ea0f5fd32f8cab819a31ff54d/SQLAlchemy-2.0.36-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d0ddd9db6e59c44875211bc4c7953a9f6638b937b0a88ae6d09eb46cced54eff", size = 3202469 }, + { url = "https://files.pythonhosted.org/packages/b4/5f/95e0ed74093ac3c0db6acfa944d4d8ac6284ef5e1136b878a327ea1f975a/SQLAlchemy-2.0.36-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2519f3a5d0517fc159afab1015e54bb81b4406c278749779be57a569d8d1bb0d", size = 3202464 }, + { url = "https://files.pythonhosted.org/packages/91/95/2cf9b85a6bc2ee660e40594dffe04e777e7b8617fd0c6d77a0f782ea96c9/SQLAlchemy-2.0.36-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:59b1ee96617135f6e1d6f275bbe988f419c5178016f3d41d3c0abb0c819f75bb", size = 3139508 }, + { url = "https://files.pythonhosted.org/packages/92/ea/f0c01bc646456e4345c0fb5a3ddef457326285c2dc60435b0eb96b61bf31/SQLAlchemy-2.0.36-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:39769a115f730d683b0eb7b694db9789267bcd027326cccc3125e862eb03bfd8", size = 3159837 }, + { url = "https://files.pythonhosted.org/packages/a6/93/c8edbf153ee38fe529773240877bf1332ed95328aceef6254288f446994e/SQLAlchemy-2.0.36-cp311-cp311-win32.whl", hash = "sha256:66bffbad8d6271bb1cc2f9a4ea4f86f80fe5e2e3e501a5ae2a3dc6a76e604e6f", size = 2064529 }, + { url = "https://files.pythonhosted.org/packages/b1/03/d12b7c1d36fd80150c1d52e121614cf9377dac99e5497af8d8f5b2a8db64/SQLAlchemy-2.0.36-cp311-cp311-win_amd64.whl", hash = "sha256:23623166bfefe1487d81b698c423f8678e80df8b54614c2bf4b4cfcd7c711959", size = 2089874 }, + { url = "https://files.pythonhosted.org/packages/b8/bf/005dc47f0e57556e14512d5542f3f183b94fde46e15ff1588ec58ca89555/SQLAlchemy-2.0.36-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:f7b64e6ec3f02c35647be6b4851008b26cff592a95ecb13b6788a54ef80bbdd4", size = 2092378 }, + { url = "https://files.pythonhosted.org/packages/94/65/f109d5720779a08e6e324ec89a744f5f92c48bd8005edc814bf72fbb24e5/SQLAlchemy-2.0.36-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:46331b00096a6db1fdc052d55b101dbbfc99155a548e20a0e4a8e5e4d1362855", size = 2082778 }, + { url = "https://files.pythonhosted.org/packages/60/f6/d9aa8c49c44f9b8c9b9dada1f12fa78df3d4c42aa2de437164b83ee1123c/SQLAlchemy-2.0.36-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fdf3386a801ea5aba17c6410dd1dc8d39cf454ca2565541b5ac42a84e1e28f53", size = 3232191 }, + { url = "https://files.pythonhosted.org/packages/8a/ab/81d4514527c068670cb1d7ab62a81a185df53a7c379bd2a5636e83d09ede/SQLAlchemy-2.0.36-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ac9dfa18ff2a67b09b372d5db8743c27966abf0e5344c555d86cc7199f7ad83a", size = 3243044 }, + { url = "https://files.pythonhosted.org/packages/35/b4/f87c014ecf5167dc669199cafdb20a7358ff4b1d49ce3622cc48571f811c/SQLAlchemy-2.0.36-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:90812a8933df713fdf748b355527e3af257a11e415b613dd794512461eb8a686", size = 3178511 }, + { url = "https://files.pythonhosted.org/packages/ea/09/badfc9293bc3ccba6ede05e5f2b44a760aa47d84da1fc5a326e963e3d4d9/SQLAlchemy-2.0.36-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:1bc330d9d29c7f06f003ab10e1eaced295e87940405afe1b110f2eb93a233588", size = 3205147 }, + { url = "https://files.pythonhosted.org/packages/c8/60/70e681de02a13c4b27979b7b78da3058c49bacc9858c89ba672e030f03f2/SQLAlchemy-2.0.36-cp312-cp312-win32.whl", hash = "sha256:79d2e78abc26d871875b419e1fd3c0bca31a1cb0043277d0d850014599626c2e", size = 2062709 }, + { url = "https://files.pythonhosted.org/packages/b7/ed/f6cd9395e41bfe47dd253d74d2dfc3cab34980d4e20c8878cb1117306085/SQLAlchemy-2.0.36-cp312-cp312-win_amd64.whl", hash = "sha256:b544ad1935a8541d177cb402948b94e871067656b3a0b9e91dbec136b06a2ff5", size = 2088433 }, + { url = "https://files.pythonhosted.org/packages/78/5c/236398ae3678b3237726819b484f15f5c038a9549da01703a771f05a00d6/SQLAlchemy-2.0.36-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:b5cc79df7f4bc3d11e4b542596c03826063092611e481fcf1c9dfee3c94355ef", size = 2087651 }, + { url = "https://files.pythonhosted.org/packages/a8/14/55c47420c0d23fb67a35af8be4719199b81c59f3084c28d131a7767b0b0b/SQLAlchemy-2.0.36-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:3c01117dd36800f2ecaa238c65365b7b16497adc1522bf84906e5710ee9ba0e8", size = 2078132 }, + { url = "https://files.pythonhosted.org/packages/3d/97/1e843b36abff8c4a7aa2e37f9bea364f90d021754c2de94d792c2d91405b/SQLAlchemy-2.0.36-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9bc633f4ee4b4c46e7adcb3a9b5ec083bf1d9a97c1d3854b92749d935de40b9b", size = 3164559 }, + { url = "https://files.pythonhosted.org/packages/7b/c5/07f18a897b997f6d6b234fab2bf31dccf66d5d16a79fe329aefc95cd7461/SQLAlchemy-2.0.36-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9e46ed38affdfc95d2c958de328d037d87801cfcbea6d421000859e9789e61c2", size = 3177897 }, + { url = "https://files.pythonhosted.org/packages/b3/cd/e16f3cbefd82b5c40b33732da634ec67a5f33b587744c7ab41699789d492/SQLAlchemy-2.0.36-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:b2985c0b06e989c043f1dc09d4fe89e1616aadd35392aea2844f0458a989eacf", size = 3111289 }, + { url = "https://files.pythonhosted.org/packages/15/85/5b8a3b0bc29c9928aa62b5c91fcc8335f57c1de0a6343873b5f372e3672b/SQLAlchemy-2.0.36-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4a121d62ebe7d26fec9155f83f8be5189ef1405f5973ea4874a26fab9f1e262c", size = 3139491 }, + { url = "https://files.pythonhosted.org/packages/a1/95/81babb6089938680dfe2cd3f88cd3fd39cccd1543b7cb603b21ad881bff1/SQLAlchemy-2.0.36-cp313-cp313-win32.whl", hash = "sha256:0572f4bd6f94752167adfd7c1bed84f4b240ee6203a95e05d1e208d488d0d436", size = 2060439 }, + { url = "https://files.pythonhosted.org/packages/c1/ce/5f7428df55660d6879d0522adc73a3364970b5ef33ec17fa125c5dbcac1d/SQLAlchemy-2.0.36-cp313-cp313-win_amd64.whl", hash = "sha256:8c78ac40bde930c60e0f78b3cd184c580f89456dd87fc08f9e3ee3ce8765ce88", size = 2084574 }, + { url = "https://files.pythonhosted.org/packages/b8/49/21633706dd6feb14cd3f7935fc00b60870ea057686035e1a99ae6d9d9d53/SQLAlchemy-2.0.36-py3-none-any.whl", hash = "sha256:fddbe92b4760c6f5d48162aef14824add991aeda8ddadb3c31d56eb15ca69f8e", size = 1883787 }, +] + +[[package]] +name = "thd-json" +version = "0.1.0" +source = { git = "https://mygit.th-deg.de/roboct/definitions/json_schemas#b5e4c2ca23aa4a68e954ddaa3e19828bf8c872f6" } +dependencies = [ + { name = "hypothesis" }, + { name = "hypothesis-jsonschema" }, + { name = "json-schema" }, + { name = "jsonschema" }, +] + +[[package]] +name = "typing-extensions" +version = "4.12.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/df/db/f35a00659bc03fec321ba8bce9420de607a1d37f8342eee1863174c69557/typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8", size = 85321 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/26/9f/ad63fc0248c5379346306f8668cda6e2e2e9c95e01216d2b8ffd9ff037d0/typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d", size = 37438 }, +] + +[[package]] +name = "xraydb" +version = "4.5.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, + { name = "packaging" }, + { name = "platformdirs" }, + { name = "scipy" }, + { name = "sqlalchemy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a5/a7/ae5ca3409a9f3cabfa3e83b55d050dd94e19a66c75ff4051d20e56000ea6/xraydb-4.5.4.tar.gz", hash = "sha256:05d646fe232c6772ace6ded330064b6cfbfedb041eede05a4e760c8a05fd5b60", size = 3846500 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/20/0d/9a2cca8917880dd8fc78dd42629e9c7299f91501e7c027149475ede0fc36/xraydb-4.5.4-py3-none-any.whl", hash = "sha256:cf46f57738d545e94be2394da65341a6ef4742ea3b168fffce2e9b5f56c35508", size = 3856329 }, +] diff --git a/versioneer.py b/versioneer.py deleted file mode 100644 index 223db1d..0000000 --- a/versioneer.py +++ /dev/null @@ -1,2194 +0,0 @@ - -# Version: 0.26 - -"""The Versioneer - like a rocketeer, but for versions. - -The Versioneer -============== - -* like a rocketeer, but for versions! -* https://github.com/python-versioneer/python-versioneer -* Brian Warner -* License: Public Domain (Unlicense) -* Compatible with: Python 3.7, 3.8, 3.9, 3.10 and pypy3 -* [![Latest Version][pypi-image]][pypi-url] -* [![Build Status][travis-image]][travis-url] - -This is a tool for managing a recorded version number in setuptools-based -python projects. The goal is to remove the tedious and error-prone "update -the embedded version string" step from your release process. Making a new -release should be as easy as recording a new tag in your version-control -system, and maybe making new tarballs. - - -## Quick Install - -Versioneer provides two installation modes. The "classic" vendored mode installs -a copy of versioneer into your repository. The experimental build-time dependency mode -is intended to allow you to skip this step and simplify the process of upgrading. - -### Vendored mode - -* `pip install versioneer` to somewhere in your $PATH -* add a `[tool.versioneer]` section to your `pyproject.toml or a - `[versioneer]` section to your `setup.cfg` (see [Install](INSTALL.md)) -* run `versioneer install --vendor` in your source tree, commit the results -* verify version information with `python setup.py version` - -### Build-time dependency mode - -* `pip install versioneer` to somewhere in your $PATH -* add a `[tool.versioneer]` section to your `pyproject.toml or a - `[versioneer]` section to your `setup.cfg` (see [Install](INSTALL.md)) -* add `versioneer` to the `requires` key of the `build-system` table in - `pyproject.toml`: - ```toml - [build-system] - requires = ["setuptools", "versioneer"] - build-backend = "setuptools.build_meta" - ``` -* run `versioneer install --no-vendor` in your source tree, commit the results -* verify version information with `python setup.py version` - -## Version Identifiers - -Source trees come from a variety of places: - -* a version-control system checkout (mostly used by developers) -* a nightly tarball, produced by build automation -* a snapshot tarball, produced by a web-based VCS browser, like github's - "tarball from tag" feature -* a release tarball, produced by "setup.py sdist", distributed through PyPI - -Within each source tree, the version identifier (either a string or a number, -this tool is format-agnostic) can come from a variety of places: - -* ask the VCS tool itself, e.g. "git describe" (for checkouts), which knows - about recent "tags" and an absolute revision-id -* the name of the directory into which the tarball was unpacked -* an expanded VCS keyword ($Id$, etc) -* a `_version.py` created by some earlier build step - -For released software, the version identifier is closely related to a VCS -tag. Some projects use tag names that include more than just the version -string (e.g. "myproject-1.2" instead of just "1.2"), in which case the tool -needs to strip the tag prefix to extract the version identifier. For -unreleased software (between tags), the version identifier should provide -enough information to help developers recreate the same tree, while also -giving them an idea of roughly how old the tree is (after version 1.2, before -version 1.3). Many VCS systems can report a description that captures this, -for example `git describe --tags --dirty --always` reports things like -"0.7-1-g574ab98-dirty" to indicate that the checkout is one revision past the -0.7 tag, has a unique revision id of "574ab98", and is "dirty" (it has -uncommitted changes). - -The version identifier is used for multiple purposes: - -* to allow the module to self-identify its version: `myproject.__version__` -* to choose a name and prefix for a 'setup.py sdist' tarball - -## Theory of Operation - -Versioneer works by adding a special `_version.py` file into your source -tree, where your `__init__.py` can import it. This `_version.py` knows how to -dynamically ask the VCS tool for version information at import time. - -`_version.py` also contains `$Revision$` markers, and the installation -process marks `_version.py` to have this marker rewritten with a tag name -during the `git archive` command. As a result, generated tarballs will -contain enough information to get the proper version. - -To allow `setup.py` to compute a version too, a `versioneer.py` is added to -the top level of your source tree, next to `setup.py` and the `setup.cfg` -that configures it. This overrides several distutils/setuptools commands to -compute the version when invoked, and changes `setup.py build` and `setup.py -sdist` to replace `_version.py` with a small static file that contains just -the generated version data. - -## Installation - -See [INSTALL.md](./INSTALL.md) for detailed installation instructions. - -## Version-String Flavors - -Code which uses Versioneer can learn about its version string at runtime by -importing `_version` from your main `__init__.py` file and running the -`get_versions()` function. From the "outside" (e.g. in `setup.py`), you can -import the top-level `versioneer.py` and run `get_versions()`. - -Both functions return a dictionary with different flavors of version -information: - -* `['version']`: A condensed version string, rendered using the selected - style. This is the most commonly used value for the project's version - string. The default "pep440" style yields strings like `0.11`, - `0.11+2.g1076c97`, or `0.11+2.g1076c97.dirty`. See the "Styles" section - below for alternative styles. - -* `['full-revisionid']`: detailed revision identifier. For Git, this is the - full SHA1 commit id, e.g. "1076c978a8d3cfc70f408fe5974aa6c092c949ac". - -* `['date']`: Date and time of the latest `HEAD` commit. For Git, it is the - commit date in ISO 8601 format. This will be None if the date is not - available. - -* `['dirty']`: a boolean, True if the tree has uncommitted changes. Note that - this is only accurate if run in a VCS checkout, otherwise it is likely to - be False or None - -* `['error']`: if the version string could not be computed, this will be set - to a string describing the problem, otherwise it will be None. It may be - useful to throw an exception in setup.py if this is set, to avoid e.g. - creating tarballs with a version string of "unknown". - -Some variants are more useful than others. Including `full-revisionid` in a -bug report should allow developers to reconstruct the exact code being tested -(or indicate the presence of local changes that should be shared with the -developers). `version` is suitable for display in an "about" box or a CLI -`--version` output: it can be easily compared against release notes and lists -of bugs fixed in various releases. - -The installer adds the following text to your `__init__.py` to place a basic -version in `YOURPROJECT.__version__`: - - from ._version import get_versions - __version__ = get_versions()['version'] - del get_versions - -## Styles - -The setup.cfg `style=` configuration controls how the VCS information is -rendered into a version string. - -The default style, "pep440", produces a PEP440-compliant string, equal to the -un-prefixed tag name for actual releases, and containing an additional "local -version" section with more detail for in-between builds. For Git, this is -TAG[+DISTANCE.gHEX[.dirty]] , using information from `git describe --tags ---dirty --always`. For example "0.11+2.g1076c97.dirty" indicates that the -tree is like the "1076c97" commit but has uncommitted changes (".dirty"), and -that this commit is two revisions ("+2") beyond the "0.11" tag. For released -software (exactly equal to a known tag), the identifier will only contain the -stripped tag, e.g. "0.11". - -Other styles are available. See [details.md](details.md) in the Versioneer -source tree for descriptions. - -## Debugging - -Versioneer tries to avoid fatal errors: if something goes wrong, it will tend -to return a version of "0+unknown". To investigate the problem, run `setup.py -version`, which will run the version-lookup code in a verbose mode, and will -display the full contents of `get_versions()` (including the `error` string, -which may help identify what went wrong). - -## Known Limitations - -Some situations are known to cause problems for Versioneer. This details the -most significant ones. More can be found on Github -[issues page](https://github.com/python-versioneer/python-versioneer/issues). - -### Subprojects - -Versioneer has limited support for source trees in which `setup.py` is not in -the root directory (e.g. `setup.py` and `.git/` are *not* siblings). The are -two common reasons why `setup.py` might not be in the root: - -* Source trees which contain multiple subprojects, such as - [Buildbot](https://github.com/buildbot/buildbot), which contains both - "master" and "slave" subprojects, each with their own `setup.py`, - `setup.cfg`, and `tox.ini`. Projects like these produce multiple PyPI - distributions (and upload multiple independently-installable tarballs). -* Source trees whose main purpose is to contain a C library, but which also - provide bindings to Python (and perhaps other languages) in subdirectories. - -Versioneer will look for `.git` in parent directories, and most operations -should get the right version string. However `pip` and `setuptools` have bugs -and implementation details which frequently cause `pip install .` from a -subproject directory to fail to find a correct version string (so it usually -defaults to `0+unknown`). - -`pip install --editable .` should work correctly. `setup.py install` might -work too. - -Pip-8.1.1 is known to have this problem, but hopefully it will get fixed in -some later version. - -[Bug #38](https://github.com/python-versioneer/python-versioneer/issues/38) is tracking -this issue. The discussion in -[PR #61](https://github.com/python-versioneer/python-versioneer/pull/61) describes the -issue from the Versioneer side in more detail. -[pip PR#3176](https://github.com/pypa/pip/pull/3176) and -[pip PR#3615](https://github.com/pypa/pip/pull/3615) contain work to improve -pip to let Versioneer work correctly. - -Versioneer-0.16 and earlier only looked for a `.git` directory next to the -`setup.cfg`, so subprojects were completely unsupported with those releases. - -### Editable installs with setuptools <= 18.5 - -`setup.py develop` and `pip install --editable .` allow you to install a -project into a virtualenv once, then continue editing the source code (and -test) without re-installing after every change. - -"Entry-point scripts" (`setup(entry_points={"console_scripts": ..})`) are a -convenient way to specify executable scripts that should be installed along -with the python package. - -These both work as expected when using modern setuptools. When using -setuptools-18.5 or earlier, however, certain operations will cause -`pkg_resources.DistributionNotFound` errors when running the entrypoint -script, which must be resolved by re-installing the package. This happens -when the install happens with one version, then the egg_info data is -regenerated while a different version is checked out. Many setup.py commands -cause egg_info to be rebuilt (including `sdist`, `wheel`, and installing into -a different virtualenv), so this can be surprising. - -[Bug #83](https://github.com/python-versioneer/python-versioneer/issues/83) describes -this one, but upgrading to a newer version of setuptools should probably -resolve it. - - -## Updating Versioneer - -To upgrade your project to a new release of Versioneer, do the following: - -* install the new Versioneer (`pip install -U versioneer` or equivalent) -* edit `setup.cfg` and `pyproject.toml`, if necessary, - to include any new configuration settings indicated by the release notes. - See [UPGRADING](./UPGRADING.md) for details. -* re-run `versioneer install --[no-]vendor` in your source tree, to replace - `SRC/_version.py` -* commit any changed files - -## Future Directions - -This tool is designed to make it easily extended to other version-control -systems: all VCS-specific components are in separate directories like -src/git/ . The top-level `versioneer.py` script is assembled from these -components by running make-versioneer.py . In the future, make-versioneer.py -will take a VCS name as an argument, and will construct a version of -`versioneer.py` that is specific to the given VCS. It might also take the -configuration arguments that are currently provided manually during -installation by editing setup.py . Alternatively, it might go the other -direction and include code from all supported VCS systems, reducing the -number of intermediate scripts. - -## Similar projects - -* [setuptools_scm](https://github.com/pypa/setuptools_scm/) - a non-vendored build-time - dependency -* [minver](https://github.com/jbweston/miniver) - a lightweight reimplementation of - versioneer -* [versioningit](https://github.com/jwodder/versioningit) - a PEP 518-based setuptools - plugin - -## License - -To make Versioneer easier to embed, all its code is dedicated to the public -domain. The `_version.py` that it creates is also in the public domain. -Specifically, both are released under the Creative Commons "Public Domain -Dedication" license (CC0-1.0), as described in -https://creativecommons.org/publicdomain/zero/1.0/ . - -[pypi-image]: https://img.shields.io/pypi/v/versioneer.svg -[pypi-url]: https://pypi.python.org/pypi/versioneer/ -[travis-image]: -https://img.shields.io/travis/com/python-versioneer/python-versioneer.svg -[travis-url]: https://travis-ci.com/github/python-versioneer/python-versioneer - -""" -# pylint:disable=invalid-name,import-outside-toplevel,missing-function-docstring -# pylint:disable=missing-class-docstring,too-many-branches,too-many-statements -# pylint:disable=raise-missing-from,too-many-lines,too-many-locals,import-error -# pylint:disable=too-few-public-methods,redefined-outer-name,consider-using-with -# pylint:disable=attribute-defined-outside-init,too-many-arguments - -import configparser -import errno -import json -import os -import re -import subprocess -import sys -from pathlib import Path -from typing import Callable, Dict -import functools -try: - import tomli - have_tomli = True -except ImportError: - have_tomli = False - - -class VersioneerConfig: - """Container for Versioneer configuration parameters.""" - - -def get_root(): - """Get the project root directory. - - We require that all commands are run from the project root, i.e. the - directory that contains setup.py, setup.cfg, and versioneer.py . - """ - root = os.path.realpath(os.path.abspath(os.getcwd())) - setup_py = os.path.join(root, "setup.py") - versioneer_py = os.path.join(root, "versioneer.py") - if not (os.path.exists(setup_py) or os.path.exists(versioneer_py)): - # allow 'python path/to/setup.py COMMAND' - root = os.path.dirname(os.path.realpath(os.path.abspath(sys.argv[0]))) - setup_py = os.path.join(root, "setup.py") - versioneer_py = os.path.join(root, "versioneer.py") - if not (os.path.exists(setup_py) or os.path.exists(versioneer_py)): - err = ("Versioneer was unable to run the project root directory. " - "Versioneer requires setup.py to be executed from " - "its immediate directory (like 'python setup.py COMMAND'), " - "or in a way that lets it use sys.argv[0] to find the root " - "(like 'python path/to/setup.py COMMAND').") - raise VersioneerBadRootError(err) - try: - # Certain runtime workflows (setup.py install/develop in a setuptools - # tree) execute all dependencies in a single python process, so - # "versioneer" may be imported multiple times, and python's shared - # module-import table will cache the first one. So we can't use - # os.path.dirname(__file__), as that will find whichever - # versioneer.py was first imported, even in later projects. - my_path = os.path.realpath(os.path.abspath(__file__)) - me_dir = os.path.normcase(os.path.splitext(my_path)[0]) - vsr_dir = os.path.normcase(os.path.splitext(versioneer_py)[0]) - if me_dir != vsr_dir and "VERSIONEER_PEP518" not in globals(): - print("Warning: build in %s is using versioneer.py from %s" - % (os.path.dirname(my_path), versioneer_py)) - except NameError: - pass - return root - - -def get_config_from_root(root): - """Read the project setup.cfg file to determine Versioneer config.""" - # This might raise OSError (if setup.cfg is missing), or - # configparser.NoSectionError (if it lacks a [versioneer] section), or - # configparser.NoOptionError (if it lacks "VCS="). See the docstring at - # the top of versioneer.py for instructions on writing your setup.cfg . - root = Path(root) - pyproject_toml = root / "pyproject.toml" - setup_cfg = root / "setup.cfg" - section = None - if pyproject_toml.exists() and have_tomli: - try: - with open(pyproject_toml, 'rb') as fobj: - pp = tomli.load(fobj) - section = pp['tool']['versioneer'] - except (tomli.TOMLDecodeError, KeyError): - pass - if not section: - parser = configparser.ConfigParser() - with open(setup_cfg) as cfg_file: - parser.read_file(cfg_file) - parser.get("versioneer", "VCS") # raise error if missing - - section = parser["versioneer"] - - cfg = VersioneerConfig() - cfg.VCS = section['VCS'] - cfg.style = section.get("style", "") - cfg.versionfile_source = section.get("versionfile_source") - cfg.versionfile_build = section.get("versionfile_build") - cfg.tag_prefix = section.get("tag_prefix") - if cfg.tag_prefix in ("''", '""', None): - cfg.tag_prefix = "" - cfg.parentdir_prefix = section.get("parentdir_prefix") - cfg.verbose = section.get("verbose") - return cfg - - -class NotThisMethod(Exception): - """Exception raised if a method is not valid for the current scenario.""" - - -# these dictionaries contain VCS-specific tools -LONG_VERSION_PY: Dict[str, str] = {} -HANDLERS: Dict[str, Dict[str, Callable]] = {} - - -def register_vcs_handler(vcs, method): # decorator - """Create decorator to mark a method as the handler of a VCS.""" - def decorate(f): - """Store f in HANDLERS[vcs][method].""" - HANDLERS.setdefault(vcs, {})[method] = f - return f - return decorate - - -def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, - env=None): - """Call the given command(s).""" - assert isinstance(commands, list) - process = None - - popen_kwargs = {} - if sys.platform == "win32": - # This hides the console window if pythonw.exe is used - startupinfo = subprocess.STARTUPINFO() - startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW - popen_kwargs["startupinfo"] = startupinfo - - for command in commands: - try: - dispcmd = str([command] + args) - # remember shell=False, so use git.cmd on windows, not just git - process = subprocess.Popen([command] + args, cwd=cwd, env=env, - stdout=subprocess.PIPE, - stderr=(subprocess.PIPE if hide_stderr - else None), **popen_kwargs) - break - except OSError: - e = sys.exc_info()[1] - if e.errno == errno.ENOENT: - continue - if verbose: - print("unable to run %s" % dispcmd) - print(e) - return None, None - else: - if verbose: - print("unable to find command, tried %s" % (commands,)) - return None, None - stdout = process.communicate()[0].strip().decode() - if process.returncode != 0: - if verbose: - print("unable to run %s (error)" % dispcmd) - print("stdout was %s" % stdout) - return None, process.returncode - return stdout, process.returncode - - -LONG_VERSION_PY['git'] = r''' -# This file helps to compute a version number in source trees obtained from -# git-archive tarball (such as those provided by githubs download-from-tag -# feature). Distribution tarballs (built by setup.py sdist) and build -# directories (produced by setup.py build) will contain a much shorter file -# that just contains the computed version number. - -# This file is released into the public domain. -# Generated by versioneer-0.26 -# https://github.com/python-versioneer/python-versioneer - -"""Git implementation of _version.py.""" - -import errno -import os -import re -import subprocess -import sys -from typing import Callable, Dict -import functools - - -def get_keywords(): - """Get the keywords needed to look up the version information.""" - # these strings will be replaced by git during git-archive. - # setup.py/versioneer.py will grep for the variable names, so they must - # each be defined on a line of their own. _version.py will just call - # get_keywords(). - git_refnames = "%(DOLLAR)sFormat:%%d%(DOLLAR)s" - git_full = "%(DOLLAR)sFormat:%%H%(DOLLAR)s" - git_date = "%(DOLLAR)sFormat:%%ci%(DOLLAR)s" - keywords = {"refnames": git_refnames, "full": git_full, "date": git_date} - return keywords - - -class VersioneerConfig: - """Container for Versioneer configuration parameters.""" - - -def get_config(): - """Create, populate and return the VersioneerConfig() object.""" - # these strings are filled in when 'setup.py versioneer' creates - # _version.py - cfg = VersioneerConfig() - cfg.VCS = "git" - cfg.style = "%(STYLE)s" - cfg.tag_prefix = "%(TAG_PREFIX)s" - cfg.parentdir_prefix = "%(PARENTDIR_PREFIX)s" - cfg.versionfile_source = "%(VERSIONFILE_SOURCE)s" - cfg.verbose = False - return cfg - - -class NotThisMethod(Exception): - """Exception raised if a method is not valid for the current scenario.""" - - -LONG_VERSION_PY: Dict[str, str] = {} -HANDLERS: Dict[str, Dict[str, Callable]] = {} - - -def register_vcs_handler(vcs, method): # decorator - """Create decorator to mark a method as the handler of a VCS.""" - def decorate(f): - """Store f in HANDLERS[vcs][method].""" - if vcs not in HANDLERS: - HANDLERS[vcs] = {} - HANDLERS[vcs][method] = f - return f - return decorate - - -def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, - env=None): - """Call the given command(s).""" - assert isinstance(commands, list) - process = None - - popen_kwargs = {} - if sys.platform == "win32": - # This hides the console window if pythonw.exe is used - startupinfo = subprocess.STARTUPINFO() - startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW - popen_kwargs["startupinfo"] = startupinfo - - for command in commands: - try: - dispcmd = str([command] + args) - # remember shell=False, so use git.cmd on windows, not just git - process = subprocess.Popen([command] + args, cwd=cwd, env=env, - stdout=subprocess.PIPE, - stderr=(subprocess.PIPE if hide_stderr - else None), **popen_kwargs) - break - except OSError: - e = sys.exc_info()[1] - if e.errno == errno.ENOENT: - continue - if verbose: - print("unable to run %%s" %% dispcmd) - print(e) - return None, None - else: - if verbose: - print("unable to find command, tried %%s" %% (commands,)) - return None, None - stdout = process.communicate()[0].strip().decode() - if process.returncode != 0: - if verbose: - print("unable to run %%s (error)" %% dispcmd) - print("stdout was %%s" %% stdout) - return None, process.returncode - return stdout, process.returncode - - -def versions_from_parentdir(parentdir_prefix, root, verbose): - """Try to determine the version from the parent directory name. - - Source tarballs conventionally unpack into a directory that includes both - the project name and a version string. We will also support searching up - two directory levels for an appropriately named parent directory - """ - rootdirs = [] - - for _ in range(3): - dirname = os.path.basename(root) - if dirname.startswith(parentdir_prefix): - return {"version": dirname[len(parentdir_prefix):], - "full-revisionid": None, - "dirty": False, "error": None, "date": None} - rootdirs.append(root) - root = os.path.dirname(root) # up a level - - if verbose: - print("Tried directories %%s but none started with prefix %%s" %% - (str(rootdirs), parentdir_prefix)) - raise NotThisMethod("rootdir doesn't start with parentdir_prefix") - - -@register_vcs_handler("git", "get_keywords") -def git_get_keywords(versionfile_abs): - """Extract version information from the given file.""" - # the code embedded in _version.py can just fetch the value of these - # keywords. When used from setup.py, we don't want to import _version.py, - # so we do it with a regexp instead. This function is not used from - # _version.py. - keywords = {} - try: - with open(versionfile_abs, "r") as fobj: - for line in fobj: - if line.strip().startswith("git_refnames ="): - mo = re.search(r'=\s*"(.*)"', line) - if mo: - keywords["refnames"] = mo.group(1) - if line.strip().startswith("git_full ="): - mo = re.search(r'=\s*"(.*)"', line) - if mo: - keywords["full"] = mo.group(1) - if line.strip().startswith("git_date ="): - mo = re.search(r'=\s*"(.*)"', line) - if mo: - keywords["date"] = mo.group(1) - except OSError: - pass - return keywords - - -@register_vcs_handler("git", "keywords") -def git_versions_from_keywords(keywords, tag_prefix, verbose): - """Get version information from git keywords.""" - if "refnames" not in keywords: - raise NotThisMethod("Short version file found") - date = keywords.get("date") - if date is not None: - # Use only the last line. Previous lines may contain GPG signature - # information. - date = date.splitlines()[-1] - - # git-2.2.0 added "%%cI", which expands to an ISO-8601 -compliant - # datestamp. However we prefer "%%ci" (which expands to an "ISO-8601 - # -like" string, which we must then edit to make compliant), because - # it's been around since git-1.5.3, and it's too difficult to - # discover which version we're using, or to work around using an - # older one. - date = date.strip().replace(" ", "T", 1).replace(" ", "", 1) - refnames = keywords["refnames"].strip() - if refnames.startswith("$Format"): - if verbose: - print("keywords are unexpanded, not using") - raise NotThisMethod("unexpanded keywords, not a git-archive tarball") - refs = {r.strip() for r in refnames.strip("()").split(",")} - # starting in git-1.8.3, tags are listed as "tag: foo-1.0" instead of - # just "foo-1.0". If we see a "tag: " prefix, prefer those. - TAG = "tag: " - tags = {r[len(TAG):] for r in refs if r.startswith(TAG)} - if not tags: - # Either we're using git < 1.8.3, or there really are no tags. We use - # a heuristic: assume all version tags have a digit. The old git %%d - # expansion behaves like git log --decorate=short and strips out the - # refs/heads/ and refs/tags/ prefixes that would let us distinguish - # between branches and tags. By ignoring refnames without digits, we - # filter out many common branch names like "release" and - # "stabilization", as well as "HEAD" and "master". - tags = {r for r in refs if re.search(r'\d', r)} - if verbose: - print("discarding '%%s', no digits" %% ",".join(refs - tags)) - if verbose: - print("likely tags: %%s" %% ",".join(sorted(tags))) - for ref in sorted(tags): - # sorting will prefer e.g. "2.0" over "2.0rc1" - if ref.startswith(tag_prefix): - r = ref[len(tag_prefix):] - # Filter out refs that exactly match prefix or that don't start - # with a number once the prefix is stripped (mostly a concern - # when prefix is '') - if not re.match(r'\d', r): - continue - if verbose: - print("picking %%s" %% r) - return {"version": r, - "full-revisionid": keywords["full"].strip(), - "dirty": False, "error": None, - "date": date} - # no suitable tags, so version is "0+unknown", but full hex is still there - if verbose: - print("no suitable tags, using unknown + full revision id") - return {"version": "0+unknown", - "full-revisionid": keywords["full"].strip(), - "dirty": False, "error": "no suitable tags", "date": None} - - -@register_vcs_handler("git", "pieces_from_vcs") -def git_pieces_from_vcs(tag_prefix, root, verbose, runner=run_command): - """Get version from 'git describe' in the root of the source tree. - - This only gets called if the git-archive 'subst' keywords were *not* - expanded, and _version.py hasn't already been rewritten with a short - version string, meaning we're inside a checked out source tree. - """ - GITS = ["git"] - if sys.platform == "win32": - GITS = ["git.cmd", "git.exe"] - - # GIT_DIR can interfere with correct operation of Versioneer. - # It may be intended to be passed to the Versioneer-versioned project, - # but that should not change where we get our version from. - env = os.environ.copy() - env.pop("GIT_DIR", None) - runner = functools.partial(runner, env=env) - - _, rc = runner(GITS, ["rev-parse", "--git-dir"], cwd=root, - hide_stderr=not verbose) - if rc != 0: - if verbose: - print("Directory %%s not under git control" %% root) - raise NotThisMethod("'git rev-parse --git-dir' returned error") - - # if there is a tag matching tag_prefix, this yields TAG-NUM-gHEX[-dirty] - # if there isn't one, this yields HEX[-dirty] (no NUM) - describe_out, rc = runner(GITS, [ - "describe", "--tags", "--dirty", "--always", "--long", - "--match", f"{tag_prefix}[[:digit:]]*" - ], cwd=root) - # --long was added in git-1.5.5 - if describe_out is None: - raise NotThisMethod("'git describe' failed") - describe_out = describe_out.strip() - full_out, rc = runner(GITS, ["rev-parse", "HEAD"], cwd=root) - if full_out is None: - raise NotThisMethod("'git rev-parse' failed") - full_out = full_out.strip() - - pieces = {} - pieces["long"] = full_out - pieces["short"] = full_out[:7] # maybe improved later - pieces["error"] = None - - branch_name, rc = runner(GITS, ["rev-parse", "--abbrev-ref", "HEAD"], - cwd=root) - # --abbrev-ref was added in git-1.6.3 - if rc != 0 or branch_name is None: - raise NotThisMethod("'git rev-parse --abbrev-ref' returned error") - branch_name = branch_name.strip() - - if branch_name == "HEAD": - # If we aren't exactly on a branch, pick a branch which represents - # the current commit. If all else fails, we are on a branchless - # commit. - branches, rc = runner(GITS, ["branch", "--contains"], cwd=root) - # --contains was added in git-1.5.4 - if rc != 0 or branches is None: - raise NotThisMethod("'git branch --contains' returned error") - branches = branches.split("\n") - - # Remove the first line if we're running detached - if "(" in branches[0]: - branches.pop(0) - - # Strip off the leading "* " from the list of branches. - branches = [branch[2:] for branch in branches] - if "master" in branches: - branch_name = "master" - elif not branches: - branch_name = None - else: - # Pick the first branch that is returned. Good or bad. - branch_name = branches[0] - - pieces["branch"] = branch_name - - # parse describe_out. It will be like TAG-NUM-gHEX[-dirty] or HEX[-dirty] - # TAG might have hyphens. - git_describe = describe_out - - # look for -dirty suffix - dirty = git_describe.endswith("-dirty") - pieces["dirty"] = dirty - if dirty: - git_describe = git_describe[:git_describe.rindex("-dirty")] - - # now we have TAG-NUM-gHEX or HEX - - if "-" in git_describe: - # TAG-NUM-gHEX - mo = re.search(r'^(.+)-(\d+)-g([0-9a-f]+)$', git_describe) - if not mo: - # unparsable. Maybe git-describe is misbehaving? - pieces["error"] = ("unable to parse git-describe output: '%%s'" - %% describe_out) - return pieces - - # tag - full_tag = mo.group(1) - if not full_tag.startswith(tag_prefix): - if verbose: - fmt = "tag '%%s' doesn't start with prefix '%%s'" - print(fmt %% (full_tag, tag_prefix)) - pieces["error"] = ("tag '%%s' doesn't start with prefix '%%s'" - %% (full_tag, tag_prefix)) - return pieces - pieces["closest-tag"] = full_tag[len(tag_prefix):] - - # distance: number of commits since tag - pieces["distance"] = int(mo.group(2)) - - # commit: short hex revision ID - pieces["short"] = mo.group(3) - - else: - # HEX: no tags - pieces["closest-tag"] = None - out, rc = runner(GITS, ["rev-list", "HEAD", "--left-right"], cwd=root) - pieces["distance"] = len(out.split()) # total number of commits - - # commit date: see ISO-8601 comment in git_versions_from_keywords() - date = runner(GITS, ["show", "-s", "--format=%%ci", "HEAD"], cwd=root)[0].strip() - # Use only the last line. Previous lines may contain GPG signature - # information. - date = date.splitlines()[-1] - pieces["date"] = date.strip().replace(" ", "T", 1).replace(" ", "", 1) - - return pieces - - -def plus_or_dot(pieces): - """Return a + if we don't already have one, else return a .""" - if "+" in pieces.get("closest-tag", ""): - return "." - return "+" - - -def render_pep440(pieces): - """Build up version string, with post-release "local version identifier". - - Our goal: TAG[+DISTANCE.gHEX[.dirty]] . Note that if you - get a tagged build and then dirty it, you'll get TAG+0.gHEX.dirty - - Exceptions: - 1: no tags. git_describe was just HEX. 0+untagged.DISTANCE.gHEX[.dirty] - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - if pieces["distance"] or pieces["dirty"]: - rendered += plus_or_dot(pieces) - rendered += "%%d.g%%s" %% (pieces["distance"], pieces["short"]) - if pieces["dirty"]: - rendered += ".dirty" - else: - # exception #1 - rendered = "0+untagged.%%d.g%%s" %% (pieces["distance"], - pieces["short"]) - if pieces["dirty"]: - rendered += ".dirty" - return rendered - - -def render_pep440_branch(pieces): - """TAG[[.dev0]+DISTANCE.gHEX[.dirty]] . - - The ".dev0" means not master branch. Note that .dev0 sorts backwards - (a feature branch will appear "older" than the master branch). - - Exceptions: - 1: no tags. 0[.dev0]+untagged.DISTANCE.gHEX[.dirty] - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - if pieces["distance"] or pieces["dirty"]: - if pieces["branch"] != "master": - rendered += ".dev0" - rendered += plus_or_dot(pieces) - rendered += "%%d.g%%s" %% (pieces["distance"], pieces["short"]) - if pieces["dirty"]: - rendered += ".dirty" - else: - # exception #1 - rendered = "0" - if pieces["branch"] != "master": - rendered += ".dev0" - rendered += "+untagged.%%d.g%%s" %% (pieces["distance"], - pieces["short"]) - if pieces["dirty"]: - rendered += ".dirty" - return rendered - - -def pep440_split_post(ver): - """Split pep440 version string at the post-release segment. - - Returns the release segments before the post-release and the - post-release version number (or -1 if no post-release segment is present). - """ - vc = str.split(ver, ".post") - return vc[0], int(vc[1] or 0) if len(vc) == 2 else None - - -def render_pep440_pre(pieces): - """TAG[.postN.devDISTANCE] -- No -dirty. - - Exceptions: - 1: no tags. 0.post0.devDISTANCE - """ - if pieces["closest-tag"]: - if pieces["distance"]: - # update the post release segment - tag_version, post_version = pep440_split_post(pieces["closest-tag"]) - rendered = tag_version - if post_version is not None: - rendered += ".post%%d.dev%%d" %% (post_version + 1, pieces["distance"]) - else: - rendered += ".post0.dev%%d" %% (pieces["distance"]) - else: - # no commits, use the tag as the version - rendered = pieces["closest-tag"] - else: - # exception #1 - rendered = "0.post0.dev%%d" %% pieces["distance"] - return rendered - - -def render_pep440_post(pieces): - """TAG[.postDISTANCE[.dev0]+gHEX] . - - The ".dev0" means dirty. Note that .dev0 sorts backwards - (a dirty tree will appear "older" than the corresponding clean one), - but you shouldn't be releasing software with -dirty anyways. - - Exceptions: - 1: no tags. 0.postDISTANCE[.dev0] - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - if pieces["distance"] or pieces["dirty"]: - rendered += ".post%%d" %% pieces["distance"] - if pieces["dirty"]: - rendered += ".dev0" - rendered += plus_or_dot(pieces) - rendered += "g%%s" %% pieces["short"] - else: - # exception #1 - rendered = "0.post%%d" %% pieces["distance"] - if pieces["dirty"]: - rendered += ".dev0" - rendered += "+g%%s" %% pieces["short"] - return rendered - - -def render_pep440_post_branch(pieces): - """TAG[.postDISTANCE[.dev0]+gHEX[.dirty]] . - - The ".dev0" means not master branch. - - Exceptions: - 1: no tags. 0.postDISTANCE[.dev0]+gHEX[.dirty] - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - if pieces["distance"] or pieces["dirty"]: - rendered += ".post%%d" %% pieces["distance"] - if pieces["branch"] != "master": - rendered += ".dev0" - rendered += plus_or_dot(pieces) - rendered += "g%%s" %% pieces["short"] - if pieces["dirty"]: - rendered += ".dirty" - else: - # exception #1 - rendered = "0.post%%d" %% pieces["distance"] - if pieces["branch"] != "master": - rendered += ".dev0" - rendered += "+g%%s" %% pieces["short"] - if pieces["dirty"]: - rendered += ".dirty" - return rendered - - -def render_pep440_old(pieces): - """TAG[.postDISTANCE[.dev0]] . - - The ".dev0" means dirty. - - Exceptions: - 1: no tags. 0.postDISTANCE[.dev0] - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - if pieces["distance"] or pieces["dirty"]: - rendered += ".post%%d" %% pieces["distance"] - if pieces["dirty"]: - rendered += ".dev0" - else: - # exception #1 - rendered = "0.post%%d" %% pieces["distance"] - if pieces["dirty"]: - rendered += ".dev0" - return rendered - - -def render_git_describe(pieces): - """TAG[-DISTANCE-gHEX][-dirty]. - - Like 'git describe --tags --dirty --always'. - - Exceptions: - 1: no tags. HEX[-dirty] (note: no 'g' prefix) - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - if pieces["distance"]: - rendered += "-%%d-g%%s" %% (pieces["distance"], pieces["short"]) - else: - # exception #1 - rendered = pieces["short"] - if pieces["dirty"]: - rendered += "-dirty" - return rendered - - -def render_git_describe_long(pieces): - """TAG-DISTANCE-gHEX[-dirty]. - - Like 'git describe --tags --dirty --always -long'. - The distance/hash is unconditional. - - Exceptions: - 1: no tags. HEX[-dirty] (note: no 'g' prefix) - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - rendered += "-%%d-g%%s" %% (pieces["distance"], pieces["short"]) - else: - # exception #1 - rendered = pieces["short"] - if pieces["dirty"]: - rendered += "-dirty" - return rendered - - -def render(pieces, style): - """Render the given version pieces into the requested style.""" - if pieces["error"]: - return {"version": "unknown", - "full-revisionid": pieces.get("long"), - "dirty": None, - "error": pieces["error"], - "date": None} - - if not style or style == "default": - style = "pep440" # the default - - if style == "pep440": - rendered = render_pep440(pieces) - elif style == "pep440-branch": - rendered = render_pep440_branch(pieces) - elif style == "pep440-pre": - rendered = render_pep440_pre(pieces) - elif style == "pep440-post": - rendered = render_pep440_post(pieces) - elif style == "pep440-post-branch": - rendered = render_pep440_post_branch(pieces) - elif style == "pep440-old": - rendered = render_pep440_old(pieces) - elif style == "git-describe": - rendered = render_git_describe(pieces) - elif style == "git-describe-long": - rendered = render_git_describe_long(pieces) - else: - raise ValueError("unknown style '%%s'" %% style) - - return {"version": rendered, "full-revisionid": pieces["long"], - "dirty": pieces["dirty"], "error": None, - "date": pieces.get("date")} - - -def get_versions(): - """Get version information or return default if unable to do so.""" - # I am in _version.py, which lives at ROOT/VERSIONFILE_SOURCE. If we have - # __file__, we can work backwards from there to the root. Some - # py2exe/bbfreeze/non-CPython implementations don't do __file__, in which - # case we can only use expanded keywords. - - cfg = get_config() - verbose = cfg.verbose - - try: - return git_versions_from_keywords(get_keywords(), cfg.tag_prefix, - verbose) - except NotThisMethod: - pass - - try: - root = os.path.realpath(__file__) - # versionfile_source is the relative path from the top of the source - # tree (where the .git directory might live) to this file. Invert - # this to find the root from __file__. - for _ in cfg.versionfile_source.split('/'): - root = os.path.dirname(root) - except NameError: - return {"version": "0+unknown", "full-revisionid": None, - "dirty": None, - "error": "unable to find root of source tree", - "date": None} - - try: - pieces = git_pieces_from_vcs(cfg.tag_prefix, root, verbose) - return render(pieces, cfg.style) - except NotThisMethod: - pass - - try: - if cfg.parentdir_prefix: - return versions_from_parentdir(cfg.parentdir_prefix, root, verbose) - except NotThisMethod: - pass - - return {"version": "0+unknown", "full-revisionid": None, - "dirty": None, - "error": "unable to compute version", "date": None} -''' - - -@register_vcs_handler("git", "get_keywords") -def git_get_keywords(versionfile_abs): - """Extract version information from the given file.""" - # the code embedded in _version.py can just fetch the value of these - # keywords. When used from setup.py, we don't want to import _version.py, - # so we do it with a regexp instead. This function is not used from - # _version.py. - keywords = {} - try: - with open(versionfile_abs, "r") as fobj: - for line in fobj: - if line.strip().startswith("git_refnames ="): - mo = re.search(r'=\s*"(.*)"', line) - if mo: - keywords["refnames"] = mo.group(1) - if line.strip().startswith("git_full ="): - mo = re.search(r'=\s*"(.*)"', line) - if mo: - keywords["full"] = mo.group(1) - if line.strip().startswith("git_date ="): - mo = re.search(r'=\s*"(.*)"', line) - if mo: - keywords["date"] = mo.group(1) - except OSError: - pass - return keywords - - -@register_vcs_handler("git", "keywords") -def git_versions_from_keywords(keywords, tag_prefix, verbose): - """Get version information from git keywords.""" - if "refnames" not in keywords: - raise NotThisMethod("Short version file found") - date = keywords.get("date") - if date is not None: - # Use only the last line. Previous lines may contain GPG signature - # information. - date = date.splitlines()[-1] - - # git-2.2.0 added "%cI", which expands to an ISO-8601 -compliant - # datestamp. However we prefer "%ci" (which expands to an "ISO-8601 - # -like" string, which we must then edit to make compliant), because - # it's been around since git-1.5.3, and it's too difficult to - # discover which version we're using, or to work around using an - # older one. - date = date.strip().replace(" ", "T", 1).replace(" ", "", 1) - refnames = keywords["refnames"].strip() - if refnames.startswith("$Format"): - if verbose: - print("keywords are unexpanded, not using") - raise NotThisMethod("unexpanded keywords, not a git-archive tarball") - refs = {r.strip() for r in refnames.strip("()").split(",")} - # starting in git-1.8.3, tags are listed as "tag: foo-1.0" instead of - # just "foo-1.0". If we see a "tag: " prefix, prefer those. - TAG = "tag: " - tags = {r[len(TAG):] for r in refs if r.startswith(TAG)} - if not tags: - # Either we're using git < 1.8.3, or there really are no tags. We use - # a heuristic: assume all version tags have a digit. The old git %d - # expansion behaves like git log --decorate=short and strips out the - # refs/heads/ and refs/tags/ prefixes that would let us distinguish - # between branches and tags. By ignoring refnames without digits, we - # filter out many common branch names like "release" and - # "stabilization", as well as "HEAD" and "master". - tags = {r for r in refs if re.search(r'\d', r)} - if verbose: - print("discarding '%s', no digits" % ",".join(refs - tags)) - if verbose: - print("likely tags: %s" % ",".join(sorted(tags))) - for ref in sorted(tags): - # sorting will prefer e.g. "2.0" over "2.0rc1" - if ref.startswith(tag_prefix): - r = ref[len(tag_prefix):] - # Filter out refs that exactly match prefix or that don't start - # with a number once the prefix is stripped (mostly a concern - # when prefix is '') - if not re.match(r'\d', r): - continue - if verbose: - print("picking %s" % r) - return {"version": r, - "full-revisionid": keywords["full"].strip(), - "dirty": False, "error": None, - "date": date} - # no suitable tags, so version is "0+unknown", but full hex is still there - if verbose: - print("no suitable tags, using unknown + full revision id") - return {"version": "0+unknown", - "full-revisionid": keywords["full"].strip(), - "dirty": False, "error": "no suitable tags", "date": None} - - -@register_vcs_handler("git", "pieces_from_vcs") -def git_pieces_from_vcs(tag_prefix, root, verbose, runner=run_command): - """Get version from 'git describe' in the root of the source tree. - - This only gets called if the git-archive 'subst' keywords were *not* - expanded, and _version.py hasn't already been rewritten with a short - version string, meaning we're inside a checked out source tree. - """ - GITS = ["git"] - if sys.platform == "win32": - GITS = ["git.cmd", "git.exe"] - - # GIT_DIR can interfere with correct operation of Versioneer. - # It may be intended to be passed to the Versioneer-versioned project, - # but that should not change where we get our version from. - env = os.environ.copy() - env.pop("GIT_DIR", None) - runner = functools.partial(runner, env=env) - - _, rc = runner(GITS, ["rev-parse", "--git-dir"], cwd=root, - hide_stderr=not verbose) - if rc != 0: - if verbose: - print("Directory %s not under git control" % root) - raise NotThisMethod("'git rev-parse --git-dir' returned error") - - # if there is a tag matching tag_prefix, this yields TAG-NUM-gHEX[-dirty] - # if there isn't one, this yields HEX[-dirty] (no NUM) - describe_out, rc = runner(GITS, [ - "describe", "--tags", "--dirty", "--always", "--long", - "--match", f"{tag_prefix}[[:digit:]]*" - ], cwd=root) - # --long was added in git-1.5.5 - if describe_out is None: - raise NotThisMethod("'git describe' failed") - describe_out = describe_out.strip() - full_out, rc = runner(GITS, ["rev-parse", "HEAD"], cwd=root) - if full_out is None: - raise NotThisMethod("'git rev-parse' failed") - full_out = full_out.strip() - - pieces = {} - pieces["long"] = full_out - pieces["short"] = full_out[:7] # maybe improved later - pieces["error"] = None - - branch_name, rc = runner(GITS, ["rev-parse", "--abbrev-ref", "HEAD"], - cwd=root) - # --abbrev-ref was added in git-1.6.3 - if rc != 0 or branch_name is None: - raise NotThisMethod("'git rev-parse --abbrev-ref' returned error") - branch_name = branch_name.strip() - - if branch_name == "HEAD": - # If we aren't exactly on a branch, pick a branch which represents - # the current commit. If all else fails, we are on a branchless - # commit. - branches, rc = runner(GITS, ["branch", "--contains"], cwd=root) - # --contains was added in git-1.5.4 - if rc != 0 or branches is None: - raise NotThisMethod("'git branch --contains' returned error") - branches = branches.split("\n") - - # Remove the first line if we're running detached - if "(" in branches[0]: - branches.pop(0) - - # Strip off the leading "* " from the list of branches. - branches = [branch[2:] for branch in branches] - if "master" in branches: - branch_name = "master" - elif not branches: - branch_name = None - else: - # Pick the first branch that is returned. Good or bad. - branch_name = branches[0] - - pieces["branch"] = branch_name - - # parse describe_out. It will be like TAG-NUM-gHEX[-dirty] or HEX[-dirty] - # TAG might have hyphens. - git_describe = describe_out - - # look for -dirty suffix - dirty = git_describe.endswith("-dirty") - pieces["dirty"] = dirty - if dirty: - git_describe = git_describe[:git_describe.rindex("-dirty")] - - # now we have TAG-NUM-gHEX or HEX - - if "-" in git_describe: - # TAG-NUM-gHEX - mo = re.search(r'^(.+)-(\d+)-g([0-9a-f]+)$', git_describe) - if not mo: - # unparsable. Maybe git-describe is misbehaving? - pieces["error"] = ("unable to parse git-describe output: '%s'" - % describe_out) - return pieces - - # tag - full_tag = mo.group(1) - if not full_tag.startswith(tag_prefix): - if verbose: - fmt = "tag '%s' doesn't start with prefix '%s'" - print(fmt % (full_tag, tag_prefix)) - pieces["error"] = ("tag '%s' doesn't start with prefix '%s'" - % (full_tag, tag_prefix)) - return pieces - pieces["closest-tag"] = full_tag[len(tag_prefix):] - - # distance: number of commits since tag - pieces["distance"] = int(mo.group(2)) - - # commit: short hex revision ID - pieces["short"] = mo.group(3) - - else: - # HEX: no tags - pieces["closest-tag"] = None - out, rc = runner(GITS, ["rev-list", "HEAD", "--left-right"], cwd=root) - pieces["distance"] = len(out.split()) # total number of commits - - # commit date: see ISO-8601 comment in git_versions_from_keywords() - date = runner(GITS, ["show", "-s", "--format=%ci", "HEAD"], cwd=root)[0].strip() - # Use only the last line. Previous lines may contain GPG signature - # information. - date = date.splitlines()[-1] - pieces["date"] = date.strip().replace(" ", "T", 1).replace(" ", "", 1) - - return pieces - - -def do_vcs_install(versionfile_source, ipy): - """Git-specific installation logic for Versioneer. - - For Git, this means creating/changing .gitattributes to mark _version.py - for export-subst keyword substitution. - """ - GITS = ["git"] - if sys.platform == "win32": - GITS = ["git.cmd", "git.exe"] - files = [versionfile_source] - if ipy: - files.append(ipy) - if "VERSIONEER_PEP518" not in globals(): - try: - my_path = __file__ - if my_path.endswith(".pyc") or my_path.endswith(".pyo"): - my_path = os.path.splitext(my_path)[0] + ".py" - versioneer_file = os.path.relpath(my_path) - except NameError: - versioneer_file = "versioneer.py" - files.append(versioneer_file) - present = False - try: - with open(".gitattributes", "r") as fobj: - for line in fobj: - if line.strip().startswith(versionfile_source): - if "export-subst" in line.strip().split()[1:]: - present = True - break - except OSError: - pass - if not present: - with open(".gitattributes", "a+") as fobj: - fobj.write(f"{versionfile_source} export-subst\n") - files.append(".gitattributes") - run_command(GITS, ["add", "--"] + files) - - -def versions_from_parentdir(parentdir_prefix, root, verbose): - """Try to determine the version from the parent directory name. - - Source tarballs conventionally unpack into a directory that includes both - the project name and a version string. We will also support searching up - two directory levels for an appropriately named parent directory - """ - rootdirs = [] - - for _ in range(3): - dirname = os.path.basename(root) - if dirname.startswith(parentdir_prefix): - return {"version": dirname[len(parentdir_prefix):], - "full-revisionid": None, - "dirty": False, "error": None, "date": None} - rootdirs.append(root) - root = os.path.dirname(root) # up a level - - if verbose: - print("Tried directories %s but none started with prefix %s" % - (str(rootdirs), parentdir_prefix)) - raise NotThisMethod("rootdir doesn't start with parentdir_prefix") - - -SHORT_VERSION_PY = """ -# This file was generated by 'versioneer.py' (0.26) from -# revision-control system data, or from the parent directory name of an -# unpacked source archive. Distribution tarballs contain a pre-generated copy -# of this file. - -import json - -version_json = ''' -%s -''' # END VERSION_JSON - - -def get_versions(): - return json.loads(version_json) -""" - - -def versions_from_file(filename): - """Try to determine the version from _version.py if present.""" - try: - with open(filename) as f: - contents = f.read() - except OSError: - raise NotThisMethod("unable to read _version.py") - mo = re.search(r"version_json = '''\n(.*)''' # END VERSION_JSON", - contents, re.M | re.S) - if not mo: - mo = re.search(r"version_json = '''\r\n(.*)''' # END VERSION_JSON", - contents, re.M | re.S) - if not mo: - raise NotThisMethod("no version_json in _version.py") - return json.loads(mo.group(1)) - - -def write_to_version_file(filename, versions): - """Write the given version number to the given _version.py file.""" - os.unlink(filename) - contents = json.dumps(versions, sort_keys=True, - indent=1, separators=(",", ": ")) - with open(filename, "w") as f: - f.write(SHORT_VERSION_PY % contents) - - print("set %s to '%s'" % (filename, versions["version"])) - - -def plus_or_dot(pieces): - """Return a + if we don't already have one, else return a .""" - if "+" in pieces.get("closest-tag", ""): - return "." - return "+" - - -def render_pep440(pieces): - """Build up version string, with post-release "local version identifier". - - Our goal: TAG[+DISTANCE.gHEX[.dirty]] . Note that if you - get a tagged build and then dirty it, you'll get TAG+0.gHEX.dirty - - Exceptions: - 1: no tags. git_describe was just HEX. 0+untagged.DISTANCE.gHEX[.dirty] - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - if pieces["distance"] or pieces["dirty"]: - rendered += plus_or_dot(pieces) - rendered += "%d.g%s" % (pieces["distance"], pieces["short"]) - if pieces["dirty"]: - rendered += ".dirty" - else: - # exception #1 - rendered = "0+untagged.%d.g%s" % (pieces["distance"], - pieces["short"]) - if pieces["dirty"]: - rendered += ".dirty" - return rendered - - -def render_pep440_branch(pieces): - """TAG[[.dev0]+DISTANCE.gHEX[.dirty]] . - - The ".dev0" means not master branch. Note that .dev0 sorts backwards - (a feature branch will appear "older" than the master branch). - - Exceptions: - 1: no tags. 0[.dev0]+untagged.DISTANCE.gHEX[.dirty] - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - if pieces["distance"] or pieces["dirty"]: - if pieces["branch"] != "master": - rendered += ".dev0" - rendered += plus_or_dot(pieces) - rendered += "%d.g%s" % (pieces["distance"], pieces["short"]) - if pieces["dirty"]: - rendered += ".dirty" - else: - # exception #1 - rendered = "0" - if pieces["branch"] != "master": - rendered += ".dev0" - rendered += "+untagged.%d.g%s" % (pieces["distance"], - pieces["short"]) - if pieces["dirty"]: - rendered += ".dirty" - return rendered - - -def pep440_split_post(ver): - """Split pep440 version string at the post-release segment. - - Returns the release segments before the post-release and the - post-release version number (or -1 if no post-release segment is present). - """ - vc = str.split(ver, ".post") - return vc[0], int(vc[1] or 0) if len(vc) == 2 else None - - -def render_pep440_pre(pieces): - """TAG[.postN.devDISTANCE] -- No -dirty. - - Exceptions: - 1: no tags. 0.post0.devDISTANCE - """ - if pieces["closest-tag"]: - if pieces["distance"]: - # update the post release segment - tag_version, post_version = pep440_split_post(pieces["closest-tag"]) - rendered = tag_version - if post_version is not None: - rendered += ".post%d.dev%d" % (post_version + 1, pieces["distance"]) - else: - rendered += ".post0.dev%d" % (pieces["distance"]) - else: - # no commits, use the tag as the version - rendered = pieces["closest-tag"] - else: - # exception #1 - rendered = "0.post0.dev%d" % pieces["distance"] - return rendered - - -def render_pep440_post(pieces): - """TAG[.postDISTANCE[.dev0]+gHEX] . - - The ".dev0" means dirty. Note that .dev0 sorts backwards - (a dirty tree will appear "older" than the corresponding clean one), - but you shouldn't be releasing software with -dirty anyways. - - Exceptions: - 1: no tags. 0.postDISTANCE[.dev0] - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - if pieces["distance"] or pieces["dirty"]: - rendered += ".post%d" % pieces["distance"] - if pieces["dirty"]: - rendered += ".dev0" - rendered += plus_or_dot(pieces) - rendered += "g%s" % pieces["short"] - else: - # exception #1 - rendered = "0.post%d" % pieces["distance"] - if pieces["dirty"]: - rendered += ".dev0" - rendered += "+g%s" % pieces["short"] - return rendered - - -def render_pep440_post_branch(pieces): - """TAG[.postDISTANCE[.dev0]+gHEX[.dirty]] . - - The ".dev0" means not master branch. - - Exceptions: - 1: no tags. 0.postDISTANCE[.dev0]+gHEX[.dirty] - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - if pieces["distance"] or pieces["dirty"]: - rendered += ".post%d" % pieces["distance"] - if pieces["branch"] != "master": - rendered += ".dev0" - rendered += plus_or_dot(pieces) - rendered += "g%s" % pieces["short"] - if pieces["dirty"]: - rendered += ".dirty" - else: - # exception #1 - rendered = "0.post%d" % pieces["distance"] - if pieces["branch"] != "master": - rendered += ".dev0" - rendered += "+g%s" % pieces["short"] - if pieces["dirty"]: - rendered += ".dirty" - return rendered - - -def render_pep440_old(pieces): - """TAG[.postDISTANCE[.dev0]] . - - The ".dev0" means dirty. - - Exceptions: - 1: no tags. 0.postDISTANCE[.dev0] - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - if pieces["distance"] or pieces["dirty"]: - rendered += ".post%d" % pieces["distance"] - if pieces["dirty"]: - rendered += ".dev0" - else: - # exception #1 - rendered = "0.post%d" % pieces["distance"] - if pieces["dirty"]: - rendered += ".dev0" - return rendered - - -def render_git_describe(pieces): - """TAG[-DISTANCE-gHEX][-dirty]. - - Like 'git describe --tags --dirty --always'. - - Exceptions: - 1: no tags. HEX[-dirty] (note: no 'g' prefix) - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - if pieces["distance"]: - rendered += "-%d-g%s" % (pieces["distance"], pieces["short"]) - else: - # exception #1 - rendered = pieces["short"] - if pieces["dirty"]: - rendered += "-dirty" - return rendered - - -def render_git_describe_long(pieces): - """TAG-DISTANCE-gHEX[-dirty]. - - Like 'git describe --tags --dirty --always -long'. - The distance/hash is unconditional. - - Exceptions: - 1: no tags. HEX[-dirty] (note: no 'g' prefix) - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] - rendered += "-%d-g%s" % (pieces["distance"], pieces["short"]) - else: - # exception #1 - rendered = pieces["short"] - if pieces["dirty"]: - rendered += "-dirty" - return rendered - - -def render(pieces, style): - """Render the given version pieces into the requested style.""" - if pieces["error"]: - return {"version": "unknown", - "full-revisionid": pieces.get("long"), - "dirty": None, - "error": pieces["error"], - "date": None} - - if not style or style == "default": - style = "pep440" # the default - - if style == "pep440": - rendered = render_pep440(pieces) - elif style == "pep440-branch": - rendered = render_pep440_branch(pieces) - elif style == "pep440-pre": - rendered = render_pep440_pre(pieces) - elif style == "pep440-post": - rendered = render_pep440_post(pieces) - elif style == "pep440-post-branch": - rendered = render_pep440_post_branch(pieces) - elif style == "pep440-old": - rendered = render_pep440_old(pieces) - elif style == "git-describe": - rendered = render_git_describe(pieces) - elif style == "git-describe-long": - rendered = render_git_describe_long(pieces) - else: - raise ValueError("unknown style '%s'" % style) - - return {"version": rendered, "full-revisionid": pieces["long"], - "dirty": pieces["dirty"], "error": None, - "date": pieces.get("date")} - - -class VersioneerBadRootError(Exception): - """The project root directory is unknown or missing key files.""" - - -def get_versions(verbose=False): - """Get the project version from whatever source is available. - - Returns dict with two keys: 'version' and 'full'. - """ - if "versioneer" in sys.modules: - # see the discussion in cmdclass.py:get_cmdclass() - del sys.modules["versioneer"] - - root = get_root() - cfg = get_config_from_root(root) - - assert cfg.VCS is not None, "please set [versioneer]VCS= in setup.cfg" - handlers = HANDLERS.get(cfg.VCS) - assert handlers, "unrecognized VCS '%s'" % cfg.VCS - verbose = verbose or cfg.verbose - assert cfg.versionfile_source is not None, \ - "please set versioneer.versionfile_source" - assert cfg.tag_prefix is not None, "please set versioneer.tag_prefix" - - versionfile_abs = os.path.join(root, cfg.versionfile_source) - - # extract version from first of: _version.py, VCS command (e.g. 'git - # describe'), parentdir. This is meant to work for developers using a - # source checkout, for users of a tarball created by 'setup.py sdist', - # and for users of a tarball/zipball created by 'git archive' or github's - # download-from-tag feature or the equivalent in other VCSes. - - get_keywords_f = handlers.get("get_keywords") - from_keywords_f = handlers.get("keywords") - if get_keywords_f and from_keywords_f: - try: - keywords = get_keywords_f(versionfile_abs) - ver = from_keywords_f(keywords, cfg.tag_prefix, verbose) - if verbose: - print("got version from expanded keyword %s" % ver) - return ver - except NotThisMethod: - pass - - try: - ver = versions_from_file(versionfile_abs) - if verbose: - print("got version from file %s %s" % (versionfile_abs, ver)) - return ver - except NotThisMethod: - pass - - from_vcs_f = handlers.get("pieces_from_vcs") - if from_vcs_f: - try: - pieces = from_vcs_f(cfg.tag_prefix, root, verbose) - ver = render(pieces, cfg.style) - if verbose: - print("got version from VCS %s" % ver) - return ver - except NotThisMethod: - pass - - try: - if cfg.parentdir_prefix: - ver = versions_from_parentdir(cfg.parentdir_prefix, root, verbose) - if verbose: - print("got version from parentdir %s" % ver) - return ver - except NotThisMethod: - pass - - if verbose: - print("unable to compute version") - - return {"version": "0+unknown", "full-revisionid": None, - "dirty": None, "error": "unable to compute version", - "date": None} - - -def get_version(): - """Get the short version string for this project.""" - return get_versions()["version"] - - -def get_cmdclass(cmdclass=None): - """Get the custom setuptools subclasses used by Versioneer. - - If the package uses a different cmdclass (e.g. one from numpy), it - should be provide as an argument. - """ - if "versioneer" in sys.modules: - del sys.modules["versioneer"] - # this fixes the "python setup.py develop" case (also 'install' and - # 'easy_install .'), in which subdependencies of the main project are - # built (using setup.py bdist_egg) in the same python process. Assume - # a main project A and a dependency B, which use different versions - # of Versioneer. A's setup.py imports A's Versioneer, leaving it in - # sys.modules by the time B's setup.py is executed, causing B to run - # with the wrong versioneer. Setuptools wraps the sub-dep builds in a - # sandbox that restores sys.modules to it's pre-build state, so the - # parent is protected against the child's "import versioneer". By - # removing ourselves from sys.modules here, before the child build - # happens, we protect the child from the parent's versioneer too. - # Also see https://github.com/python-versioneer/python-versioneer/issues/52 - - cmds = {} if cmdclass is None else cmdclass.copy() - - # we add "version" to setuptools - from setuptools import Command - - class cmd_version(Command): - description = "report generated version string" - user_options = [] - boolean_options = [] - - def initialize_options(self): - pass - - def finalize_options(self): - pass - - def run(self): - vers = get_versions(verbose=True) - print("Version: %s" % vers["version"]) - print(" full-revisionid: %s" % vers.get("full-revisionid")) - print(" dirty: %s" % vers.get("dirty")) - print(" date: %s" % vers.get("date")) - if vers["error"]: - print(" error: %s" % vers["error"]) - cmds["version"] = cmd_version - - # we override "build_py" in setuptools - # - # most invocation pathways end up running build_py: - # distutils/build -> build_py - # distutils/install -> distutils/build ->.. - # setuptools/bdist_wheel -> distutils/install ->.. - # setuptools/bdist_egg -> distutils/install_lib -> build_py - # setuptools/install -> bdist_egg ->.. - # setuptools/develop -> ? - # pip install: - # copies source tree to a tempdir before running egg_info/etc - # if .git isn't copied too, 'git describe' will fail - # then does setup.py bdist_wheel, or sometimes setup.py install - # setup.py egg_info -> ? - - # pip install -e . and setuptool/editable_wheel will invoke build_py - # but the build_py command is not expected to copy any files. - - # we override different "build_py" commands for both environments - if 'build_py' in cmds: - _build_py = cmds['build_py'] - else: - from setuptools.command.build_py import build_py as _build_py - - class cmd_build_py(_build_py): - def run(self): - root = get_root() - cfg = get_config_from_root(root) - versions = get_versions() - _build_py.run(self) - if getattr(self, "editable_mode", False): - # During editable installs `.py` and data files are - # not copied to build_lib - return - # now locate _version.py in the new build/ directory and replace - # it with an updated value - if cfg.versionfile_build: - target_versionfile = os.path.join(self.build_lib, - cfg.versionfile_build) - print("UPDATING %s" % target_versionfile) - write_to_version_file(target_versionfile, versions) - cmds["build_py"] = cmd_build_py - - if 'build_ext' in cmds: - _build_ext = cmds['build_ext'] - else: - from setuptools.command.build_ext import build_ext as _build_ext - - class cmd_build_ext(_build_ext): - def run(self): - root = get_root() - cfg = get_config_from_root(root) - versions = get_versions() - _build_ext.run(self) - if self.inplace: - # build_ext --inplace will only build extensions in - # build/lib<..> dir with no _version.py to write to. - # As in place builds will already have a _version.py - # in the module dir, we do not need to write one. - return - # now locate _version.py in the new build/ directory and replace - # it with an updated value - target_versionfile = os.path.join(self.build_lib, - cfg.versionfile_build) - if not os.path.exists(target_versionfile): - print(f"Warning: {target_versionfile} does not exist, skipping " - "version update. This can happen if you are running build_ext " - "without first running build_py.") - return - print("UPDATING %s" % target_versionfile) - write_to_version_file(target_versionfile, versions) - cmds["build_ext"] = cmd_build_ext - - if "cx_Freeze" in sys.modules: # cx_freeze enabled? - from cx_Freeze.dist import build_exe as _build_exe - # nczeczulin reports that py2exe won't like the pep440-style string - # as FILEVERSION, but it can be used for PRODUCTVERSION, e.g. - # setup(console=[{ - # "version": versioneer.get_version().split("+", 1)[0], # FILEVERSION - # "product_version": versioneer.get_version(), - # ... - - class cmd_build_exe(_build_exe): - def run(self): - root = get_root() - cfg = get_config_from_root(root) - versions = get_versions() - target_versionfile = cfg.versionfile_source - print("UPDATING %s" % target_versionfile) - write_to_version_file(target_versionfile, versions) - - _build_exe.run(self) - os.unlink(target_versionfile) - with open(cfg.versionfile_source, "w") as f: - LONG = LONG_VERSION_PY[cfg.VCS] - f.write(LONG % - {"DOLLAR": "$", - "STYLE": cfg.style, - "TAG_PREFIX": cfg.tag_prefix, - "PARENTDIR_PREFIX": cfg.parentdir_prefix, - "VERSIONFILE_SOURCE": cfg.versionfile_source, - }) - cmds["build_exe"] = cmd_build_exe - del cmds["build_py"] - - if 'py2exe' in sys.modules: # py2exe enabled? - try: - from py2exe.setuptools_buildexe import py2exe as _py2exe - except ImportError: - from py2exe.distutils_buildexe import py2exe as _py2exe - - class cmd_py2exe(_py2exe): - def run(self): - root = get_root() - cfg = get_config_from_root(root) - versions = get_versions() - target_versionfile = cfg.versionfile_source - print("UPDATING %s" % target_versionfile) - write_to_version_file(target_versionfile, versions) - - _py2exe.run(self) - os.unlink(target_versionfile) - with open(cfg.versionfile_source, "w") as f: - LONG = LONG_VERSION_PY[cfg.VCS] - f.write(LONG % - {"DOLLAR": "$", - "STYLE": cfg.style, - "TAG_PREFIX": cfg.tag_prefix, - "PARENTDIR_PREFIX": cfg.parentdir_prefix, - "VERSIONFILE_SOURCE": cfg.versionfile_source, - }) - cmds["py2exe"] = cmd_py2exe - - # sdist farms its file list building out to egg_info - if 'egg_info' in cmds: - _sdist = cmds['egg_info'] - else: - from setuptools.command.egg_info import egg_info as _egg_info - - class cmd_egg_info(_egg_info): - def find_sources(self): - # egg_info.find_sources builds the manifest list and writes it - # in one shot - super().find_sources() - - # Modify the filelist and normalize it - root = get_root() - cfg = get_config_from_root(root) - self.filelist.append('versioneer.py') - if cfg.versionfile_source: - # There are rare cases where versionfile_source might not be - # included by default, so we must be explicit - self.filelist.append(cfg.versionfile_source) - self.filelist.sort() - self.filelist.remove_duplicates() - - # The write method is hidden in the manifest_maker instance that - # generated the filelist and was thrown away - # We will instead replicate their final normalization (to unicode, - # and POSIX-style paths) - from setuptools import unicode_utils - normalized = [unicode_utils.filesys_decode(f).replace(os.sep, '/') - for f in self.filelist.files] - - manifest_filename = os.path.join(self.egg_info, 'SOURCES.txt') - with open(manifest_filename, 'w') as fobj: - fobj.write('\n'.join(normalized)) - - cmds['egg_info'] = cmd_egg_info - - # we override different "sdist" commands for both environments - if 'sdist' in cmds: - _sdist = cmds['sdist'] - else: - from setuptools.command.sdist import sdist as _sdist - - class cmd_sdist(_sdist): - def run(self): - versions = get_versions() - self._versioneer_generated_versions = versions - # unless we update this, the command will keep using the old - # version - self.distribution.metadata.version = versions["version"] - return _sdist.run(self) - - def make_release_tree(self, base_dir, files): - root = get_root() - cfg = get_config_from_root(root) - _sdist.make_release_tree(self, base_dir, files) - # now locate _version.py in the new base_dir directory - # (remembering that it may be a hardlink) and replace it with an - # updated value - target_versionfile = os.path.join(base_dir, cfg.versionfile_source) - print("UPDATING %s" % target_versionfile) - write_to_version_file(target_versionfile, - self._versioneer_generated_versions) - cmds["sdist"] = cmd_sdist - - return cmds - - -CONFIG_ERROR = """ -setup.cfg is missing the necessary Versioneer configuration. You need -a section like: - - [versioneer] - VCS = git - style = pep440 - versionfile_source = src/myproject/_version.py - versionfile_build = myproject/_version.py - tag_prefix = - parentdir_prefix = myproject- - -You will also need to edit your setup.py to use the results: - - import versioneer - setup(version=versioneer.get_version(), - cmdclass=versioneer.get_cmdclass(), ...) - -Please read the docstring in ./versioneer.py for configuration instructions, -edit setup.cfg, and re-run the installer or 'python versioneer.py setup'. -""" - -SAMPLE_CONFIG = """ -# See the docstring in versioneer.py for instructions. Note that you must -# re-run 'versioneer.py setup' after changing this section, and commit the -# resulting files. - -[versioneer] -#VCS = git -#style = pep440 -#versionfile_source = -#versionfile_build = -#tag_prefix = -#parentdir_prefix = - -""" - -OLD_SNIPPET = """ -from ._version import get_versions -__version__ = get_versions()['version'] -del get_versions -""" - -INIT_PY_SNIPPET = """ -from . import {0} -__version__ = {0}.get_versions()['version'] -""" - - -def do_setup(): - """Do main VCS-independent setup function for installing Versioneer.""" - root = get_root() - try: - cfg = get_config_from_root(root) - except (OSError, configparser.NoSectionError, - configparser.NoOptionError) as e: - if isinstance(e, (OSError, configparser.NoSectionError)): - print("Adding sample versioneer config to setup.cfg", - file=sys.stderr) - with open(os.path.join(root, "setup.cfg"), "a") as f: - f.write(SAMPLE_CONFIG) - print(CONFIG_ERROR, file=sys.stderr) - return 1 - - print(" creating %s" % cfg.versionfile_source) - with open(cfg.versionfile_source, "w") as f: - LONG = LONG_VERSION_PY[cfg.VCS] - f.write(LONG % {"DOLLAR": "$", - "STYLE": cfg.style, - "TAG_PREFIX": cfg.tag_prefix, - "PARENTDIR_PREFIX": cfg.parentdir_prefix, - "VERSIONFILE_SOURCE": cfg.versionfile_source, - }) - - ipy = os.path.join(os.path.dirname(cfg.versionfile_source), - "__init__.py") - if os.path.exists(ipy): - try: - with open(ipy, "r") as f: - old = f.read() - except OSError: - old = "" - module = os.path.splitext(os.path.basename(cfg.versionfile_source))[0] - snippet = INIT_PY_SNIPPET.format(module) - if OLD_SNIPPET in old: - print(" replacing boilerplate in %s" % ipy) - with open(ipy, "w") as f: - f.write(old.replace(OLD_SNIPPET, snippet)) - elif snippet not in old: - print(" appending to %s" % ipy) - with open(ipy, "a") as f: - f.write(snippet) - else: - print(" %s unmodified" % ipy) - else: - print(" %s doesn't exist, ok" % ipy) - ipy = None - - # Make VCS-specific changes. For git, this means creating/changing - # .gitattributes to mark _version.py for export-subst keyword - # substitution. - do_vcs_install(cfg.versionfile_source, ipy) - return 0 - - -def scan_setup_py(): - """Validate the contents of setup.py against Versioneer's expectations.""" - found = set() - setters = False - errors = 0 - with open("setup.py", "r") as f: - for line in f.readlines(): - if "import versioneer" in line: - found.add("import") - if "versioneer.get_cmdclass()" in line: - found.add("cmdclass") - if "versioneer.get_version()" in line: - found.add("get_version") - if "versioneer.VCS" in line: - setters = True - if "versioneer.versionfile_source" in line: - setters = True - if len(found) != 3: - print("") - print("Your setup.py appears to be missing some important items") - print("(but I might be wrong). Please make sure it has something") - print("roughly like the following:") - print("") - print(" import versioneer") - print(" setup( version=versioneer.get_version(),") - print(" cmdclass=versioneer.get_cmdclass(), ...)") - print("") - errors += 1 - if setters: - print("You should remove lines like 'versioneer.VCS = ' and") - print("'versioneer.versionfile_source = ' . This configuration") - print("now lives in setup.cfg, and should be removed from setup.py") - print("") - errors += 1 - return errors - - -def setup_command(): - """Set up Versioneer and exit with appropriate error code.""" - errors = do_setup() - errors += scan_setup_py() - sys.exit(1 if errors else 0) - - -if __name__ == "__main__": - cmd = sys.argv[1] - if cmd == "setup": - setup_command()