X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=laserlinc-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=EzTWZLtud2Jq5g8c3cdLcPLdRHtrtuX3eG++WKsmv54=; b=A2FynqX6V5VWiLIh/Q/hRiG2LEjYn3Zk/NoOs5z8ZFyqnPuG1Tv+Q79fRQ1fql3z3f oCqcF4m8VjHHE887gAq/028W+bRbjvWQLUmrwDvGjFHQCw+VFf/dO4pACKU740nqBmfj hgMLSXZIk6fXV4tCzJ4t8rLRrwxzsEFClJGWgRSn1v9RwM0VoIEa2JYLXumWR7brCz5g nnKcS7c7+IPwaAa23ecATJDoSkK/BXhUZ3pQ9Rso0yexpb0ckw+73W54vxaGgHUYGo7e Fdhg/EvJTpClxqP2A77bjMk7ExgCRxd86EZqsLxERKHuRPLsKHg9d9gz90cu/votQOiN IxXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=EzTWZLtud2Jq5g8c3cdLcPLdRHtrtuX3eG++WKsmv54=; b=gJyPq83NO7xNSW0JSiDCD1gEB491a0PyfD7wvGfHZVoAgbg8DNmacv11aCQdAdJoQK 87bPvSkUyH18uJrnUdRdqQG1mZ/jp+TRO07CCkX3W6K0xATuf0SDFe1n5d7fSXUmfMdy fQkjBHlqzmOgu17HriGA+Rry1wyRFDNZe+drWi7rp5034owghn+duarMLxsQTBL+rui6 z7j77fdqgfKkvEoHNAHYCLYxnOh3iRrP9ArhPr5a+yZ2Ltuv+6rIj+qwsRhiJjSnAzkP OskHVzb39nxBdGfd/BMW1/lpvuCE+B+JX0LS94qK39YJ8dYRT3xG32dXGHYALSKbYhlU gvrw== X-Gm-Message-State: ALoCoQkScXsl8Z85qT6gbmpRHZqne2v9Sc4S80CFBF8FGKSxP+XiWmFkZQG67o+WkF3HnX+q0GhbzA5ik/SZfsSepsn0Y21GKw== X-Received: by 10.107.131.40 with SMTP id f40mr106797iod.190.1450578252136; Sat, 19 Dec 2015 18:24:12 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <20150414113158 DOT GB29193 AT visitor2 DOT iram DOT es> From: "Joshua Lansford (joshua DOT lansford AT laserlinc DOT com) [via geda-user AT delorie DOT com]" Date: Sat, 19 Dec 2015 21:23:52 -0500 Message-ID: Subject: Re: [geda-user] Multiple symbols for a single device? To: geda-user AT delorie DOT com Content-Type: multipart/alternative; boundary=001a113eabf670189605274b11e5 Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk --001a113eabf670189605274b11e5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Apr 24, 2015 at 10:47 AM, Roland Lutz wrote: > > > For my schematics, it exits with an error as I'm not regularly using the > "device=3D" attribute. Also, when using the option "--force", it adds > numbers to the input/output ports which breaks the schematic hierarchy. > After patching these things, though, it worked well with my test > schematic. Thanks for sharing this! :) > > I translated the script to Python to make it more accessible and started > improving a few things. Here is my current version: > > > https://raw.githubusercontent.com/rlutz/refdes_renum_slots/master/refdes_= renum_slots.py > > When using "--force", there are some cases in which the script breaks > existing slotted components--I'm not sure if this is a bug in the origina= l > script or a translation error. Also, numbered ports are renumbered when > using "--force" (but there doesn't seem to be an easy way to detect wheth= er > a component is a port). > > Roland > =E2=80=8BWow. I totally missed this.=E2=80=8B Thanks for taking advantage= of it :-) I hope it does you good thing. I am honored that it was useful enough to you that you translated it into python. It is very weird seeing one's own code in a different language. I will have to look into the errors you mentioned= . ~Joshua --001a113eabf670189605274b11e5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Fri, Apr 24, 2015 at 10:47 AM, Roland Lutz <= ;rlutz AT hedmen DOT org= > wrote:

For my schematics, it exits with an error as I'm not regularly using th= e "device=3D" attribute.=C2=A0 Also, when using the option "= --force", it adds numbers to the input/output ports which breaks the s= chematic hierarchy. After patching these things, though, it worked well wit= h my test schematic.=C2=A0 Thanks for sharing this! :)

I translated the script to Python to make it more accessible and started im= proving a few things.=C2=A0 Here is my current version:

https://raw.g= ithubusercontent.com/rlutz/refdes_renum_slots/master/refdes_renum_slots.py<= /a>

When using "--force", there are some cases in which the script br= eaks existing slotted components--I'm not sure if this is a bug in the = original script or a translation error.=C2=A0 Also, numbered ports are renu= mbered when using "--force" (but there doesn't seem to be an = easy way to detect whether a component is a port).

Roland

--001a113eabf670189605274b11e5--