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

Fix devsim #806

Merged
merged 5 commits into from Nov 1, 2022
Merged

Fix devsim #806

merged 5 commits into from Nov 1, 2022

Conversation

simbilod
Copy link
Collaborator

@simbilod simbilod commented Nov 1, 2022

DEVSIM can now be imported properly from scripts
Due to large requirements, there is now a requirements_file for DEVSIM, and it can be installed as
pip install gdsfactory[devsim]

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Nov 1, 2022

Sourcery Code Quality Report

❌  Merging this PR will decrease code quality in the affected files by 0.31%.

Quality metrics Before After Change
Complexity 2.17 ⭐ 2.15 ⭐ -0.02 👍
Method Length 139.89 😞 141.47 😞 1.58 👎
Working memory 10.56 😞 10.67 😞 0.11 👎
Quality 59.34% 🙂 59.03% 🙂 -0.31% 👎
Other metrics Before After Change
Lines 604 610 6
Changed files Quality Before Quality After Quality Change
setup.py 48.54% 😞 46.13% 😞 -2.41% 👎
gdsfactory/simulation/devsim/get_simulation_xsection.py 60.21% 🙂 60.21% 🙂 0.00%

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
gdsfactory/simulation/devsim/get_simulation_xsection.py PINWaveguide.make_waveguide 3 ⭐ 286 ⛔ 20 ⛔ 38.43% 😞 Try splitting into smaller methods. Extract out complex expressions
gdsfactory/simulation/devsim/get_simulation_xsection.py PINWaveguide.create_2d_mesh 0 ⭐ 634 ⛔ 13 😞 44.66% 😞 Try splitting into smaller methods. Extract out complex expressions
gdsfactory/simulation/devsim/get_simulation_xsection.py PINWaveguide.set_net_doping 0 ⭐ 188 😞 12 😞 55.72% 🙂 Try splitting into smaller methods. Extract out complex expressions
gdsfactory/simulation/devsim/get_simulation_xsection.py dn_carriers 3 ⭐ 92 🙂 12 😞 63.50% 🙂 Extract out complex expressions
gdsfactory/simulation/devsim/get_simulation_xsection.py PINWaveguide.plot 0 ⭐ 99 🙂 11 😞 67.24% 🙂 Extract out complex expressions

Legend and Explanation

The emojis denote the absolute quality of the code:

  • ⭐ excellent
  • 🙂 good
  • 😞 poor
  • ⛔ very poor

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Help us improve this quality report!

@simbilod simbilod mentioned this pull request Nov 1, 2022
@codecov
Copy link

codecov bot commented Nov 1, 2022

Codecov Report

Merging #806 (64756af) into master (bc1a255) will not change coverage.
The diff coverage is n/a.

❗ Current head 64756af differs from pull request most recent head 5006f02. Consider uploading reports for the commit 5006f02 to get more accurate results

@@           Coverage Diff           @@
##           master     #806   +/-   ##
=======================================
  Coverage   74.48%   74.48%           
=======================================
  Files         424      424           
  Lines       20980    20980           
  Branches     2837     2837           
=======================================
  Hits        15627    15627           
  Misses       4482     4482           
  Partials      871      871           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sonarcloud
Copy link

sonarcloud bot commented Nov 1, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@joamatab joamatab merged commit a1c47fe into gdsfactory:master Nov 1, 2022
@simbilod simbilod deleted the fix_devsim branch November 12, 2022 17:28
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.

None yet

2 participants