delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/01/19/10:34:59

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-TCPREMOTEIP: 207.224.51.38
X-Authenticated-UID: jpd AT noqsi DOT com
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
Subject: Re: [geda-user] gnetlist -g partlist3 in error
X-Pgp-Agent: GPGMail 2.5.2
From: John Doty <jpd AT noqsi DOT com>
In-Reply-To: <569E5132.5070904@iee.org>
Date: Tue, 19 Jan 2016 08:33:29 -0700
Message-Id: <F4F9E3CE-861D-42C2-8D19-5175973D17D6@noqsi.com>
References: <20151218205019 DOT 1C1FF809D78C AT turkos DOT aspodata DOT se> <20151223141117 DOT D51F6809D795 AT turkos DOT aspodata DOT se> <20151230211705 DOT GE4099 AT localhost DOT localdomain> <20151231021429 DOT EE320809D79B AT turkos DOT aspodata DOT se> <20151231185752 DOT 78437809D79A AT turkos DOT aspodata DOT se> <20151231191107 DOT BCADE809D79A AT turkos DOT aspodata DOT se> <CAMvDHVAqu0Hute-JPRrxRSvy19H1cU4f0ZZ=Lu_6QZeA-q=PUA AT mail DOT gmail DOT com> <20160119091756 DOT B960981053DB AT turkos DOT aspodata DOT se> <CAMvDHVA+dW81TzJAkAvFnB_kaAgO9Rr4Er-QQ0rNzte1GOHgyA AT mail DOT gmail DOT com> <20160119123332 DOT 3A27581053DB AT turkos DOT aspodata DOT se> <CAMvDHVBo50FJFi9n-Tcvux4ZngRcvBZS2cyQENA7pODEptL9fg AT mail DOT gmail DOT com> <569E5132 DOT 5070904 AT iee DOT org>
To: geda-user AT delorie DOT com
X-Mailer: Apple Mail (2.1878.6)
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

--Apple-Mail=_2B319DBF-D69B-48CD-998B-972DA641F475
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252


On Jan 19, 2016, at 8:07 AM, M. J. Everitt (m DOT j DOT everitt AT iee DOT org) [via =
geda-user AT delorie DOT com] <geda-user AT delorie DOT com> wrote:

>=20
> On 19/01/16 14:11, Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via
> geda-user AT delorie DOT com] wrote:
>>=20
>>>>> But I do think the output should not have its case changed.
>>>> Then we could not join "Resistor 10k" and "resistor 10k" and count
>>>> them together in some cases.
>>> I think the best thing is to push that problem down to the user.
>> Agreed
> It would be really nice to do this, but you quickly find that the
> program is second-guessing you, and more often than not, the wrong =
way.

Yes.

> Best to flag it to the user in some way, let them decide. I hate the
> Office apps when they decide they think they know better and auto
> something, only for you to have to undo it!!

Wouldn=92t be hard to make a gnetlist plugin that uppercases device =
attributes.

>>=20
>>>>> If you want to change anything, wouldn't it be better to have a
>>>>> separate
>>>>> sch/sym beautifier script ?
>>>> Why not? However, at least basic things have to be done well.
>>> 1, In 2010 I did one to remove numslots=3D0 attribute which =
gsymcheck
>>>   complains about:
>>>=20
>>> $ find . -type f -name \*.sym | xargs perl -i -ne 'if =
(m/^numslots\=3D0/) {
>>> undef($old); } else { print $old if $old; undef($old); if (m/^T /) { =
 $old =3D
>>> $_; } else { print; }}'
>> gsymcheck is broken. I have rewritten it in scheme (see the
>> gsymcheck branch in the above repository on github) and used as a
>> module for gschem to check symbols interactively. However, I won't
>> work on it further yet since I have some other thoughts :)
> I'd really like to see an interactive gsymcheck .. must check this =
out.
>=20
> Also, are your "thoughts" published anywhere .. like on the github, =
like
> peterbrett .. always nice to read where other people's ideas are at.
>>> 2, upcase 1st char of device attribute.
>> It's easy to do using Scheme, if you want, isn't it ;)
> I feel strongly that you keep to All Caps or All Lower, no mixing or =
it
> makes a pain to read/check. Again, perhaps a means of flagging up to =
the
> user for correction would be really handy.
>>> Any more, do you have a list ?
>> No
>>=20
>> ...
>>> Great, I'd like to test that.
>> You haven't even recompile gnetlist for that. Just use something
>> like:
>>=20
>> gnetlist -m ./gnetlist/scheme/*partslist*.scm -g partslist3 -o - =
test.sch
>>=20
>> ...
>>>>> And it would be nice if columns lined up as in first example =
above.
>>>> The same. I believe this is a business for some post-processing
>>>> program, since we just output a TSV lists.
>>> Hmm, maybe we could provide a postprocessor.
>> gnetlist is our postprocessor. You can load your custom/preferred
>> functions either before or after loading backends and thus change
>> its behaviour (e.g., using the -m option mentioned before).
>>=20
>> Cheers,
>>  Vladimir
> I have to admit, I really like gnetlist and use the bom2 processor
> regularly to generate spreadsheets for parts lists. I can do any =
further
> sorting/processing in the spreadsheet, and filter different parts, add
> order codes and supplier all easily from there. It also allows me to
> perform some basic checking IN the spreadsheet, as resistors that are
> 10k and 10K soon show up together. The only grind is you have to go =
back
> to the schematic editor and correct, but once it's right, it's right.

One nice thing about gnet-bom and gnet-bom2 is that they yield TSV files =
that are easy to post-process for a variety of purposes using tools =
ranging from the simple (AWK) to the extremely complicated =
(Mathematica).

>=20
> I'm about to do a board design, so I'll have to make some notes as I =
go
> along of the usual 'gotchas' that I come across... !!
>=20
> MJE
>=20

John Doty              Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd AT noqsi DOT com



--Apple-Mail=_2B319DBF-D69B-48CD-998B-972DA641F475
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJWnldKAAoJEF1Aj/0UKykROSwP/0lV2I6D6hq+1DWjLCdstqn5
N3XiCkjdDuX2lTf88kCJ6jy5WCOFK1pmuP6rLnrX6bXdX3vidMgC6o7b9e/20rdu
eCb6weT1yvsgHhk/kF0DZns8vA20+WU+JJoXrA0/y/NfzX7kEKyg/brYfTyHXSAV
9/abRf0RUf3STiYLG5qSIk5YWeyHofEXKNQqJ9cCoqR9XXXqtMzwtmBtDSXx6Jvg
jZLM+hihYs/3KQ1dmc/U0wwA+iZUvDt6YL7Swj5Sb8/fAHvxAxCSaXs8gQadQKTj
KSukyZ8ff0KRWWGjOp35+jN54DMnu8u5K5mCvkgV+w3OMPRUzEA4eesh+XfTBUAX
jei3WneZQlCJ6uKaZJ0xMdus8b9uEdr4Sb4Xbbt8jJ9fJ+xfyD3r/I8EnqX78Osr
vQ1biXBNcmO/Q4DF6cw68Q/mxZNUNvcFWk4VaT/bE9OsmdTe+MhpYTRtfTSqi3OD
qFaudJUWGgqyx+eMjHzGwLi9XeekMo93IAoeChygcRymLHC/fCsRjOgxU/g/lp3+
4ryc24A8gzIeNq4RfYCrp1VTIRN+TviAC57RwUEJeSfU3HBopg9490MOup61bA3H
jwxEU2VjQdeJB+ALJYNpWr/NJBtGJ0HxWBgN0oH550dd7OCuRd88958fQFskKQ5i
DFcRsFIQqJM2ld6XBp8W
=QzoD
-----END PGP SIGNATURE-----

--Apple-Mail=_2B319DBF-D69B-48CD-998B-972DA641F475--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019