You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
Nothing happens. After investigating the generate_svg function, it appears that the function doesn't do anything since it is a generator with a try/except block which yields svg_contents if they exist. However, SVGPage.PageEmpty exception is always raised by n.generate(). After investigating further, it seems that the page is always empty because for some reason in add_parts(), self.should_draw_pin(pin) always returns None or False. I'm guessing that the None return behavior is from returning an empty regex match, but it seems that the return type should be uniform. After setting should_draw_pin to the following:
def should_draw_pin(self, pin):
return True
then the following produces an SVG:
svg_arr = []
for svg in dl.generate_svg('class_svg'):
svg_arr.append(svg)
However, it doesn't write the SVG file as documented, and instead seems to produce the raw SVG data.
The text was updated successfully, but these errors were encountered:
The root cause of this issue seems to be that 'class_svg' is interpreted as the REGEX string instead of a filename, and also that there is no machinery to generate a file.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
After following the instructions here, and running the following code from the root directory of pcbdl:
Nothing happens. After investigating the
generate_svg
function, it appears that the function doesn't do anything since it is a generator with a try/except block which yieldssvg_contents
if they exist. However,SVGPage.PageEmpty
exception is always raised byn.generate()
. After investigating further, it seems that the page is always empty because for some reason inadd_parts()
,self.should_draw_pin(pin)
always returnsNone
orFalse
. I'm guessing that theNone
return behavior is from returning an empty regex match, but it seems that the return type should be uniform. After settingshould_draw_pin
to the following:then the following produces an SVG:
However, it doesn't write the SVG file as documented, and instead seems to produce the raw SVG data.
The text was updated successfully, but these errors were encountered: