Skip to content

Add Gatema PCB fab option#877

Open
C2Coder wants to merge 4 commits intoyaqwsx:masterfrom
C2Coder:master
Open

Add Gatema PCB fab option#877
C2Coder wants to merge 4 commits intoyaqwsx:masterfrom
C2Coder:master

Conversation

@C2Coder
Copy link

@C2Coder C2Coder commented Dec 10, 2025

Added Gatema PCB fabrication option based on jlcpcb implementation

import traceback
from typing import List, Optional, Tuple, Union, Callable
from kikit.defs import Layer
from kikit.typing import Box
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I see. You renamed the file kikit.typing to kikit.kityping - why? This breaks other places where the file is imported.

from kikit.export import gerberImpl
from kikit.export import exportSettingsGatema

#def collectBom(components, lscsFields, ignore):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, no commented-out code.

if drc:
ensurePassingDrc(loadedBoard)

refsToIgnore = parseReferences(ignore)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you are not doing assembly, I think this is not needed.

archiveName = expandNameTemplate(nametemplate, "gerbers", loadedBoard)
shutil.make_archive(os.path.join(outputdir, archiveName), "zip", outputdir, "gerber")

# if not assembly:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No commented-out code, please


@click.command()
@fabCommand
@click.option("--ignore", type=str, default="", help="Comma separated list of designators to exclude from SMT assembly")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As Gatema doesn't do assembly, why one would need an option to ignore components?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants