Mail Archives: geda-user/2012/07/06/05:07:18
On Thu, Jul 05, 2012 at 10:34:23AM -0700, Andrew Poelstra wrote:
> On Thu, Jul 05, 2012 at 12:16:14PM +0200, Gabriel Paubert wrote:
> >
> > I have appended a second version of the patch; the only difference
> > with the first one is that now the line in the header that starts
> > with "G04 PCB-dimensions" now specifies the dimensions either in
> > metric or in imperial dimensions depending on the metric option.
> >
> > I was expecting that the developers with git write access
> > would be a bit more reactive and tell me whether something
> > looked wrong with the patch. I must admit I'm not completely
> > satisfied with the names of some functions/variables, but I'm
> > not too worried since they are local to the gerber.c file. For
> > global names, I'm much fussier.
> >
>
> The patch is as well-done as it could be. I considered doing
> it a while back, but was turned off by all the if-statements
> necessary. Thanks for finally biting the bullet!
>
> Unfortunately, I don't recall enough about the Gerber spec
> to review your patch, nor to address your other concerns. I
> might push it through when I get a free moment anyway, assuming
> it doesn't break the old behavior.
>
> > From my limited tests, the patch does not affect the Gerber
> > code in imperial mode (diff output only lists the obvious:
> > timestamp in the header, and the board dimensions in the
> > second version of the patch, in any case only the comments
> > are affected).
> >
>
> Does tests/run_tests.sh still pass?
It seems to, I have tested on two machines, which give the same
results:the first 4 tests fail (the bom ones), but I don't see
how they could even be remotely related to the patch.
Note that with my current patch metric is on by default for Gerber
generation, so this means that the files compare equal after
going through gerbv as a png exporter and comparing through.
I realise that setting metric by default may break existing
scripts, so maybe we should stay with imperial Gerber and
drill files by default. Right now I have imperial in the
golden subdirectory and metric in the outputs. They do not
compare at all equal from diff -r, but they do after conversion
to png. I believe that this is good enough for inclusion.
[Making a few tests]
Even if I stay with imperial, the differences between golden
and outputs are large: aperture definitions are not the same, etc...
If there is a bug, it is well hidden, except perhaps for octogonal
apertures, which I don't use and don't seem to be covered by the
test suite.
Gabriel
- Raw text -