text:
Issue680 spectro los etendue

Main changes:

Issues:

Fixes, in devel, issue #680

Examples:
Using the diagnostics that are automatically built by the unit tests (see unit tests for details)
In [1]: import tofu as tf

In [2]: diags = tf.tests.tests08_diagnostics.test_01_diagnostics.Test01_Diagnostic()

In [3]: test.setup()

In [4]: diags = test.obj

In [4]: diags
Out[4]:
ref key              size  nb. data  nb. data monot.
-------------------  ----  --------  ---------------
ap0-npts             4     2         0
ap1-npts             3     2         1
ap2-npts             5     2         0
filt0-npts           3     2         1
filt0-nE             78    2         2
cam0-npts            4     2         0
cam0-npix            10    34        6
cam1-npts            4     2         0
cam1-npix            10    15        5
cam1-nE              100   2         1
cam2-npts            4     2         0
cam2-npix0           5     13        1
cam2-npix1           5     13        1
diag3-los-nseg       3     6         0
diag4-los-nseg       3     6         0
diag5-los-nseg       3     6         0
diag6-los-nseg       3     6         0
cryst0-npts          4     2         0
cryst1-npts          4     2         0
cryst2-npts          4     2         0
cryst3-npts          4     2         0
cryst0-cam0-npts     4     2         0
cryst0-cam0-npix0    5     14        1
cryst0-cam0-npix1    3     14        1
cryst0-pinhole-npts  49    2         0
cryst1-cam0-npts     4     2         0
cryst1-cam0-npix0    5     14        1
cryst1-cam0-npix1    3     14        1
cryst1-pinhole-npts  49    2         0
cryst1-cam1-npts     4     2         0
cryst1-cam1-npix0    5     14        1
cryst1-cam1-npix1    3     14        1
cryst1-slit-npts     4     2         0
cryst2-cam0-npts     4     2         0
cryst2-cam0-npix0    5     14        1
cryst2-cam0-npix1    3     14        1
cryst2-pinhole-npts  49    2         0
cryst2-cam1-npts     4     2         0
cryst2-cam1-npix0    5     14        1
cryst2-cam1-npix1    3     14        1
diag9-los-nseg       2     6         0
diag10-los-nseg      2     6         0
diag11-los-nseg      2     6         0
diag12-los-nseg      2     6         0
diag13-los-nseg      2     6         0

data key           shape      ref                                                            dim       name     quant         units  monot                  source  bsplines  camera
-----------------  ---------  -------------------------------------------------------------  --------  -------  ------------  -----  ---------------------  ------  --------  -----------
ap0-x0             (4,)       ('ap0-npts',)                                                  distance  x0       x0            m      (False,)                                 None
ap0-x1             (4,)       ('ap0-npts',)                                                  distance  x1       x1            m      (False,)                                 None
ap1-x0             (3,)       ('ap1-npts',)                                                  distance  x0       x0            m      (False,)                                 None
ap1-x1             (3,)       ('ap1-npts',)                                                  distance  x1       x1            m      (True,)                                  None
ap2-x0             (5,)       ('ap2-npts',)                                                  distance  x0       x0            m      (False,)                                 None
ap2-x1             (5,)       ('ap2-npts',)                                                  distance  x1       x1            m      (False,)                                 None
filt0-x0           (3,)       ('filt0-npts',)                                                distance  x0       x0            m      (False,)                                 None
filt0-x1           (3,)       ('filt0-npts',)                                                distance  x1       x1            m      (True,)                                  None
filt0-E            (78,)      ('filt0-nE',)                                                  energy    E        energy        eV     (True,)                                  None
filt0-trans        (78,)      ('filt0-nE',)                                                                     trans. coef.         (True,)                                  None
cam0_outx0         (4,)       ('cam0-npts',)                                                 distance  x0       x0            m      (False,)                                 None
cam0_outx1         (4,)       ('cam0-npts',)                                                 distance  x1       x1            m      (False,)                                 None
cam0-cx            (10,)      ('cam0-npix',)                                                 distance  x        x             m      (False,)                                 cam0
cam0-cy            (10,)      ('cam0-npix',)                                                 distance  y        y             m      (True,)                                  cam0
cam0-cz            (10,)      ('cam0-npix',)                                                 distance  z        z             m      (False,)                                 cam0
cam0-nin_x         (10,)      ('cam0-npix',)                                                 distance  x        x             m      (False,)                                 cam0
cam0-nin_y         (10,)      ('cam0-npix',)                                                 distance  y        y             m      (True,)                                  cam0
cam0-nin_z         (10,)      ('cam0-npix',)                                                 distance  z        z             m      (False,)                                 cam0
cam0-e0_x          (10,)      ('cam0-npix',)                                                 distance  x        x             m      (True,)                                  cam0
cam0-e0_y          (10,)      ('cam0-npix',)                                                 distance  y        y             m      (False,)                                 cam0
cam0-e0_z          (10,)      ('cam0-npix',)                                                 distance  z        z             m      (False,)                                 cam0
cam0-e1_x          (10,)      ('cam0-npix',)                                                 distance  x        x             m      (False,)                                 cam0
cam0-e1_y          (10,)      ('cam0-npix',)                                                 distance  y        y             m      (False,)                                 cam0
cam0-e1_z          (10,)      ('cam0-npix',)                                                 distance  z        z             m      (False,)                                 cam0
cam1_outx0         (4,)       ('cam1-npts',)                                                 distance  x0       x0            m      (False,)                                 None
cam1_outx1         (4,)       ('cam1-npts',)                                                 distance  x1       x1            m      (False,)                                 None
cam1-cx            (10,)      ('cam1-npix',)                                                 distance  x        x             m      (True,)                                  cam1
cam1-cy            (10,)      ('cam1-npix',)                                                 distance  y        y             m      (True,)                                  cam1
cam1-cz            (10,)      ('cam1-npix',)                                                 distance  z        z             m      (False,)                                 cam1
cam1-E             (100,)     ('cam1-nE',)                                                   energy    E        energy        eV     (True,)                                  None
cam1-qeff          (100,)     ('cam1-nE',)                                                                      quantum eff.         (False,)                                 None
cam2_outx0         (4,)       ('cam2-npts',)                                                 distance  x0       x0            m      (False,)                                 None
cam2_outx1         (4,)       ('cam2-npts',)                                                 distance  x1       x1            m      (False,)                                 None
cam2-c0            (5,)       ('cam2-npix0',)                                                distance  x0       x0            m      (True,)                                  None
cam2-c1            (5,)       ('cam2-npix1',)                                                distance  x1       x1            m      (True,)                                  None
diag3-etend        (10,)      ('cam0-npix',)                                                 etendue   etendue  etendue       m2.sr  (True,)                                  cam0
diag3-los-ptx      (3, 10)    ('diag3-los-nseg', 'cam0-npix')                                distance  x        distance      m      (False, True)                            cam0
diag3-los-pty      (3, 10)    ('diag3-los-nseg', 'cam0-npix')                                distance  y        distance      m      (False, False)                           cam0
diag3-los-ptz      (3, 10)    ('diag3-los-nseg', 'cam0-npix')                                distance  z        distance      m      (False, False)                           cam0
diag3-los-Rmin     (10,)      ('cam0-npix',)                                                 distance  z        distance      m      (False,)                                 cam0
diag3-los-startx   (10,)      ('cam0-npix',)                                                 distance  x        distance      m      (False,)                                 cam0
diag3-los-starty   (10,)      ('cam0-npix',)                                                 distance  y        distance      m      (True,)                                  cam0
diag3-los-startz   (10,)      ('cam0-npix',)                                                 distance  z        distance      m      (False,)                                 cam0
diag3-los-alpha    (3, 10)    ('diag3-los-nseg', 'cam0-npix')                                angle     alpha    angle         rad    (False, False)                           cam0
diag3-los-dalpha   (3, 10)    ('diag3-los-nseg', 'cam0-npix')                                angle     alpha    angle         rad    (False, False)                           cam0
diag3-los-dbeta    (3, 10)    ('diag3-los-nseg', 'cam0-npix')                                angle     beta     angle         rad    (False, False)                           cam0
diag4-etend        (10,)      ('cam1-npix',)                                                 etendue   etendue  etendue       m2.sr  (True,)                                  cam1
diag4-los-ptx      (3, 10)    ('diag4-los-nseg', 'cam1-npix')                                distance  x        distance      m      (False, True)                            cam1
diag4-los-pty      (3, 10)    ('diag4-los-nseg', 'cam1-npix')                                distance  y        distance      m      (False, False)                           cam1
diag4-los-ptz      (3, 10)    ('diag4-los-nseg', 'cam1-npix')                                distance  z        distance      m      (False, False)                           cam1
diag4-los-Rmin     (10,)      ('cam1-npix',)                                                 distance  z        distance      m      (False,)                                 cam1
diag4-los-startx   (10,)      ('cam1-npix',)                                                 distance  x        distance      m      (True,)                                  cam1
diag4-los-starty   (10,)      ('cam1-npix',)                                                 distance  y        distance      m      (True,)                                  cam1
diag4-los-startz   (10,)      ('cam1-npix',)                                                 distance  z        distance      m      (False,)                                 cam1
diag4-los-alpha    (3, 10)    ('diag4-los-nseg', 'cam1-npix')                                angle     alpha    angle         rad    (False, False)                           cam1
diag4-los-dalpha   (3, 10)    ('diag4-los-nseg', 'cam1-npix')                                angle     alpha    angle         rad    (False, False)                           cam1
diag4-los-dbeta    (3, 10)    ('diag4-los-nseg', 'cam1-npix')                                angle     beta     angle         rad    (False, False)                           cam1
diag5-etend        (5, 5)     ('cam2-npix0', 'cam2-npix1')                                   etendue   etendue  etendue       m2.sr  (True, False)                            cam2
diag5-los-ptx      (3, 5, 5)  ('diag5-los-nseg', 'cam2-npix0', 'cam2-npix1')                 distance  x        distance      m      (False, True, False)                     cam2
diag5-los-pty      (3, 5, 5)  ('diag5-los-nseg', 'cam2-npix0', 'cam2-npix1')                 distance  y        distance      m      (False, False, False)                    cam2
diag5-los-ptz      (3, 5, 5)  ('diag5-los-nseg', 'cam2-npix0', 'cam2-npix1')                 distance  z        distance      m      (False, False, False)                    cam2
diag5-los-Rmin     (5, 5)     ('cam2-npix0', 'cam2-npix1')                                   distance  z        distance      m      (False, True)                            cam2
diag5-los-startx   (5, 5)     ('cam2-npix0', 'cam2-npix1')                                   distance  x        distance      m      (True, False)                            cam2
diag5-los-starty   (5, 5)     ('cam2-npix0', 'cam2-npix1')                                   distance  y        distance      m      (True, False)                            cam2
diag5-los-startz   (5, 5)     ('cam2-npix0', 'cam2-npix1')                                   distance  z        distance      m      (False, True)                            cam2
diag5-los-alpha    (3, 5, 5)  ('diag5-los-nseg', 'cam2-npix0', 'cam2-npix1')                 angle     alpha    angle         rad    (False, False, False)                    cam2
diag5-los-dalpha   (3, 5, 5)  ('diag5-los-nseg', 'cam2-npix0', 'cam2-npix1')                 angle     alpha    angle         rad    (False, False, False)                    cam2
diag5-los-dbeta    (3, 5, 5)  ('diag5-los-nseg', 'cam2-npix0', 'cam2-npix1')                 angle     beta     angle         rad    (False, False, False)                    cam2
diag6-etend        (10,)      ('cam0-npix',)                                                 etendue   etendue  etendue       m2.sr  (False,)                                 cam0
diag6-los-ptx      (3, 10)    ('diag6-los-nseg', 'cam0-npix')                                distance  x        distance      m      (False, False)                           cam0
diag6-los-pty      (3, 10)    ('diag6-los-nseg', 'cam0-npix')                                distance  y        distance      m      (False, False)                           cam0
diag6-los-ptz      (3, 10)    ('diag6-los-nseg', 'cam0-npix')                                distance  z        distance      m      (False, False)                           cam0
diag6-los-Rmin     (10,)      ('cam0-npix',)                                                 distance  z        distance      m      (False,)                                 cam0
diag6-los-startx   (10,)      ('cam0-npix',)                                                 distance  x        distance      m      (False,)                                 cam0
diag6-los-starty   (10,)      ('cam0-npix',)                                                 distance  y        distance      m      (True,)                                  cam0
diag6-los-startz   (10,)      ('cam0-npix',)                                                 distance  z        distance      m      (False,)                                 cam0
diag6-los-alpha    (3, 10)    ('diag6-los-nseg', 'cam0-npix')                                angle     alpha    angle         rad    (False, False)                           cam0
diag6-los-dalpha   (3, 10)    ('diag6-los-nseg', 'cam0-npix')                                angle     alpha    angle         rad    (False, False)                           cam0
diag6-los-dbeta    (3, 10)    ('diag6-los-nseg', 'cam0-npix')                                angle     beta     angle         rad    (False, False)                           cam0
diag7-etend        (10,)      ('cam1-npix',)                                                 etendue   etendue  etendue       m2.sr  (False,)                                 cam1
diag8-etend        (5, 5)     ('cam2-npix0', 'cam2-npix1')                                   etendue   etendue  etendue       m2.sr  (False, False)                           cam2
cryst0-x0          (4,)       ('cryst0-npts',)                                               distance  x0       x0            m      (False,)                                 None
cryst0-x1          (4,)       ('cryst0-npts',)                                               distance  x1       x1            m      (False,)                                 None
cryst1-x0          (4,)       ('cryst1-npts',)                                               distance  x0       x0            m      (False,)                                 None
cryst1-x1          (4,)       ('cryst1-npts',)                                               distance  x1       x1            m      (False,)                                 None
cryst2-x0          (4,)       ('cryst2-npts',)                                               distance  x0       x0            m      (False,)                                 None
cryst2-x1          (4,)       ('cryst2-npts',)                                               distance  x1       x1            m      (False,)                                 None
cryst3-x0          (4,)       ('cryst3-npts',)                                               distance  x0       x0            m      (False,)                                 None
cryst3-x1          (4,)       ('cryst3-npts',)                                               distance  x1       x1            m      (False,)                                 None
cryst0-cam0_outx0  (4,)       ('cryst0-cam0-npts',)                                          distance  x0       x0            m      (False,)                                 None
cryst0-cam0_outx1  (4,)       ('cryst0-cam0-npts',)                                          distance  x1       x1            m      (False,)                                 None
cryst0-cam0-c0     (5,)       ('cryst0-cam0-npix0',)                                         distance  x0       x0            m      (True,)                                  None
cryst0-cam0-c1     (3,)       ('cryst0-cam0-npix1',)                                         distance  x1       x1            m      (True,)                                  None
cryst0-pinhole-x0  (49,)      ('cryst0-pinhole-npts',)                                       distance  x0       x0            m      (False,)                                 None
cryst0-pinhole-x1  (49,)      ('cryst0-pinhole-npts',)                                       distance  x1       x1            m      (False,)                                 None
cryst1-cam0_outx0  (4,)       ('cryst1-cam0-npts',)                                          distance  x0       x0            m      (False,)                                 None
cryst1-cam0_outx1  (4,)       ('cryst1-cam0-npts',)                                          distance  x1       x1            m      (False,)                                 None
cryst1-cam0-c0     (5,)       ('cryst1-cam0-npix0',)                                         distance  x0       x0            m      (True,)                                  None
cryst1-cam0-c1     (3,)       ('cryst1-cam0-npix1',)                                         distance  x1       x1            m      (True,)                                  None
cryst1-pinhole-x0  (49,)      ('cryst1-pinhole-npts',)                                       distance  x0       x0            m      (False,)                                 None
cryst1-pinhole-x1  (49,)      ('cryst1-pinhole-npts',)                                       distance  x1       x1            m      (False,)                                 None
cryst1-cam1_outx0  (4,)       ('cryst1-cam1-npts',)                                          distance  x0       x0            m      (False,)                                 None
cryst1-cam1_outx1  (4,)       ('cryst1-cam1-npts',)                                          distance  x1       x1            m      (False,)                                 None
cryst1-cam1-c0     (5,)       ('cryst1-cam1-npix0',)                                         distance  x0       x0            m      (True,)                                  None
cryst1-cam1-c1     (3,)       ('cryst1-cam1-npix1',)                                         distance  x1       x1            m      (True,)                                  None
cryst1-slit-x0     (4,)       ('cryst1-slit-npts',)                                          distance  x0       x0            m      (False,)                                 None
cryst1-slit-x1     (4,)       ('cryst1-slit-npts',)                                          distance  x1       x1            m      (False,)                                 None
cryst2-cam0_outx0  (4,)       ('cryst2-cam0-npts',)                                          distance  x0       x0            m      (False,)                                 None
cryst2-cam0_outx1  (4,)       ('cryst2-cam0-npts',)                                          distance  x1       x1            m      (False,)                                 None
cryst2-cam0-c0     (5,)       ('cryst2-cam0-npix0',)                                         distance  x0       x0            m      (True,)                                  None
cryst2-cam0-c1     (3,)       ('cryst2-cam0-npix1',)                                         distance  x1       x1            m      (True,)                                  None
cryst2-pinhole-x0  (49,)      ('cryst2-pinhole-npts',)                                       distance  x0       x0            m      (False,)                                 None
cryst2-pinhole-x1  (49,)      ('cryst2-pinhole-npts',)                                       distance  x1       x1            m      (False,)                                 None
cryst2-cam1_outx0  (4,)       ('cryst2-cam1-npts',)                                          distance  x0       x0            m      (False,)                                 None
cryst2-cam1_outx1  (4,)       ('cryst2-cam1-npts',)                                          distance  x1       x1            m      (False,)                                 None
cryst2-cam1-c0     (5,)       ('cryst2-cam1-npix0',)                                         distance  x0       x0            m      (True,)                                  None
cryst2-cam1-c1     (3,)       ('cryst2-cam1-npix1',)                                         distance  x1       x1            m      (True,)                                  None
diag9-etend        (5, 3)     ('cryst0-cam0-npix0', 'cryst0-cam0-npix1')                     etendue   etendue  etendue       m2.sr  (False, False)                           cryst0-cam0
diag9-los-ptx      (2, 5, 3)  ('diag9-los-nseg', 'cryst0-cam0-npix0', 'cryst0-cam0-npix1')   distance  x        distance      m      (True, True, False)                      cryst0-cam0
diag9-los-pty      (2, 5, 3)  ('diag9-los-nseg', 'cryst0-cam0-npix0', 'cryst0-cam0-npix1')   distance  y        distance      m      (True, False, False)                     cryst0-cam0
diag9-los-ptz      (2, 5, 3)  ('diag9-los-nseg', 'cryst0-cam0-npix0', 'cryst0-cam0-npix1')   distance  z        distance      m      (False, False, False)                    cryst0-cam0
diag9-los-Rmin     (5, 3)     ('cryst0-cam0-npix0', 'cryst0-cam0-npix1')                     distance  z        distance      m      (False, False)                           cryst0-cam0
diag9-los-startx   (5, 3)     ('cryst0-cam0-npix0', 'cryst0-cam0-npix1')                     distance  x        distance      m      (True, False)                            cryst0-cam0
diag9-los-starty   (5, 3)     ('cryst0-cam0-npix0', 'cryst0-cam0-npix1')                     distance  y        distance      m      (True, False)                            cryst0-cam0
diag9-los-startz   (5, 3)     ('cryst0-cam0-npix0', 'cryst0-cam0-npix1')                     distance  z        distance      m      (False, True)                            cryst0-cam0
diag9-los-alpha    (2, 5, 3)  ('diag9-los-nseg', 'cryst0-cam0-npix0', 'cryst0-cam0-npix1')   angle     alpha    angle         rad    (True, False, False)                     cryst0-cam0
diag9-los-dalpha   (2, 5, 3)  ('diag9-los-nseg', 'cryst0-cam0-npix0', 'cryst0-cam0-npix1')   angle     alpha    angle         rad    (False, False, False)                    cryst0-cam0
diag9-los-dbeta    (2, 5, 3)  ('diag9-los-nseg', 'cryst0-cam0-npix0', 'cryst0-cam0-npix1')   angle     beta     angle         rad    (False, False, False)                    cryst0-cam0
diag9_amin         (5, 3)     ('cryst0-cam0-npix0', 'cryst0-cam0-npix1')                     angle     alpha    angle         rad    (True, False)                            cryst0-cam0
diag9_amax         (5, 3)     ('cryst0-cam0-npix0', 'cryst0-cam0-npix1')                     angle     alpha    angle         rad    (True, False)                            cryst0-cam0
diag10-etend       (5, 3)     ('cryst1-cam0-npix0', 'cryst1-cam0-npix1')                     etendue   etendue  etendue       m2.sr  (True, False)                            cryst1-cam0
diag10-los-ptx     (2, 5, 3)  ('diag10-los-nseg', 'cryst1-cam0-npix0', 'cryst1-cam0-npix1')  distance  x        distance      m      (True, True, False)                      cryst1-cam0
diag10-los-pty     (2, 5, 3)  ('diag10-los-nseg', 'cryst1-cam0-npix0', 'cryst1-cam0-npix1')  distance  y        distance      m      (True, False, False)                     cryst1-cam0
diag10-los-ptz     (2, 5, 3)  ('diag10-los-nseg', 'cryst1-cam0-npix0', 'cryst1-cam0-npix1')  distance  z        distance      m      (False, False, False)                    cryst1-cam0
diag10-los-Rmin    (5, 3)     ('cryst1-cam0-npix0', 'cryst1-cam0-npix1')                     distance  z        distance      m      (False, True)                            cryst1-cam0
diag10-los-startx  (5, 3)     ('cryst1-cam0-npix0', 'cryst1-cam0-npix1')                     distance  x        distance      m      (True, False)                            cryst1-cam0
diag10-los-starty  (5, 3)     ('cryst1-cam0-npix0', 'cryst1-cam0-npix1')                     distance  y        distance      m      (True, False)                            cryst1-cam0
diag10-los-startz  (5, 3)     ('cryst1-cam0-npix0', 'cryst1-cam0-npix1')                     distance  z        distance      m      (False, True)                            cryst1-cam0
diag10-los-alpha   (2, 5, 3)  ('diag10-los-nseg', 'cryst1-cam0-npix0', 'cryst1-cam0-npix1')  angle     alpha    angle         rad    (True, False, False)                     cryst1-cam0
diag10-los-dalpha  (2, 5, 3)  ('diag10-los-nseg', 'cryst1-cam0-npix0', 'cryst1-cam0-npix1')  angle     alpha    angle         rad    (False, False, False)                    cryst1-cam0
diag10-los-dbeta   (2, 5, 3)  ('diag10-los-nseg', 'cryst1-cam0-npix0', 'cryst1-cam0-npix1')  angle     beta     angle         rad    (False, False, False)                    cryst1-cam0
diag10_amin        (5, 3)     ('cryst1-cam0-npix0', 'cryst1-cam0-npix1')                     angle     alpha    angle         rad    (True, False)                            cryst1-cam0
diag10_amax        (5, 3)     ('cryst1-cam0-npix0', 'cryst1-cam0-npix1')                     angle     alpha    angle         rad    (True, False)                            cryst1-cam0
diag11-etend       (5, 3)     ('cryst1-cam1-npix0', 'cryst1-cam1-npix1')                     etendue   etendue  etendue       m2.sr  (False, False)                           cryst1-cam1
diag11-los-ptx     (2, 5, 3)  ('diag11-los-nseg', 'cryst1-cam1-npix0', 'cryst1-cam1-npix1')  distance  x        distance      m      (False, False, False)                    cryst1-cam1
diag11-los-pty     (2, 5, 3)  ('diag11-los-nseg', 'cryst1-cam1-npix0', 'cryst1-cam1-npix1')  distance  y        distance      m      (False, False, False)                    cryst1-cam1
diag11-los-ptz     (2, 5, 3)  ('diag11-los-nseg', 'cryst1-cam1-npix0', 'cryst1-cam1-npix1')  distance  z        distance      m      (False, False, False)                    cryst1-cam1
diag11-los-Rmin    (5, 3)     ('cryst1-cam1-npix0', 'cryst1-cam1-npix1')                     distance  z        distance      m      (False, False)                           cryst1-cam1
diag11-los-startx  (5, 3)     ('cryst1-cam1-npix0', 'cryst1-cam1-npix1')                     distance  x        distance      m      (True, False)                            cryst1-cam1
diag11-los-starty  (5, 3)     ('cryst1-cam1-npix0', 'cryst1-cam1-npix1')                     distance  y        distance      m      (True, False)                            cryst1-cam1
diag11-los-startz  (5, 3)     ('cryst1-cam1-npix0', 'cryst1-cam1-npix1')                     distance  z        distance      m      (False, True)                            cryst1-cam1
diag11-los-alpha   (2, 5, 3)  ('diag11-los-nseg', 'cryst1-cam1-npix0', 'cryst1-cam1-npix1')  angle     alpha    angle         rad    (False, False, False)                    cryst1-cam1
diag11-los-dalpha  (2, 5, 3)  ('diag11-los-nseg', 'cryst1-cam1-npix0', 'cryst1-cam1-npix1')  angle     alpha    angle         rad    (False, False, False)                    cryst1-cam1
diag11-los-dbeta   (2, 5, 3)  ('diag11-los-nseg', 'cryst1-cam1-npix0', 'cryst1-cam1-npix1')  angle     beta     angle         rad    (False, False, False)                    cryst1-cam1
diag11_amin        (5, 3)     ('cryst1-cam1-npix0', 'cryst1-cam1-npix1')                     angle     alpha    angle         rad    (False, False)                           cryst1-cam1
diag11_amax        (5, 3)     ('cryst1-cam1-npix0', 'cryst1-cam1-npix1')                     angle     alpha    angle         rad    (False, False)                           cryst1-cam1
diag12-etend       (5, 3)     ('cryst2-cam0-npix0', 'cryst2-cam0-npix1')                     etendue   etendue  etendue       m2.sr  (False, False)                           cryst2-cam0
diag12-los-ptx     (2, 5, 3)  ('diag12-los-nseg', 'cryst2-cam0-npix0', 'cryst2-cam0-npix1')  distance  x        distance      m      (False, False, False)                    cryst2-cam0
diag12-los-pty     (2, 5, 3)  ('diag12-los-nseg', 'cryst2-cam0-npix0', 'cryst2-cam0-npix1')  distance  y        distance      m      (False, False, False)                    cryst2-cam0
diag12-los-ptz     (2, 5, 3)  ('diag12-los-nseg', 'cryst2-cam0-npix0', 'cryst2-cam0-npix1')  distance  z        distance      m      (False, False, False)                    cryst2-cam0
diag12-los-Rmin    (5, 3)     ('cryst2-cam0-npix0', 'cryst2-cam0-npix1')                     distance  z        distance      m      (False, False)                           cryst2-cam0
diag12-los-startx  (5, 3)     ('cryst2-cam0-npix0', 'cryst2-cam0-npix1')                     distance  x        distance      m      (True, False)                            cryst2-cam0
diag12-los-starty  (5, 3)     ('cryst2-cam0-npix0', 'cryst2-cam0-npix1')                     distance  y        distance      m      (True, False)                            cryst2-cam0
diag12-los-startz  (5, 3)     ('cryst2-cam0-npix0', 'cryst2-cam0-npix1')                     distance  z        distance      m      (False, True)                            cryst2-cam0
diag12-los-alpha   (2, 5, 3)  ('diag12-los-nseg', 'cryst2-cam0-npix0', 'cryst2-cam0-npix1')  angle     alpha    angle         rad    (False, False, False)                    cryst2-cam0
diag12-los-dalpha  (2, 5, 3)  ('diag12-los-nseg', 'cryst2-cam0-npix0', 'cryst2-cam0-npix1')  angle     alpha    angle         rad    (False, False, False)                    cryst2-cam0
diag12-los-dbeta   (2, 5, 3)  ('diag12-los-nseg', 'cryst2-cam0-npix0', 'cryst2-cam0-npix1')  angle     beta     angle         rad    (False, False, False)                    cryst2-cam0
diag12_amin        (5, 3)     ('cryst2-cam0-npix0', 'cryst2-cam0-npix1')                     angle     alpha    angle         rad    (False, False)                           cryst2-cam0
diag12_amax        (5, 3)     ('cryst2-cam0-npix0', 'cryst2-cam0-npix1')                     angle     alpha    angle         rad    (False, False)                           cryst2-cam0
diag13-etend       (5, 3)     ('cryst2-cam1-npix0', 'cryst2-cam1-npix1')                     etendue   etendue  etendue       m2.sr  (True, False)                            cryst2-cam1
diag13-los-ptx     (2, 5, 3)  ('diag13-los-nseg', 'cryst2-cam1-npix0', 'cryst2-cam1-npix1')  distance  x        distance      m      (True, False, False)                     cryst2-cam1
diag13-los-pty     (2, 5, 3)  ('diag13-los-nseg', 'cryst2-cam1-npix0', 'cryst2-cam1-npix1')  distance  y        distance      m      (True, False, False)                     cryst2-cam1
diag13-los-ptz     (2, 5, 3)  ('diag13-los-nseg', 'cryst2-cam1-npix0', 'cryst2-cam1-npix1')  distance  z        distance      m      (False, False, False)                    cryst2-cam1
diag13-los-Rmin    (5, 3)     ('cryst2-cam1-npix0', 'cryst2-cam1-npix1')                     distance  z        distance      m      (False, True)                            cryst2-cam1
diag13-los-startx  (5, 3)     ('cryst2-cam1-npix0', 'cryst2-cam1-npix1')                     distance  x        distance      m      (True, False)                            cryst2-cam1
diag13-los-starty  (5, 3)     ('cryst2-cam1-npix0', 'cryst2-cam1-npix1')                     distance  y        distance      m      (True, False)                            cryst2-cam1
diag13-los-startz  (5, 3)     ('cryst2-cam1-npix0', 'cryst2-cam1-npix1')                     distance  z        distance      m      (False, True)                            cryst2-cam1
diag13-los-alpha   (2, 5, 3)  ('diag13-los-nseg', 'cryst2-cam1-npix0', 'cryst2-cam1-npix1')  angle     alpha    angle         rad    (True, False, False)                     cryst2-cam1
diag13-los-dalpha  (2, 5, 3)  ('diag13-los-nseg', 'cryst2-cam1-npix0', 'cryst2-cam1-npix1')  angle     alpha    angle         rad    (False, False, False)                    cryst2-cam1
diag13-los-dbeta   (2, 5, 3)  ('diag13-los-nseg', 'cryst2-cam1-npix0', 'cryst2-cam1-npix1')  angle     beta     angle         rad    (False, False, False)                    cryst2-cam1
diag13_amin        (5, 3)     ('cryst2-cam1-npix0', 'cryst2-cam1-npix1')                     angle     alpha    angle         rad    (False, False)                           cryst2-cam1
diag13_amax        (5, 3)     ('cryst2-cam1-npix0', 'cryst2-cam1-npix1')                     angle     alpha    angle         rad    (False, False)                           cryst2-cam1

aperture        type    curve_r  area                    outline                                     poly  cent                                               color
--------------  ------  -------  ----------------------  ------------------------------------------  ----  -------------------------------------------------  ------------------
ap0             planar  None     0.0002                  ('ap0-x0', 'ap0-x1')                        None  [3.85 0.02 0.  ]                                   (0.0, 0.0, 0.0, 1)
ap1             planar  None     0.00010000000000000024  ('ap1-x0', 'ap1-x1')                        None  [ 3.80000000e+00 -2.60724108e-04 -1.64614723e-03]  (0.0, 0.0, 0.0, 1)
ap2             planar  None     0.00012500000000000003  ('ap2-x0', 'ap2-x1')                        None  [ 3.70020000e+00  1.56434465e-04 -9.87688341e-04]  (0.0, 0.0, 0.0, 1)
cryst0-pinhole  planar  None     7.832476153175994e-07   ('cryst0-pinhole-x0', 'cryst0-pinhole-x1')  None  [2.04697379 0.47397167 0.        ]                 (0.0, 0.0, 0.0, 1)
cryst1-pinhole  planar  None     7.832476153175994e-07   ('cryst1-pinhole-x0', 'cryst1-pinhole-x1')  None  [2.04697379 0.47397167 0.        ]                 (0.0, 0.0, 0.0, 1)
cryst1-slit     planar  None     8.000000000000001e-06   ('cryst1-slit-x0', 'cryst1-slit-x1')        None  [1.57935215 0.58804086 0.        ]                 (0.0, 0.0, 0.0, 1)
cryst2-pinhole  planar  None     7.832476153175994e-07   ('cryst2-pinhole-x0', 'cryst2-pinhole-x1')  None  [2.04697379 0.47397167 0.        ]                 (0.0, 0.0, 0.0, 1)

filter  type    curve_r  area                    name    outline                   poly  cent                                               energy   transmission  color
------  ------  -------  ----------------------  ------  ------------------------  ----  -------------------------------------------------  -------  ------------  ------------------
filt0   planar  None     0.00010000000000000024  blabla  ('filt0-x0', 'filt0-x1')  None  [ 3.80000000e+00 -2.60724108e-04 -1.64614723e-03]  filt0-E  filt0-trans   (0.0, 0.0, 0.0, 1)

camera       type  parallel  shape   ref                                         pix_area               pix_nb  outline                                     cent                                cents                                 qeff       color
-----------  ----  --------  ------  ------------------------------------------  ---------------------  ------  ------------------------------------------  ----------------------------------  ------------------------------------  ---------  ------------------
cam0         1d    False     (10,)   ('cam0-npix',)                              4e-05                  10      ('cam0_outx0', 'cam0_outx1')                None                                ('cam0-cx', 'cam0-cy', 'cam0-cz')     None       (0.0, 0.0, 0.0, 1)
cam1         1d    True      (10,)   ('cam1-npix',)                              4e-05                  10      ('cam1_outx0', 'cam1_outx1')                None                                ('cam1-cx', 'cam1-cy', 'cam1-cz')     cam1-qeff  (0.0, 0.0, 0.0, 1)
cam2         2d    True      (5, 5)  ('cam2-npix0', 'cam2-npix1')                0.0001                 25      ('cam2_outx0', 'cam2_outx1')                [3.99 0.   0.  ]                    ('cam2-c0', 'cam2-c1')                None       (0.0, 0.0, 0.0, 1)
cryst0-cam0  2d    True      (5, 3)  ('cryst0-cam0-npix0', 'cryst0-cam0-npix1')  0.0008533333333333334  15      ('cryst0-cam0_outx0', 'cryst0-cam0_outx1')  [3.86063198 1.99581159 0.        ]  ('cryst0-cam0-c0', 'cryst0-cam0-c1')  None       (0.0, 0.0, 0.0, 1)
cryst1-cam0  2d    True      (5, 3)  ('cryst1-cam0-npix0', 'cryst1-cam0-npix1')  0.0008533333333333334  15      ('cryst1-cam0_outx0', 'cryst1-cam0_outx1')  [3.94687733 0.66527053 0.        ]  ('cryst1-cam0-c0', 'cryst1-cam0-c1')  None       (0.0, 0.0, 0.0, 1)
cryst1-cam1  2d    True      (5, 3)  ('cryst1-cam1-npix0', 'cryst1-cam1-npix1')  0.0008533333333333334  15      ('cryst1-cam1_outx0', 'cryst1-cam1_outx1')  [3.82949741 2.47613692 0.        ]  ('cryst1-cam1-c0', 'cryst1-cam1-c1')  None       (0.0, 0.0, 0.0, 1)
cryst2-cam0  2d    True      (5, 3)  ('cryst2-cam0-npix0', 'cryst2-cam0-npix1')  0.0008533333333333334  15      ('cryst2-cam0_outx0', 'cryst2-cam0_outx1')  [3.94687733 0.66527053 0.        ]  ('cryst2-cam0-c0', 'cryst2-cam0-c1')  None       (0.0, 0.0, 0.0, 1)
cryst2-cam1  2d    True      (5, 3)  ('cryst2-cam1-npix0', 'cryst2-cam1-npix1')  0.0008533333333333334  15      ('cryst2-cam1_outx0', 'cryst2-cam1_outx1')  [3.88572701 1.60866061 0.        ]  ('cryst2-cam1-c0', 'cryst2-cam1-c1')  None       (0.0, 0.0, 0.0, 1)

diagnostic  optics                                           spectro  etendue       etend_type  los         amin         amax
----------  -----------------------------------------------  -------  ------------  ----------  ----------  -----------  -----------
diag0       ('cam0',)                                        False    None          None        None        None         None
diag1       ('cam1',)                                        False    None          None        None        None         None
diag2       ('cam2',)                                        False    None          None        None        None         None
diag3       ('cam0', 'ap0')                                  False    diag3-etend   analytical  diag3-los   None         None
diag4       ('cam1', 'ap0')                                  False    diag4-etend   analytical  diag4-los   None         None
diag5       ('cam2', 'ap0')                                  False    diag5-etend   analytical  diag5-los   None         None
diag6       ('cam0', 'ap0', 'filt0', 'ap2')                  False    diag6-etend   analytical  diag6-los   None         None
diag7       ('cam1', 'ap0', 'filt0', 'ap2')                  False    diag7-etend   analytical  None        None         None
diag8       ('cam2', 'ap0', 'filt0', 'ap2')                  False    diag8-etend   analytical  None        None         None
diag9       ('cryst0-cam0', 'cryst0', 'cryst0-pinhole')      True     diag9-etend   analytical  diag9-los   diag9_amin   diag9_amax
diag10      ('cryst1-cam0', 'cryst1', 'cryst1-pinhole')      True     diag10-etend  analytical  diag10-los  diag10_amin  diag10_amax
diag11      ('cryst1-cam1', 'cryst1', 'cryst1-slit', 'ap0')  True     diag11-etend  analytical  diag11-los  diag11_amin  diag11_amax
diag12      ('cryst2-cam0', 'cryst2', 'cryst2-pinhole')      True     diag12-etend  analytical  diag12-los  diag12_amin  diag12_amax
diag13      ('cryst2-cam1', 'cryst2')                        True     diag13-etend  analytical  diag13-los  diag13_amin  diag13_amax

rays        shape      ref                                                            pts                                                     lamb  Rmin             alpha
----------  ---------  -------------------------------------------------------------  ------------------------------------------------------  ----  ---------------  ----------------
diag3-los   (3, 10)    ('diag3-los-nseg', 'cam0-npix')                                ('diag3-los-ptx', 'diag3-los-pty', 'diag3-los-ptz')     None  diag3-los-Rmin   diag3-los-alpha
diag4-los   (3, 10)    ('diag4-los-nseg', 'cam1-npix')                                ('diag4-los-ptx', 'diag4-los-pty', 'diag4-los-ptz')     None  diag4-los-Rmin   diag4-los-alpha
diag5-los   (3, 5, 5)  ('diag5-los-nseg', 'cam2-npix0', 'cam2-npix1')                 ('diag5-los-ptx', 'diag5-los-pty', 'diag5-los-ptz')     None  diag5-los-Rmin   diag5-los-alpha
diag6-los   (3, 10)    ('diag6-los-nseg', 'cam0-npix')                                ('diag6-los-ptx', 'diag6-los-pty', 'diag6-los-ptz')     None  diag6-los-Rmin   diag6-los-alpha
diag9-los   (2, 5, 3)  ('diag9-los-nseg', 'cryst0-cam0-npix0', 'cryst0-cam0-npix1')   ('diag9-los-ptx', 'diag9-los-pty', 'diag9-los-ptz')     None  diag9-los-Rmin   diag9-los-alpha
diag10-los  (2, 5, 3)  ('diag10-los-nseg', 'cryst1-cam0-npix0', 'cryst1-cam0-npix1')  ('diag10-los-ptx', 'diag10-los-pty', 'diag10-los-ptz')  None  diag10-los-Rmin  diag10-los-alpha
diag11-los  (2, 5, 3)  ('diag11-los-nseg', 'cryst1-cam1-npix0', 'cryst1-cam1-npix1')  ('diag11-los-ptx', 'diag11-los-pty', 'diag11-los-ptz')  None  diag11-los-Rmin  diag11-los-alpha
diag12-los  (2, 5, 3)  ('diag12-los-nseg', 'cryst2-cam0-npix0', 'cryst2-cam0-npix1')  ('diag12-los-ptx', 'diag12-los-pty', 'diag12-los-ptz')  None  diag12-los-Rmin  diag12-los-alpha
diag13-los  (2, 5, 3)  ('diag13-los-nseg', 'cryst2-cam1-npix0', 'cryst2-cam1-npix1')  ('diag13-los-ptx', 'diag13-los-pty', 'diag13-los-ptz')  None  diag13-los-Rmin  diag13-los-alpha

crystal  type         curve_r     area                  name        miller   outline                     poly  cent              color
-------  -----------  ----------  --------------------  ----------  -------  --------------------------  ----  ----------------  ------------------
cryst0   planar       (inf, inf)  0.0016                Quartz_110  [1 1 0]  ('cryst0-x0', 'cryst0-x1')  None  [3.99 0.   0.  ]  (0.0, 0.0, 0.0, 1)
cryst1   cylindrical  (inf, 2.0)  0.0144                Quartz_110  [1 1 0]  ('cryst1-x0', 'cryst1-x1')  None  [3.99 0.   0.  ]  (0.0, 0.0, 0.0, 1)
cryst2   spherical    (2.0, 2.0)  0.014397840097197917  Quartz_110  [1 1 0]  ('cryst2-x0', 'cryst2-x1')  None  [3.99 0.   0.  ]  (0.0, 0.0, 0.0, 1)
cryst3   toroidal     (2.0, 1.0)  0.014397120518355566  Quartz_110  [1 1 0]  ('cryst3-x0', 'cryst3-x1')  None  [3.99 0.   0.  ]  (0.0, 0.0, 0.0, 1)

Now, plotting allows to plot:

None: the etendue
'lamb': the wavelength
'res': the wavelength resolution

In [6]: dax = test.obj.plot_diagnostic('diag10', data='res')

Method allows to visualize the projection of all apertures as seen from one or all pixels:
In [10]: out = test.obj.get_diagnostic_equivalent_aperture(key='diag10', reshape=False, convex=True, plot=True, return_for_etendue=True)

Hello @Didou09! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file tofu/data/_class5_compute.py:

Line 113:22: E225 missing whitespace around operator

In the file tofu/data/_class5_coordinates.py:

Line 14:1: E303 too many blank lines (3)
Line 20:1: E302 expected 2 blank lines, found 3
Line 68:13: E741 ambiguous variable name 'O'
Line 103:13: E741 ambiguous variable name 'O'
Line 143:1: W391 blank line at end of file

In the file tofu/data/_class5_projections.py:

Line 197:1: W391 blank line at end of file

In the file tofu/data/_class5_reflections_pts2pt.py:

Line 17:1: E303 too many blank lines (3)
Line 23:1: E302 expected 2 blank lines, found 3
Line 146:13: E741 ambiguous variable name 'O'
Line 245:26: E225 missing whitespace around operator
Line 249:25: E116 unexpected indentation (comment)
Line 250:25: E116 unexpected indentation (comment)
Line 251:25: E116 unexpected indentation (comment)
Line 319:13: E741 ambiguous variable name 'O'
Line 420:26: E225 missing whitespace around operator
Line 424:25: E116 unexpected indentation (comment)
Line 425:25: E116 unexpected indentation (comment)
Line 426:25: E116 unexpected indentation (comment)
Line 459:13: E303 too many blank lines (2)
Line 496:37: E741 ambiguous variable name 'O'
Line 499:9: E225 missing whitespace around operator
Line 500:9: E225 missing whitespace around operator
Line 518:5: E122 continuation line missing indentation or outdented
Line 587:19: E702 multiple statements on one line (semicolon)
Line 591:19: E702 multiple statements on one line (semicolon)
Line 609:5: E741 ambiguous variable name 'O'
Line 643:5: E741 ambiguous variable name 'O'
Line 720:5: E741 ambiguous variable name 'O'
Line 738:5: E265 block comment should start with '# '
Line 754:5: E265 block comment should start with '# '
Line 766:5: E265 block comment should start with '# '
Line 778:9: E116 unexpected indentation (comment)
Line 779:13: E116 unexpected indentation (comment)
Line 780:13: E116 unexpected indentation (comment)
Line 781:13: E116 unexpected indentation (comment)
Line 782:13: E116 unexpected indentation (comment)
Line 783:9: E116 unexpected indentation (comment)
Line 784:9: E116 unexpected indentation (comment)
Line 785:13: E116 unexpected indentation (comment)
Line 786:13: E116 unexpected indentation (comment)
Line 787:13: E116 unexpected indentation (comment)
Line 788:13: E116 unexpected indentation (comment)
Line 789:13: E116 unexpected indentation (comment)
Line 790:13: E116 unexpected indentation (comment)
Line 791:9: E116 unexpected indentation (comment)
Line 835:15: E702 multiple statements on one line (semicolon)
Line 846:5: E741 ambiguous variable name 'O'
Line 939:34: E202 whitespace before ')'
Line 940:34: E202 whitespace before ')'
Line 942:15: E702 multiple statements on one line (semicolon)

In the file tofu/data/_class5_reflections_ptsvect.py:

Line 75:13: E741 ambiguous variable name 'O'
Line 159:80: E501 line too long (82 > 79 characters)
Line 171:25: E128 continuation line under-indented for visual indent
Line 172:25: E128 continuation line under-indented for visual indent
Line 225:13: E741 ambiguous variable name 'O'
Line 299:80: E501 line too long (82 > 79 characters)
Line 492:15: E201 whitespace after '('
Line 512:5: E741 ambiguous variable name 'O'
Line 602:34: E202 whitespace before ')'
Line 603:34: E202 whitespace before ')'
Line 605:15: E702 multiple statements on one line (semicolon)
Line 616:5: E741 ambiguous variable name 'O'
Line 709:34: E202 whitespace before ')'
Line 710:34: E202 whitespace before ')'
Line 712:15: E702 multiple statements on one line (semicolon)

In the file tofu/data/_class8_Diagnostic.py:

Line 351:9: E265 block comment should start with '# '
Line 377:13: E265 block comment should start with '# '

In the file tofu/data/_class8_check.py:

Line 232:1: E303 too many blank lines (3)
Line 238:1: E302 expected 2 blank lines, found 3

In the file tofu/data/_class8_compute.py:

Line 42:21: E225 missing whitespace around operator
Line 44:11: E225 missing whitespace around operator
Line 323:23: E702 multiple statements on one line (semicolon)

In the file tofu/data/_class8_equivalent_apertures.py:

Line 92:21: W291 trailing whitespace
Line 166:24: W291 trailing whitespace
Line 514:1: E303 too many blank lines (3)
Line 520:1: E302 expected 2 blank lines, found 3
Line 571:16: W291 trailing whitespace
Line 692:1: W391 blank line at end of file

In the file tofu/data/_class8_etendue_los.py:

Line 329:5: E303 too many blank lines (2)
Line 881:36: E228 missing whitespace around modulo operator

In the file tofu/data/_class8_los_angles.py:

Line 14:1: E303 too many blank lines (3)
Line 147:9: E303 too many blank lines (2)

In the file tofu/data/_utils_surface3d.py:

Line 153:13: E116 unexpected indentation (comment)
Line 154:13: E116 unexpected indentation (comment)
Line 155:13: E116 unexpected indentation (comment)
Line 156:13: E116 unexpected indentation (comment)
Line 157:13: E116 unexpected indentation (comment)
Line 158:13: E116 unexpected indentation (comment)
Line 159:13: E116 unexpected indentation (comment)
Line 160:13: E116 unexpected indentation (comment)

In the file tofu/tests/tests08_diagnostics/test_01_diagnostics.py:

Line 505:21: E225 missing whitespace around operator

repo: ToFuProject/tofu


text:
Getting Error when starting it

When I try to start the tool, using the command "python app.py", I get this error code:
Traceback (most recent call last):   File "D:\AI\PuLID\app.py", line 6, in <module>     from pulid.pipeline import PuLIDPipeline   File "D:\AI\PuLID\pulid\pipeline.py", line 4, in <module>     import insightface   File "C:\Users\abu-m\miniconda3\envs\pulid\lib\site-packages\insightface\__init__.py", line 18, in <module>     from . import app   File "C:\Users\abu-m\miniconda3\envs\pulid\lib\site-packages\insightface\app\__init__.py", line 2, in <module>     from .mask_renderer import *   File "C:\Users\abu-m\miniconda3\envs\pulid\lib\site-packages\insightface\app\mask_renderer.py", line 4, in <module>     import albumentations as A   File "C:\Users\abu-m\miniconda3\envs\pulid\lib\site-packages\albumentations\__init__.py", line 6, in <module>     from .augmentations import *   File "C:\Users\abu-m\miniconda3\envs\pulid\lib\site-packages\albumentations\augmentations\__init__.py", line 1, in <module>     from .blur.functional import *   File "C:\Users\abu-m\miniconda3\envs\pulid\lib\site-packages\albumentations\augmentations\blur\__init__.py", line 1, in <module>     from .functional import *   File "C:\Users\abu-m\miniconda3\envs\pulid\lib\site-packages\albumentations\augmentations\blur\functional.py", line 9, in <module>     from albucore.utils import clipped, maybe_process_in_chunks, preserve_channel_dim ImportError: cannot import name 'preserve_channel_dim' from 'albucore.utils' (C:\Users\abu-m\miniconda3\envs\pulid\lib\site-packages\albucore\utils.py)
Any idea how to solve this?

just downgrade
pip install albucore==0.0.16

Maybe you can refer to this issue https://github.com/Gourieff/comfyui-reactor-node/issues/426

source: gharchive/issue

repo: ToTheBeginning/PuLID

license_type: permissive

license_source: github-api


text:
Feat: allow controlling max procs, better autodetect of usable cpus o…

…n unix

cc @tobymao

doing this in #3084

source: gharchive/pull-request

repo: TobikoData/sqlmesh


text:
RequestParameters.json general layout

In the partial mock up I have made for individuals I have suggested a potential layout which allows you to define GET and POST parameters and reference them independently.
I have taken the assumption that for GET requests we want to enable pretty complex queries and allow parameters from multiple models to be provided.
As far as I know this file is correct syntax for jsonSchema but if not then the main take home from this is the general idea and not the fine details.
All parameters defined are related directly to an individual, there are no parameters which are defined by another model (such as biosampleIDs).
The GET parameters should be treated as global and made available for use within all GET query endpoints (if using complex GET requests). They are defined within individuals/requestParameters.json and can be referenced as needed. This way if you don't support individuals then you only need to remove the references to the parameters.
Each GET parameter has been prefixed with individual., e.g. to query the id of an individual you'd use individual.ids=id1,id2, even with the /individuals endpoint. This allows for more complex GET requests as you can send biosamples.ids and individual.ids to the same query endpoint. Without this prefix you cannot send parameters from one model (or even schema) to another models endpoint as there will be ambiguity with the query.
The POST parameters can be sent to any POST query endpoints and follow the Individuals model very closely.
Areas for consideration:

Should GET requests be simple or complex?
should GET and POST be defined in the same file

I will complete this file over the next few days if this approach seems promising.

@Tom-Shorter There are 2 takes from my side:

I think that a general definition of common GET parameters could be a good concept; however, I see ATM mostly/only ids as "not really controversial" - and also maybe document timestamps if there is a need for them - because:
the examples you bring are being served through the filters paradigm, where available filters per entry type can be accessed through the entry type specific /someEntryType/filteringTerms/ endpoint.

In early design discussions (~2016) @jrambla convinced us that filters without explicit scoping would be less complex than explicit bindings; e.g. not to use individual.sex.id=PATO:0020002&biosample.materialType.id=EFO:0009656 but just filters=PATO:0020002,EFO:0009656 (in contrast to my scoped approach ~ to your's) and leave the correct resolution to the implementation.
This also leaves the option  e.g. support EFO:0009656 as available filter for variants; it does not need to be applied there.
Summary:

IMO we need a set of requestParameters w/ clear definition for use (POST, GET)
these should not interfere w/ the filters paradigm but be limited to e.g. ids (and see prev. discussions about "maybe ids is enough & entry type scopes") and technical / meta ones
clear use cases need to be defined for updates beyond 2.0 (which then also may include Boolean logic etc.)

I understand what you are saying about filters but I don't understand why we would use that approach. Filters might seem less complex but IMO it is actually more frustrating , as an implementer you want clear guidance about what to implement and as a user you want clearly defined queries you can use. We have the beacon models which give very clear instructions on how the response should look. For every parameter defined within the beacon model, every beacon instance should be allowing the same queries on those parameters, therefore it makes sense that the model defines how to query every single parameter mentioned within that model so everyone is on the same page.
As far as I know we don't define any filters, just the different possible types of filters meaning that two instances could treat the same model parameter as different filter types, therefore the same query cannot be sent to both instances and would have to be tailored to each. This approach might be correct as it might allow people more flexibility based on their underlying data model but it means that the standard beacon models are actually standard beacon responses and there is no standard beacon request for the beacon defined models.
My understanding of the filters may be incorrect though, I was looking at filters as parameters which are not found in the default model but are additional data points made available by that beacon instance. However, based on what has been said filters seem to be any parameter, including those within the models. If this is the case then separating out the ids is not required as they can just be sent as filters as well and if that's the case then for the beacon request body we could probably remove requestParameters and simply use filters as well.

That's - everything is a "filter" - Is why I meant that requestParameters a) should exist, at least allow parameter-based reflection of the ones implied in the path or in the POST meta (id(s), requestedSchema, pagination ...) with variant parameters a special case; and b) that I would be hesitant to overload those.
In any case - we can work on this in the future IF there is a multi-party agreement about shared scoped parameters.

IMHO, we shouldn't be discussing this topic here but in the Beacon repo.
So I'll post my comments there.

authors: Tom-Shorter jrambla mbaudis


text:
Question: PDTextField value with line break "\n"

Hi, I've been generating PDFs using user input and some of the text input allows for line breaks that span multiple lines. I set these strings using PDTextField.setValue() and a typical multiline string would look like this:
"This is a test string\nThis is a new line\nAnd another"
Problem is, after setting a string with line breaks and generating the PDF, this causes the lines to combine and overlap one another rather than separating to a separate line below (see pic). Does anyone know of a way to set strings with line breaks and have them reflect in a PDF text field?

(The entire "Notes" box is a text field and its multiline has been set to true)
Here the full code of how I set the value:
PDField treeNode;
try {
      treeNode = acroForm.getField(textFieldName);
      if (treeNode instanceof PDTextField) {
          PDTextField textField = ((PDTextField) treeNode)
          textField.setMultiline(true);
          textField.setValue(text);
      } else {
          throw new IOException();
      }
} catch (IOException ignored) {
}

hi guys, any news about that one?
we have the same issue here and tried a few workarounds with no luck.
regards from sunny Vienna -Eduard

repo: TomRoush/PdfBox-Android

license_source: bigquery


text:
PDFRenderer does not render acro form fields

I have created and filled an acroform. But the filled data is not displayed using PDFRenderer. It can be viewed using other PDF apps like Adobe Acrobat. Is there an example how I can achieve this using PDFBox?

Your rendering code is most likely correct. I tested text fields and the data wasn't rendered. Are there any other kinds of fields that you're using that aren't working?

I tried checkboxes. I think non of the fields are working.

Is there anyway to work around this?

I was able to have the a text field render correctly by adding the LiberationSans Font from assets and setting the fields default appearance to it... but only for the first field on the page that I set a value to for some reason.
I also had to set needAppearances = false before setting the field
                val document = PDDocument.load(activity?.assets?.open("pdf_with_multiple_textboxes.pdf"))
                val docCatalog = document.documentCatalog
                val acroForm = docCatalog.acroForm

                var res = acroForm.defaultResources
                if (res == null)
                    res = PDResources()

                val fontStream = activity?.assets?.open("LiberationSans-Regular.ttf")
                val font = PDType0Font.load(document, fontStream)
                val fontName = res.add(font)

                acroForm.defaultResources = res
                acroForm.fields.filterIsInstance(PDTextField::class.java).forEach{field->
                    acroForm.needAppearances = false

                    field.defaultAppearance = "/${fontName?.name} 11 Tf 1 0 0 rg"
                    field.value = "TEST"

                }

                // Create a renderer for the document
                val renderer = PDFRenderer(document)
                // Render the image to an RGB Bitmap
                val pageImage = renderer.renderImageWithDPI(0, 200f, Bitmap.Config.RGB_565)
                document.close()

                // Save the render result to an image
                val path = root?.absolutePath + "/render.jpg"
                val renderFile = File(path)
                val fileOut = FileOutputStream(renderFile)
                pageImage!!.compress(Bitmap.CompressFormat.JPEG, 100, fileOut)

authors: TomRoush iusmaharjan luca992


text:
can you add support to minimumTrackTintColor for single thumb?

can you add support to minimumTrackTintColor for single thumb?

Im not sure what you mean on this one sorry!

authors: Sebacho-Barajas TomThorpe

repo: TomThorpe/TTRangeSlider

license: mit


text:
Callback in Algorithm

During the Stochastic Project, I designed the following improvement for the callback used in the run method of our Algorithm class.
To instantiate an Algorithm we mainly pass instances of Functions and Operators. So I thought why not pass another class which will be responsible for the callbacks. At the moment, the callback used in the run method is restricted to iteration, x attributes and get_last_objective() method.
https://github.com/TomographicImaging/CIL/blob/0418ed2abd42c085db25aa3d0405b4b16e6591e4/Wrappers/Python/cil/optimisation/algorithms/Algorithm.py#L286-L287
This is not flexible. It basically gives access to the user for only three attributes.
The design that I have is the following lines
https://github.com/epapoutsellis/StochasticCIL/blob/477d51fd94c9d6554ca143b86e4b95a21c60835d/Wrappers/Python/cil/optimisation/algorithms/Algorithm.py#L311-L313
Instead of using function that takes 3 inputs, I pass a Callable Class with acts on the algorithm which in this case is self, i.e., the instantiated algorithm. In this way, the user has access to every attribute/method of the Algorithm class.
What the users can do with it? Anything they want
How I use it for the Stochastic Project?

I created a class that computes some Quality Metrics. It is basically a class that computes PSNR, MSE, MAE given a reference image, e.g., Metric(current iterate, reference). Users can pass other metrics from other libraries, e.g., SSIM, NRMSE from scikit-image without reimplementing everything. In addition, an attribute is created on the fly, so the user can have access to these values, e.g., ista.ssim will be a list of all the ssim values computed every update_objective_interval. Finally, verbose allows them to print or not all this information.

Instead of computing metrics and statistics of all the pixels/voxels, our users can define a specific ROI. This is useful for PET/SPECT applications measuring Standardized Uptake Value (SUV).  See here @gschramm . For instance we can compute the SSIM for all the pixels/voxels and the .mean for some ROI at the same time.

In some cases where our objectives are smooth, it is useful to compute the $|\nabla f (x_{k})||$ instead of the objective $f(x_{k})$

class ComputeGradient(AlgorithmDiagnostics):

    def __init__(self):
        super(ComputeGradient, self).__init__(verbose = 0)

    def __call__(self, algo):
        if not hasattr(algo, "gradf"):
            setattr(algo, "gradf", [])
        algo.gradf.append(algo.f.gradient(algo.get_output()).norm())

and the user can do plt.plot(ista.gradf) to get

Also, we can compute other distances $||x_{k} - x^{*}||_{2}$.

In the Algorithm class the default stopping criterion is max_iteration. We can replace it using a class that overrides the should_stop method. For instance, we can use $||x_{k+1} - x_{k}||_{2}<\mbox{tol}$. Also, in some cases, e.g., FISTA/PDHG with an iterative inner solver (FGP_TV, TotalVariation, TGV) the important is not only on the cold/warm start but also on the metric and accuracy used to solve the inner problem.  For instance, the following rule
https://github.com/TomographicImaging/CIL/blob/0418ed2abd42c085db25aa3d0405b4b16e6591e4/Wrappers/Python/cil/optimisation/functions/TotalVariation.py#L333-L338
is kind of strange in my opinion, but I implemented to have an exact match with the FGP_TV from CCPi-Regtk. According to this paper there are better stopping rules.

We can also define stopping rules using algo.timings  and compared different algorithms in terms of wall time, e.g., Difference from optimal vs computational time. Particularly useful for benchmarking stochastic vs deterministic recons.

One can create fancy dynamic plots, for instance a row of 3 figures showing the current iterate, difference from optimal solution and an SSIM plot (iterations vs SSIM values).

We can use Weights and Biases platform to monitor whatever we want when an algorithm is executed.

There is no need to have a logger in the Algorithm Class

https://github.com/TomographicImaging/CIL/blob/0418ed2abd42c085db25aa3d0405b4b16e6591e4/Wrappers/Python/cil/optimisation/algorithms/Algorithm.py#L83-L90
A Logger class passed to callback can take care of this. Also, wandb has this functionality. @gschramm  used Tensorboard here. I had some problems with Tensorboard and its gui.
Finally, a similar design is used for the Proximal Gradient Algorithm, Preconditioner and StepSize classes, but I will create separate issues for them.
Note Atm, all the callbacks are executed every update_objective_interval. This can be easily fixed if we want but is not important in my opinion. Basically, we can compute SSIM every 10 iterations, plot the current iterate every 2 iterations and the .mean of $x_{k}$ every 50 iterations.

I guess maybe we should have a new callbacks kwarg (leaving the existing callback kwarg as-is for backwards compatibility)?

Had a quick chat with @paskino @MargaretDuff.
I'm going to:

introduce a new base Callback class
put existing logging functionality into new callback classes inheriting from Callback
add new functionality too (e.g. tqdm-based progress bar callbacks)
introduce a new callbacks=[] kwarg
document how to create/customise callbacks
soft-deprecate the old callback/verbose kwargs

if not None, print a warning and construct a new Callback class based on them

Are you going to move update_objective_interval from the signature of Algorithm and pass it to Callback?

Discussed with @epapoutsellis @MargaretDuff @jakobsj
It seems that the callback route could be used to define the stopping criterion?

authors: casperdcl epapoutsellis paskino

repo: TomographicImaging/CIL


text:
🛑 VTP.XYZ is down

In a41639c, VTP.XYZ (https://vtp.xyz/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: VTP.XYZ is back up in 493f205.

repo: TomsProject/uptime

license: MIT


text:
No more iframe

for final review

looks good

repo: Toniq-Labs/toniq-labs-design-system


text:
issue 151 changes | duplicate cells

Default checklist

[ ] Are there any manual checks you performed that could be automated and become part of the CI?
[ ] Are any issues relevant to the PR mentioned so that they will be automatically closed when the PR merges?

Duplicate cells with copy icon
closes #151

Closing for now since we decided that some preparatory refactoring would make this easier.

authors: epatters hamidahoderinwale

repo: ToposInstitute/CatColab


text:
Reconsider the importance of gpboost

cannot implement in our cluster - might happen to other users too - consider making it optional or not import as an dependency.

Done

authors: ShaunFChen drhosseinjavedani

repo: TorkamaniLab/zoish


text:
Add Pl3xMap v2 support

Pl3xMap somewhat recently (August this year) released Pl3xMap v2 which apparently is "a complete rewrite of [the] original Pl3xMap plugin from the ground up." (taken from their Discord announcement).
It would be cool to see it supported some time soon. Here is the repository: https://github.com/BillyGalbreath/Pl3xMap/tree/v2

I've gotten this response from Billy, the pl3xmap developer that I'll just forward:
The documentation is lacking, but I have some examples in the GitHub repo you can look at to see how stuff works

https://github.com/BillyGalbreath/Pl3xMap/wiki/Pl3xMap-API

Duplicate https://github.com/TownyAdvanced/MapTowny/issues/34

I was working on Pl3xMap v2 support, however I ran into a big issue with setting properties on map markers (e.g. the color,name,etc of the claim that shows up on the map). I reported the issue on the Pl3xMap github, but haven't received a response or fix yet.
Once a fix is pushed to Pl3xMap, I'll release MapTowny's support for Pl3xMap v2. Thank you for your suggestion!

Ah I see, thanks for clarifying. I'll patiently wait for the update then, no worries.
I just wanted to make sure it's not being forgotten :)

Yay, it's been fixed in Pl3xMap so I guess you can continue working on this :D

Added in version 2.1.0.

repo: TownyAdvanced/MapTowny


text:
SOPORTE TICA-->MTTO-->Informe Servicios: investigar el guardado de las "Fechas Inicio/Fin Tareas"

Ambiente Producción - v2.3.10
Descripción:
Se han Ejecutado las ordenes de trabajo en la instancia de Tierras de Capayán y como se observa en el video de abajo los datos de las Fechas Inicio/Fin tarea se guardaron invertidos.
https://github.com/user-attachments/assets/b4c9e37f-5b0c-4fce-ba37-97b8760b16dd

Datos adicionales:
Resultado esperado (1): Entender por qué ha sucedido el defecto mencionado, anteriormente.
Se solicita investigar los casos de las siguientes Ordenes de Trabajo:

Nota: No se pudo reproducir en el ambiente de Test.
#OT

7414
7433
7241
7242

Pasos a reproducir:

En Mantenimiento
Clic en Informe de servicio
Clic en el botón de acción "Ver Informe"

Una vez aclarado el desperfecto...
Resultado esperado (2):

Que al iniciar y terminar la tarea, el sistema recupere en pantalla los datos correspondientes a la Fecha inicio tarea y a la Fecha fin tarea y;
Que los datos de las OTs enumeradas arriba del issue figuren en su campo correspondiente.

Pablo Marrelli.-

Solucionado en Producción

authors: floto-trazalog jfernandez-trazalog

repo: Trazalog/traz-prod-assetplanner


text:
Question

Which memory addresses are read when using the auto tracker? A list would be appreciated if you have one.

I don't have a list of everything written down anywhere but most every address that is used is listed in the autotracker.cs file.
Val's repo for the randomizer is useful for finding addresses of things in the game as well https://github.com/afresquet/kh2fm-randomizer

The listed addresses in the cs files seem to differ from the addresses when viewed in the game's active memory. In the AutoTracker.cs, it shows the Promise Charm being tracked using address 0032F1F0. When viewing that address with Cheat Engine, it shows an unknown or invalid value. When looking for myself, it shows a Promise Charm under address 2032F1C4.


text:
Recent apps doesn't work

I've got new tablet (Xiaomi Pad 6s Pro) under Android 14 (HyperOS).
Like on every my device, I tried to install Lighting Launcher, and it looks like is working OK, but a launch the recent app (pressing the menu soft key) and tap an app to switch to it, the scene goes to home and Lighting Launcher crashes.

It looks like system update (Xiaomi Pad 6s Pro 1.0.3.0 HeperOS) solved the problem so now all work well for

repo: TrianguloY/LightningLauncher


text:
Rest endpoint for timetable creation not working

This error is logged in the rest logs
wake_robin_rest_server listening on 0.0.0.0:9010
gtfs_export_new arguments: agency_id_array: [
  "1532"
] name: "annie-test-export"
result.rows[0]:  {
  fetch_url: 'https://data.trilliumtransit.com/gtfs/lubbock-tx-us/lubbock-tx-us.zip',
  email: 'evan@trilliumtransit.com'
}
createResponse:  { error: 'Typethis.stream.clearLine is not a function' }
gtfs_export_new arguments: agency_id_array: [
  "493"
] name: "victorville-ca-us"
result.rows[0]:  {
  fetch_url: 'https://data.trilliumtransit.com/gtfs/merrimackvalley-ma-us/merrimackvalley-ma-us--ttable.zip',
  email: 'evan@trilliumtransit.com'
}
createResponse:  { error: 'Typethis.stream.clearLine is not a function' }
[wakerobin@gtfs-h ~]$

And it's seen in the gtfstohtml logs
/home/gtfstohtml/.pm2/logs/gtfs-to-html-service-out.log last 15 lines:
1|gtfs-to- | Importing - timetable_stop_order.txt - 400 lines imported
1|gtfs-to- | Importing - timetable_stop_order.txt - 600 lines imported
1|gtfs-to- | Importing - timetable_stop_order.txt - 700 lines imported
1|gtfs-to- | Completed GTFS import
1|gtfs-to- | Completed GTFS import for 1 file
1|gtfs-to- | [  Error: this.stream.clearLine is not a function
1|gtfs-to- | ]
1|gtfs-to- | event - build page: /
1|gtfs-to- | wait  - compiling...
1|gtfs-to- | event - compiled successfully
1|gtfs-to- | event - build page: /next/dist/pages/_error
1|gtfs-to- | wait  - compiling...
1|gtfs-to- | event - compiled successfully
1|gtfs-to- | wait  - compiling...
1|gtfs-to- | event - compiled successfully

Testing on https://data.trilliumtransit.com/gtfs/merrimackvalley-ma-us/merrimackvalley-ma-us--ttable.zip

@evantrillium @ekeaton FYI! This is a gtfs-to-html-service issue not an email issue, looking at it now

petaluma's ttable url works on all g2h-service servers and local
merrimack's ttable url works on local, but no g2h-service servers

@evantrillium Ok this is working for me now! Successfully got an email for merrimack's timetable feed.
I think I'll open an issue to send an email when problems with timetable generation occurs, rather than just leaving the requester hanging and wondering if it's still running.

repo: Trillium-Solutions/gtfs-to-html-service


text:
How to add GSN provider to useDApp?

So, how can I add gsn RelayProvider to my project using useDApp? Any ideas? I'm afraid I don't have enough expertise in this. Where can i get currentProvider and how to bind provider to useDApp? Image from GSN docs

However, I decided to give it a try. But what should I pass to the provider parameter in RelayProvider.newProvider? It looks like using the web3.js library, but we use ethers. I tried to pass there library from useEthers, but an error is shown. And unfortunately this is not a type error.

If readonly just put it in your config.

I don't quite understand. Put provider to useDApp config? How?

So, I think this not useDApp issue, i close it.
Maybe my experience will help someone.
Unfortunately, RelayProvider does not work in the activate useDApp method. Just like the library provider from useEthers is not suitable as a provider parameter in Relay Provider. I think this is the problem of the Relay Provider itself.
Therefore, we decided on the project to use transactions via gsn separately from transactions running through the useDApp library. Here is the code that calls the deposit method in the contract. MyContract is a JSON abi contract file. The work was carried out in Binace Smart Chain Testnet

repo: TrueFiEng/useDApp


text:
Timer polish

Partially from #37

[x] Show time in minutes and seconds
[x] Show negative time better
[ ] Show number of penalties accrued
[x] Fix display of lost time when swapping
[ ] Render overtime better in some way

Labelled as Future as the remaining items only apply to timed games, which aren't available in the MVP release.

repo: TruncateGame/Truncate


text:
Upload ESCX

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

[x] Filename in the lowercase format
[x] Image format: png
[x] Image size: 256 by 256 px

repo: TrustWallet/tokens


text:
Please add Hyper Token, HYPE

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

[ ] Filename in the lowercase format
[ ] Image format: png
[ ] Image size: 256 by 256 px

Added here https://github.com/TrustWallet/tokens/commit/407740d9ef2d925d07fa4b5875890d32f3a6e1ca


text:
Only get tag names when model.tags exists

fixes travis test bug

This seems to happen fairly often in Travis tests, and causes them to need to be restarted incredibly often. I'm not sure if this points to a deeper issue, but as I cannot reproduce the issue locally my only thought was to figure out where the issue was coming from and fix work around it.
/cc @kevinansfield

Turns out that didn't actually fix it, investigating further.

Tests aren't quite done yet, but all the chrome ones have passed :)
✨  Ready for review

repo: TryGhost/Ghost-Admin


text:
Links in the editor, in dark mode, don't have the site's accent colour

Issue Summary
Having had my Ghost(Pro) instance updated to 5.68 yesterday and thus tried out the new editor for the first time, I noticed that text with links don't have the site's accent colour to them but rather the standard #DDE1E5 HEX colour. The line down the side of blockquotes (in dark mode) does indeed have the accent colour, as does text with links in light mode.
Steps to Reproduce

Switch to dark mode
Select some text
Apply a link to it
See that the linked-to-text doesn't change to the site's accent colour but rather stays as #DDE1E5

Ghost Version
5.68
Node.js Version
Yes
How did you install Ghost?
Ghost(Pro)
Database type
MySQL 5.7
Browser & OS version
No response
Relevant log / error output
No response
Code of Conduct

[X] I agree to be friendly and polite to people in this repository

Can I work on this issue?

can this issue be assigned to me ?

This was an intentional change due to issues with some site's accent colours being unreadable in either light/dark mode, we don't intend to re-introduce the old behaviour.

authors: Harshvar25 git-init-priyanshu kevinansfield stromfeldt

repo: TryGhost/Ghost


text:
Add API end points for App settings

To manage settings for Apps the I would suggest to add the following API end points. Similar to Ghost settings, App default settings are added using a json-file (#2139):

GET /ghost/api/v0.1/apps/<id or app-name>/settings/: get a list of all available settings
GET /ghost/api/v0.1/apps/<id or app-name>/settings/<id or name>: get setting using id or name
PUT /ghost/api/v0.1/apps/<id or app-name>/settings/<id or name>: edit setting

Temporarily closing all of the app specific issues (tagged with later). Will review & reopen those that are still relevant when we kick off that project, which should be shortly after Zelda lands.

authors: ErisDS sebgie


text:
🐛 Fixed missing unsaved changes modal for member newsletters

fix #15507
manually handle relationship changes detection labels and newsletters
add dirtyAttributes controller property - return newsletters and labels dirty attributes status

[x] yarn test:all
[x] yarn lint

Hey @h2akim thanks again! This is now merged and will go out in the next release.


text:
📖  replace any support.ghost.org link

refs #7421

This needs a change on LTS as well. Added to the next LTS milestone.


text:
Updated counts api url

closes TryGhost/Team#2094

Codecov Report
Base: 47.71% // Head: 47.67% // Decreases project coverage by -0.03% :warning:

Coverage data is based on head (0f2f8ff) compared to base (bec2dd2).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #12      +/-   ##
==========================================
- Coverage   47.71%   47.67%   -0.04%
==========================================
  Files          41       41
  Lines        1247     1248       +1
  Branches      279      280       +1
==========================================
  Hits          595      595
  Misses        549      549
- Partials      103      104       +1

Impacted Files
Coverage Δ

src/utils/api.js
0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

authors: codecov-commenter lenabaidakova

repo: TryGhost/comments-ui


text:
关于batch-size设置为3072

关于batch-size在论文中提及的很少。我有看过NVIDIA的Megatron模型代码，在一张V-100上存1.3B（模型并行为2的条件下）的参数，batch_size最大为16（默认是8），如果不用梯度累加策略的话，在 64卡上batch最大为512，请问您是如何做到3072呢？

做了梯度累计，batch_size 12然后做8次梯度累计。

做了梯度累计，batch_size 12然后做8次梯度累计。

所以，请问是2张卡做模型并行、32张卡做数据并行吗？

repo: TsinghuaAI/CPM-Generate


text:
composite index to cypher procedure

composite index to cypher procedure

Still draft?

Still draft?

是的，正在开发

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: lipanpan03:x: 允厥允厥 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

authors: CLAassistant lipanpan03 qishipengqsp

repo: TuGraph-family/tugraph-db


text:
Use views in concretization

To concretize, we need the runtime shapes, and to get them, we actually apply the lenses: https://github.com/TuringLang/AbstractPPL.jl/blob/9b64dd89dcde2dc0d8845cd01b4cc305ea83086e/src/varname.jl#L428
It would be good if this were only views. Related: https://github.com/TuringLang/DynamicPPL.jl/issues/341

It would be nice if something like Base.maybeview was implemented for lenses

Yea, I thought about this yesterday after writing. Maybe we can implement some utils locally and then ask the Setfield people whether they want them (although they explicitely exclude new stuff for Setfield, IIRC...)

Fixed by https://github.com/TuringLang/AbstractPPL.jl/pull/43?

No, it's not fixed, the implementation of get uses normal indexing (see linked issue).

authors: phipsgabler torfjelde yebai


text:
Make Bijectors.jl lower-bound 0.7 instead of 0.6.4

Thanks to @xukai92 we know that the following fails if you're using Bijectors@0.6:
using Turing
@model model(x, q=nothing) = begin
    if isnothing(q)
        s ~ InverseGamma(2, 3)
        m ~ Normal(0.0, sqrt(s))
    else
        θ ~ q
        s, m = θ
    end
    for i = 1:length(x)
        x[i] ~ Normal(m, sqrt(s))
    end
end
x = randn(200)
q1 = vi(model(x),     ADVI(10, 1_000))
q2 = vi(model(x, q1), ADVI(10, 1_000))

Because calling bijector on q1 results in a DistributionBijector which has been removed from Bijectors.jl (https://github.com/TuringLang/Bijectors.jl/pull/104).
On Bijectors@0.7 this correctly results in the following error:
julia> q2 = vi(model(x, q1), ADVI(10, 1_000))
ERROR: MethodError: no method matching bijector(::Bijectors.TransformedDistribution{DistributionsAD.TuringDiagMvNormal{Array{Float64,1},Array{Float64,1}},Bijectors.Stacked{Tuple{Bijectors.Exp{0},Bijectors.Identity{0}},2},Multivariate})

since we cannot know what bijector(d::TransformedDistribution) should be in general. But for the above example, we just need to add the line:
Turing.bijector(d::typeof(q1)) = inv(d.transform)

to make it work.
Also added re-export for Bijectors.jl.

thanks, @torfjelde!

authors: torfjelde yebai


text:
Add link to Statistical Rethinking models?

I've found the models implemented as part of the StatisticalRethinking.jl repo to be quite helpful, it might be worthwhile to add a link to them in the readme to this repo (at least until more examples are available here).
https://github.com/StatisticalRethinkingJulia/TuringModels.jl

Great idea! I'll add it. Thank you for reminding us to do this seemingly-obvious thing that I have missed.

Updated on the README. Thanks again!

Thank you!

repo: TuringLang/TuringTutorials


text:
Caesar&Cipher

Describe the project
A encryptor and decryptor based on classic caesar and cipher method
Issue Type:

[ ] Bug Report
[ ] Feature Request
[ ] Documentation
[x] New Project

Additional context
Made using HTML CSS and JS
Screenshots

If applicable, add screenshots to help explain your problem.

kindly assign this to me

Already present in the repo

repo: TusharKesarwani/Front-End-Projects


text:
Add Accordion Menu Project

Describe the project
Hii @TusharKesarwani , I want to add this project so please assign to me.
Issue Type:

[ ] Bug Report
[ ] Feature Request
[ ] Documentation
[x] New Project

Screenshots

Hi @Arun9739, I am a contributor in ssoc'23,
If the issue is still open I would like to work on this issue, please assign it to me

Already present in the repo


text:
HTML

HTML
User Story
As a boot camp student,
I want a Prework Study Guide website,
so that I can review all the information I learned throughout Prework.
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I visit the website in my browser
THEN I see four boxes titled HTML, CSS, Git, and JavaScript with associated notes listed.

Completed

repo: TweetingCynical/prework


text:
Gh pages upgrade twilio libs

Gh pages updates.
upgrade twilio libs.

Oh that file get away, I already fixed it, thanks @acamino :grey_exclamation:
Let me know if anything else...

Thanks @juancarlospaco. LGTM

authors: acamino juancarlospaco

repo: TwilioDevEd/twiliochat-servlets


text:
Added missing events

Pull request summary

I've added the user authorization grant and channel subscription end event types. I tested the user authorization grant, but am not able to test channel subscription end.
Checklist

[x] If code changes were made then they have been tested.

[x] I have updated the documentation to reflect the changes.
[x] I have updated the changelog with a quick recap of my changes.

[ ] This PR fixes an issue.
[x] This PR adds something new (e.g. new method or parameters).
[ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
[ ] This PR is not a code change (e.g. documentation, README, ...)

Thanks +1

authors: EvieePy jbot-the-dev

repo: TwitchIO/TwitchIO


text:
parenthesized types break highlighting

  message_handlers: (number);

breaks highlighting for the rest of the file.
  message_handlers: number;

works fine.

Verified. Up for grabs :rose:
var message_handlers: (number);
var bar = 123;

any effort in grammar should go to https://github.com/TypeStrong/atom-typescript/issues/675 :rose:

Hi,
I think this is related so I'll attach a screenshot; the parentheses around typing information in this case is in a method parameter.

Should work with release https://github.com/TypeStrong/atom-typescript/releases/tag/v8.0.0 :rose: If not raise issue at https://github.com/Microsoft/TypeScript-TmLanguage/issues and link us :rose:

authors: basarat chadaustin mjohnsonengr

repo: TypeStrong/atom-typescript


text:
Using type declarations - Unable to locate entry point

Description
I just sent a PR to upgrade Chart.js to 0.20.9! :tada:
Chart.js has been using JS Doc since the beginning, but more recently has added hand coded type declarations. You mentioned the other day that TypeDoc can use type declarations. I wanted to try this since I think it'd result in better typed docs (most of the types from the JS Doc end up as any and the type declarations are fairly fleshed out so should be better)
I set "entryPoints": ["types/index.esm.d.ts"], and got:

Warning: Unable to locate entry point: types/index.esm.d.ts

I was wondering if you had any ideas if I might be doing something wrong
Steps to reproduce
git clone https://github.com/benmccann/Chart.js
cd Chart.js
git checkout typedoc-upgrade
npm install

Change typedocOptions in tsconfig.json to:
  "typedocOptions": {
    "name": "Chart.js",
    "entryPoints": ["types/index.esm.d.ts"],
    "excludeExternals": true,
    "excludeNotExported": true,
    "includeVersion": true,
    "includes": "./types",
    "out": "./dist/docs/typedoc"
  },

Run npx typedoc

It looks like these declaration files aren't included in the tsconfig's include option, making this change lets the docs generate:
diff --git a/tsconfig.json b/tsconfig.json
index c3f6ee1b..3da36225 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -12,7 +12,7 @@
   },
   "typedocOptions": {
     "name": "Chart.js",
-    "entryPoints": ["src/index.esm.js"],
+    "entryPoints": ["types/index.esm.d.ts"],
     "excludeExternals": true,
     "excludeNotExported": true,
     "includeVersion": true,
@@ -20,6 +20,7 @@
     "out": "./dist/docs/typedoc"
   },
   "include": [
-    "./src/**/*.js"
+    "./src/**/*.js",
+    "types"
   ]
 }

It looks like these declaration files aren't included in the tsconfig's include option, making this change lets the docs generate:
diff --git a/tsconfig.json b/tsconfig.json
index c3f6ee1b..3da36225 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -12,7 +12,7 @@
   },
   "typedocOptions": {
     "name": "Chart.js",
-    "entryPoints": ["src/index.esm.js"],
+    "entryPoints": ["types/index.esm.d.ts"],
     "excludeExternals": true,
     "excludeNotExported": true,
     "includeVersion": true,
@@ -20,6 +20,7 @@
     "out": "./dist/docs/typedoc"
   },
   "include": [
-    "./src/**/*.js"
+    "./src/**/*.js",
+    "types"
   ]
 }

Ah, thanks!!

Ah, thanks!!

repo: TypeStrong/typedoc


text:
Make a configuration option to default to having "Inherited" unchecked.

Since there is no way to exclude inherited members from TypeDoc, can we at least add an option to default to having the "Inherited" checkbox unchecked?  In some situations, it makes it very hard to read some docs with tons of inherited members that don't really help and actually hide what the documents are really for.  Thanks.

Duplicate of #307


text:
Generating documentation for a constructed class?

Search terms
'inner' found

https://github.com/TypeStrong/typedoc/issues/2476
https://github.com/TypeStrong/typedoc/issues/1581

Question
I have code like this
export function getSomeClassImpl<T extends ArgType>(TypeCtor: new(n: number) => T) {
  type Type = T;

  /**
   * SomeClass functions
   */
  class SomeClassImpl {
    /**
     * Negates someClass.
     * @param s - The source.
     * @param dst - type to hold result. If not passed a new one is created.
     * @returns -s.
     */
    static negate(s: ArgType, dst?: Type): Type {
      dst = dst || new TypeCtor(s.length);

      for (let i = 0; i < s.length; ++i) {
        dst[i] = -s[i];
      }

      return dst;
    }
  }

  return SomeClassImpl;
}

And I use that toe generate 3 versions of this class with different types
import {getSomeClassImpl} from './someclass';

const someClassF32 = getSomeClassImpl(Float32Array);
const someClassF64 = getSomeClassImpl(Float64Array);
const someClassArray = getSomeClassImpl(Array);

export {
  someClassF32,
  someClassF64,
  someClassArray,
};

When I generate the docs I get this
[warning] SomeClassImpl, defined in ./src/someclass.ts, is referenced by someClassArray but not included in the documentation.

Which then of course, like it says, is not included in the docs.
What I kind of don't get though is someClassF32 etc are exported. Yet they aren't documented. Well, they just say
someClassF32: typeof SomeClassImpl = ...

Further, typescript itself (or whatever VSCode uses to show intellisense) show docs

As those functions are part of the public API.
So it kind of feels like typedoc should also be generating docs. No?

In an attempt to maintain some sanity when dealing with the compiler API, TypeDoc makes the assumption that it's reasonable to document variables as variables unless instructed otherwise or incredibly obvious that they should be something else (e.g. const x = () => 1 is obviously intended to be a function)
const someClassF32 = getSomeClassImpl(Float32Array);

is not obviously a class looking at the nodes used to declare it, so TypeDoc doesn't document it as one. Either of the following will give you docs like what you want:
/** @class */
const someClassF32 = getSomeClassImpl(Float32Array);

class someClassF32 extends getSomeClassImpl(Float32Array) {}

Wow, such a quick response. Thank you so much and thank you for typedoc!


text:
Fix group boosts

Not sure how we got this mixed-up, but at some point we moved the code that computes boost inside the same logical block that computes human-readable group names. Long story short, only the first of a group type was having its boost computed.

Thanks! Yeah, that's definitely an issue

Thanks for the quick review 👍


text:
chore: add node version to release workflow

[ ] Explain the motivation for making this change.
[ ] Provide a solid test plan for your changes.
[ ] Link to the issue - if any issue number here

Why?

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

authors: jenkins-tf mrisoli prilutskiy

repo: Typeform/embed


text:
feat(DIST-703): Add support for disableTracking option

Merge #174 first.
When reviewing filter out changes from PR #174.

:tada: This PR is included in version @typeform/embed-v1.0.0-next.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version @typeform/embed-v1.0.0-next.2 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version @typeform/embed-v1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

authors: jenkins-tf mathio


text:
🛑 Web OPL is down

In 0ee9348, Web OPL (https://opl.uab.cat) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Web OPL is back up in 5cfc680 after 8 minutes.

repo: UAB-OPL/opl-uab-monitoring


text:
Remove need for libjack and libasound2

There's no good reason why I need to install support for multi-media libraries to run yakut. This makes it difficult to install in thin platforms that don't come with such support. My best guess is that this is coming in through python-rtmidi. I'd suggest either removing that dependency or finding a way to use with without audio support.

Documenting here that the required packages on Debian-based systems are libasound2-dev, libjack-dev.

ugh, why should I require multi-media support to use this CLI? We really need a way to make that optional

@coderkalyan is our only hope.

Really sorry for the delay. Will push this to the top of my queue, hopefully in the next day or two.

repo: UAVCAN/yakut


text:
Test Reproduceability

Each team member will attempt to run the entire pipeline

I was able to run this completely in 5 minutes, including download of container

I was able to run this, docker build takes around 5 minutes, and docker run takes another 7 minutes.

@GloriaWYY did you just run it like this?
docker run --rm -it -v <FULL_LOCAL_PATH_TO_REPO>:/home/jovyan/ gfairbro/wine_quality_predictor make all
Shouldnt have been more than one step.

@gfairbro I did $ docker build --tag wine_quality_predictor ., and then $ docker run --rm -it -v /$(pwd):/home/jovyan/ wine_quality_predictor make all
So the docker build command is not needed actually?

Not needed. what the run command with gfairbro/wine_quality_predictor will do is download the container image from my repo and run it.

Yep you got it!

Reproduceable except docker issues with M1.

authors: GloriaWYY gfairbro


text:
Imputation of LCFS onto FRS

After the LCFS openfisca-uk-data dataset is complete, we should plan out how best to impute LCFS model variables onto the FRS dataset. It looks like the best way to do this is using the random forest-based imputation with Beta distribution matching of aggregates from rf_impute in synthimpute.

For this project, we'd only need to impute carbon emissions right?

Yeah, I think so. Though an alternative might be imputing the expenditure on the different categories, and calculating carbon emissions within openfisca using parameters - an advantage of this is that it's then a lot simpler to later come back to when we add VAT, but probably overcomplicated for this project?

authors: MaxGhenis nikhilwoodruff

repo: UBICenter/carbon-tax-ubi


text:
Add static shuttle information

Issue Description
A few scenarios exist where we are unable to present shuttle information to the user:

User disallows us to access their location
Shuttle feed is down/having difficulties

Investigate adding static shuttle information to alleviate these issues

#34 for reference

Branch static-shuttle-demo has an implementation, but shouldn't be merged in until we actually get the static shuttle schedule from Transportation.

Waiting on transportation so removing for milestone for now.

Static shuttle data does not exist in a consumable format. This issue has been added to our feature request board if said data should become available down the road.

repo: UCSD/campus-mobile


text:
Avoid passing ++timeout option in zerocopy pingpong makefile

Original issue: https://charm.cs.illinois.edu/redmine/issues/1821

Verbs autobuild uses "++timeout 180 +isomalloc_sync" in TESTOPTS. Since the zerocopy direct api pingpong added in patch (~~https://charm.cs.illinois.edu/gerrit/#/c/2967/~~ https://github.com/UIUC-PPL/charm/commit/504bc22b81afa75788cb0e38974f0268e52ecec0) already uses a "++timeout 200", having two timeout options passed to charmrun causes the execution to crash. This caused the verbs autobuild failure after merging the zerocopy direct api patch.

Original date: 2018-03-07 15:58:04

Fix: ~~https://charm.cs.illinois.edu/gerrit/#/c/3819/~~ https://github.com/UIUC-PPL/charm/commit/04643ab253b314b516be0267a4d175cb3421b3be

repo: UIUC-PPL/charm