Python Forum
Understanding GerbMerge code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Understanding GerbMerge code
#1
I have set myself a challenge of trying to understand the python code in this Open source project

https://github.com/kkunzelm/gerbmerge

The python files are in the Gerbmerge directory and the application is invoked by typing gerbmerge into a command prompt.

I am struggling to understand the overall structure and flow and how the different files play a part. As a strategy i'm going to try to understand the code in gerbmerge.py but I don't know if this is the best way to go about it.

I am a complete python newby so if anyone can help me to get an overview that would be great.Thanks.



PS Gerber and Excellon files consist of lines of ASCII text with X and Y co-ordinates and commands understood by CNC machines for printed circuit board manufacture.
Reply
#2
The gerbmerg package was updated by Oleg Artamonov in Feb 2016, and maintained up until Feb 2017.
I don't see any activity after this date. The original that your url points to has an older update date (Dec 2016).
Both appear to be abandoned since the 2017 date. The newer was created as Oleg stated:
Quote:So I looked for some tool that can help me and found... nothing... $699... "call us to get a quote"... $1899... GerbMerge! GerbMerge is a python script, GPL, totally free to use and modify, created specifically for this job — merging a lot of gerbers and drill files into a single set.

Unfortunately, it didn't work. GerbMerge seemed to be maintained by different — unrelated — people, with years-long unmantained periods, so the most recent version: a) doesn't install, b) doesn't work with metric units; c) doesn't work with Cygwin... there're some patches to fix some errors, but they are made by different people, do not aligned with each other... some of them doesn't even work.

So I had no choice but to fix it.

Here is the result: https://github.com/unwireddevices/gerbmerge
Either way, it looks like a very ambitious package to tackle as a beginner. I won't advise against it unless you get frustrated easily, but beware of the challenge. If you are successful, you certainly will know a lot more about python when finished.

I would suggest that there are easier ways, great tutorials, etc.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Code understanding: Need help in understanding dictionary code jt123 0 467 Jul-09-2023, 01:13 PM
Last Post: jt123
  New to python/coding Need help on Understanding why this code isn't working. Thanks! mat3372 8 1,740 May-09-2023, 08:47 AM
Last Post: buran
  Understanding a piece of code Michael1 4 1,402 Jan-20-2022, 07:14 PM
Last Post: Michael1
  Beginner: I need help understanding few lines of a code. hop_090 1 1,685 Sep-07-2020, 04:02 PM
Last Post: Larz60+
  Extracting Rows From Data Frame and Understanding The Code JoeDainton123 0 1,436 Aug-03-2020, 04:08 PM
Last Post: JoeDainton123
  Help Understanding Code Variables 1 1,904 May-02-2019, 05:53 PM
Last Post: micseydel
  Need help understanding simple Array code. Please. stluwa 1 2,205 Apr-13-2019, 07:16 PM
Last Post: loomski
  Trouble Understanding Why This Code Works crocolicious 2 2,693 Apr-09-2019, 05:24 PM
Last Post: crocolicious
  Help Understanding Portion of Code caroline_d_124 3 2,708 Jan-15-2019, 12:12 AM
Last Post: caroline_d_124
  Understanding the code Eugine 1 1,929 Oct-22-2018, 05:56 PM
Last Post: j.crater

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020