Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make CORNERSTONE package support all the different pdks #29

Merged
merged 6 commits into from
May 4, 2024
Merged

Conversation

joamatab
Copy link
Contributor

  • proof of concept of dividing it into multiple pdks

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @joamatab - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 2 issues found
  • 🟢 Security: all looks good
  • 🟡 Testing: 2 issues found
  • 🟢 Complexity: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

@@ -2,11 +2,11 @@
from gdsfactory.get_factories import get_cells
from gdsfactory.pdk import Pdk

from cspdk import cells, config, tech
Copy link

Choose a reason for hiding this comment

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

suggestion (testing): Missing tests for new module structure.

The PR introduces a new module structure under 'cspdk.si220'. It's crucial to add tests to verify that the new imports and module paths are correctly set up and functional.

@@ -3,15 +3,14 @@
import matplotlib.pyplot as plt
import sax

import cspdk
Copy link

Choose a reason for hiding this comment

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

suggestion (testing): Integration tests needed for sample scripts.

Changes in the sample scripts suggest modifications in how components are instantiated and routed. Integration tests should be added to ensure these scripts still perform as expected with the new module paths.

)
_cross_sections = get_cross_sections(tech)
PDK = Pdk(
name="cornerstone",
Copy link
Contributor

Choose a reason for hiding this comment

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

this is no longer a good, distinctive pdk name. what if we make it mirror the package name, i.e. cspdk.si220?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, fixed now, i named it cornerstone_si220, cornerstone_sin300 ... and so on

@joamatab joamatab merged commit 0a73a37 into main May 4, 2024
5 checks passed
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