Tool for refdesrenum replaced

Bug #1292607 reported by Alexey Kharikovskiy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gEDA
New
Undecided
Unassigned

Bug Description

http://www.gedasymbols.org/user/alexey_kharikovskiy/

This is my new renumber tool.
It completely compatible with old renumber tool (refdes_renum)

This python script performs renumber of REFDES attributes of symbols and footprints of whole project simultaneously.

This tool is nessesary when exist the .sch and the .pcb files of development project and We forced add some components to project and then renumber it.

Features:

1. This script completely compatible (input,output,errors) with official "refdes_renum" script of geda project and writen for replacing him.
2. This script can take list of .sch files
Example:
  refdes_renum.py mysch_1.sch mysch_2.sch ... mysch_N.sch
or list of .sch and list of .pcb files:
  refdes_renum.py mysch_1.sch ... mysch_N.sch mypcb_1.pcb ... mypcb_N.pcb
or project file:
  refdes_renum.py pathto/projectfile
3. --sort option allows to use defferent directions of renumber (Top to bottom, diagonal, left to right and other). For details see --help option
4. --component option allows to use component coordinates for renumber instead REFDES coordinates.

PS. Read help for more :)
More detailed discussion of geda-user http://comments.gmane.org/gmane.comp.cad.geda.user/41537

Revision history for this message
Alexey Kharikovskiy (svetonomer) wrote :
Revision history for this message
Peter TB Brett (peter-b) wrote :

Hi Alexey,

If this is completely backwards compatible with geda-gaf's "refdes_renum" script, maybe it should replace it.

What do you think?

Regards,

Peter

Revision history for this message
Stuart Brorson (sdb-cloud9) wrote : Re: [Bug 1292607] Re: Tool for refdesrenum replaced

Hi guys,

I suggest that we keep the old refdes_renum around and give the new,
Python renumber script a different name, like gref_renum or something
like that.

The reason is that the old refdes_renum has been around for a long
time and several people have made changes to it -- including me -- to
give it useful functionality. It's written in reasonably easy to
understand Perl. It's time-tested, and it ain't broke, so I'd nbe
very cautious about replacing it.

I'm all in favor of a new refdes renumber program, and will probably
use it, but would rather keep the old one around too just in case we
need to fall back to it.

Stuart

On Fri, 14 Mar 2014, Peter TB Brett wrote:

> Hi Alexey,
>
> If this is completely backwards compatible with geda-gaf's
> "refdes_renum" script, maybe it should replace it.
>
> What do you think?
>
> Regards,
>
> Peter
>
> --
> You received this bug notification because you are a member of gEDA Bug
> Team, which is subscribed to gEDA.
> https://bugs.launchpad.net/bugs/1292607
>
> Title:
> Tool for refdesrenum replaced
>
> Status in GPL Electronic Design Automation tools:
> New
>
> Bug description:
> http://www.gedasymbols.org/user/alexey_kharikovskiy/
>
> This is my new renumber tool.
> It completely compatible with old renumber tool (refdes_renum)
>
> This python script performs renumber of REFDES attributes of symbols
> and footprints of whole project simultaneously.
>
> This tool is nessesary when exist the .sch and the .pcb files of
> development project and We forced add some components to project and
> then renumber it.
>
> Features:
>
> 1. This script completely compatible (input,output,errors) with official "refdes_renum" script of geda project and writen for replacing him.
> 2. This script can take list of .sch files
> Example:
> refdes_renum.py mysch_1.sch mysch_2.sch ... mysch_N.sch
> or list of .sch and list of .pcb files:
> refdes_renum.py mysch_1.sch ... mysch_N.sch mypcb_1.pcb ... mypcb_N.pcb
> or project file:
> refdes_renum.py pathto/projectfile
> 3. --sort option allows to use defferent directions of renumber (Top to bottom, diagonal, left to right and other). For details see --help option
> 4. --component option allows to use component coordinates for renumber instead REFDES coordinates.
>
> PS. Read help for more :)
> More detailed discussion of geda-user http://comments.gmane.org/gmane.comp.cad.geda.user/41537
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/geda/+bug/1292607/+subscriptions
>

Revision history for this message
Peter TB Brett (peter-b) wrote :

One quick note for Alexey: before we can merge this into the geda-gaf package, I would like to see an updated manpage and a unit test suite for the new program.

Stuart, we already have a plethora of renumbering programs in the tree, and I think we should institute a "one out, one in" policy. In this case we have an (allegedly) fully-backwards-compatible contribution that introduces new features. With proper documentation and a test suite that we can use to verify that the new tool is fully interchangeable with refdes-renum, I can see no reason not to accept it as a replacement. For people who have a particular need for the older version — which is poorly documented and lacks a test suite, I might add — there will always be the option to grab it from older release tarballs.

Revision history for this message
Stuart Brorson (sdb-cloud9) wrote :

Fair enough. I'll give the new utility a try at some point.

Stuart

On Fri, 14 Mar 2014, Peter TB Brett wrote:

> One quick note for Alexey: before we can merge this into the geda-gaf
> package, I would like to see an updated manpage and a unit test suite
> for the new program.
>
> Stuart, we already have a plethora of renumbering programs in the tree,
> and I think we should institute a "one out, one in" policy. In this case
> we have an (allegedly) fully-backwards-compatible contribution that
> introduces new features. With proper documentation and a test suite
> that we can use to verify that the new tool is fully interchangeable
> with refdes-renum, I can see no reason not to accept it as a
> replacement. For people who have a particular need for the older version
> ? which is poorly documented and lacks a test suite, I might add ? there
> will always be the option to grab it from older release tarballs.
>
> --
> You received this bug notification because you are a member of gEDA Bug
> Team, which is subscribed to gEDA.
> https://bugs.launchpad.net/bugs/1292607
>
> Title:
> Tool for refdesrenum replaced
>
> Status in GPL Electronic Design Automation tools:
> New
>
> Bug description:
> http://www.gedasymbols.org/user/alexey_kharikovskiy/
>
> This is my new renumber tool.
> It completely compatible with old renumber tool (refdes_renum)
>
> This python script performs renumber of REFDES attributes of symbols
> and footprints of whole project simultaneously.
>
> This tool is nessesary when exist the .sch and the .pcb files of
> development project and We forced add some components to project and
> then renumber it.
>
> Features:
>
> 1. This script completely compatible (input,output,errors) with official "refdes_renum" script of geda project and writen for replacing him.
> 2. This script can take list of .sch files
> Example:
> refdes_renum.py mysch_1.sch mysch_2.sch ... mysch_N.sch
> or list of .sch and list of .pcb files:
> refdes_renum.py mysch_1.sch ... mysch_N.sch mypcb_1.pcb ... mypcb_N.pcb
> or project file:
> refdes_renum.py pathto/projectfile
> 3. --sort option allows to use defferent directions of renumber (Top to bottom, diagonal, left to right and other). For details see --help option
> 4. --component option allows to use component coordinates for renumber instead REFDES coordinates.
>
> PS. Read help for more :)
> More detailed discussion of geda-user http://comments.gmane.org/gmane.comp.cad.geda.user/41537
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/geda/+bug/1292607/+subscriptions
>

Revision history for this message
Alexey Kharikovskiy (svetonomer) wrote :

> Hi Alexey,
>
> If this is completely backwards compatible with geda-gaf's
> "refdes_renum" script, maybe it should replace it.
>
> What do you think?
>
Yes Peter.
It is possible to replace refdesrenum, I made this script compatible with
it.

But general improvment of this script in comparison with used at now
refdesrenum tool is possibility simultaneous renumber of sch and pcb files
of project for right renumbering with schematic sequences.

I use this some time, but I did not extended research of his work.

Revision history for this message
Alexey Kharikovskiy (svetonomer) wrote :

> I suggest that we keep the old refdes_renum around and give the new,
> Python renumber script a different name, like gref_renum or something
> like that.
>
This script named as refdes_renum.py in comparison with refdes_renum.
Maybe it makes sense to call on another, because this script can rename
other attributes.
But to him it easier for users to find, I called it the same name as before.

Revision history for this message
Alexey Kharikovskiy (svetonomer) wrote :

 I would like to see an updated manpage

./refdes_renum.py
or
./refdes_renum.py --help

and a unit test suite
> for the new program.
>
I dont understanding what this?

Revision history for this message
Alexey Kharikovskiy (svetonomer) wrote :

Hello Peter.
I made tests for this tool.
And I some bugs fixed.

Attached archive containing the renumbering tool and full suite for test it.

Man page could maked by:

refdes_renum.py --help |gzip > refdes_renum.py.1.gz

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.