home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   linux.debian.bugs.dist      Ohh some weird Debian bug report thing      28,835 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 28,465 of 28,835   
   Vaclav Ovsik to All   
   Bug#1128614: /usr/bin/cura: not compatib   
   21 Feb 26 22:50:01   
   
   From: vaclav.ovsik@gmail.com   
      
   This is a multi-part MIME message sent by reportbug.   
      
      
   [SoupGate killed MIME-encoded file 00000000.ATT (6514 bytes)]   
   --- /usr/lib/cura/plugins/CuraEngineBackend/ProcessSlicedLayersJ   
   b.py.orig	2022-05-17 10:08:13.000000000 +0200   
   +++ /usr/lib/cura/plugins/CuraEngineBackend/ProcessSlicedLayersJ   
   b.py	2026-02-21 21:54:09.663743850 +0100   
   @@ -140,23 +140,23 @@   
      
                    extruder = polygon.extruder   
      
   -                line_types = numpy.fromstring(polygon.line_type, dtype =   
   "u1")  # Convert bytearray to numpy array   
   +                line_types = numpy.frombuffer(polygon.line_type, dtype =   
   "u1")  # Convert bytearray to numpy array   
      
                    line_types = line_types.reshape((-1,1))   
      
   -                points = numpy.fromstring(polygon.points, dtype = "f4")  #   
   Convert bytearray to numpy array   
   +                points = numpy.frombuffer(polygon.points, dtype = "f4")  #   
   Convert bytearray to numpy array   
                    if polygon.point_type == 0: # Point2D   
                        points = points.reshape((-1,2))  # We get a linear list   
   of pairs that make up the points, so make numpy interpret them correctly.   
                    else:  # Point3D   
                        points = points.reshape((-1,3))   
      
   -                line_widths = numpy.fromstring(polygon.line_width, dtype =   
   "f4")  # Convert bytearray to numpy array   
   +                line_widths = numpy.frombuffer(polygon.line_width, dtype =   
   "f4")  # Convert bytearray to numpy array   
                    line_widths = line_widths.reshape((-1,1))  # We get a linear   
   list of pairs that make up the points, so make numpy interpret them correctly.   
      
   -                line_thicknesses = numpy.fromstring(polygon.line_thickness,   
   dtype = "f4")  # Convert bytearray to numpy array   
   +                line_thicknesses = numpy.frombuffer(polygon.line_thickness,   
   dtype = "f4")  # Convert bytearray to numpy array   
                    line_thicknesses = line_thicknesses.reshape((-1,1))  # We get   
   a linear list of pairs that make up the points, so make numpy interpret them   
   correctly.   
      
   -                line_feedrates = numpy.fromstring(polygon.line_feedrate,   
   dtype = "f4")  # Convert bytearray to numpy array   
   +                line_feedrates = numpy.frombuffer(polygon.line_feedrate,   
   dtype = "f4")  # Convert bytearray to numpy array   
                    line_feedrates = line_feedrates.reshape((-1,1))  # We get a   
   linear list of pairs that make up the points, so make numpy interpret them   
   correctly.   
      
                    # Create a new 3D-array, copy the 2D points over and insert   
   the right height.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca