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

Simphony monte carlo fix #530

Merged
merged 4 commits into from Jul 8, 2022

Conversation

SkandanC
Copy link
Contributor

@SkandanC SkandanC commented Jul 8, 2022

Fix for incorrect Monte Carlo computations for the MZI circuit. Issue is with SiPANN Waveguide component. Replaced it with SiEPIC Waveguide component.

image

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Jul 8, 2022

Sourcery Code Quality Report

Merging this PR leaves code quality unchanged.

Quality metrics Before After Change
Complexity 2.81 ⭐ 2.81 ⭐ 0.00
Method Length 38.33 ⭐ 38.33 ⭐ 0.00
Working memory 10.77 😞 10.77 😞 0.00
Quality 69.09% 🙂 69.09% 🙂 0.00%
Other metrics Before After Change
Lines 88 89 1
Changed files Quality Before Quality After Quality Change
gdsfactory/simulation/simphony/plot_circuit_montecarlo.py 59.97% 🙂 59.97% 🙂 0.00%
gdsfactory/simulation/simphony/components/straight.py 83.54% ⭐ 83.54% ⭐ 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/simphony/plot_circuit_montecarlo.py plot_circuit_montecarlo 5 ⭐ 126 😞 15 😞 52.81% 🙂 Try splitting into smaller methods. 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!

@sonarcloud
Copy link

sonarcloud bot commented Jul 8, 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

@codecov
Copy link

codecov bot commented Jul 8, 2022

Codecov Report

Merging #530 (f153c6b) into master (1e27e35) will decrease coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #530      +/-   ##
==========================================
- Coverage   75.54%   75.50%   -0.05%     
==========================================
  Files         397      401       +4     
  Lines       17376    17402      +26     
  Branches     2407     2411       +4     
==========================================
+ Hits        13127    13139      +12     
- Misses       3553     3565      +12     
- Partials      696      698       +2     
Impacted Files Coverage Δ
gdsfactory/add_pins.py 57.07% <0.00%> (-0.29%) ⬇️
gdsfactory/samples/30_lidar_pcell.py 15.78% <0.00%> (ø)
gdsfactory/samples/30_lidar_with_pads.py 100.00% <0.00%> (ø)
gdsfactory/samples/30_lidar.py 100.00% <0.00%> (ø)
gdsfactory/samples/22_add_pads.py 100.00% <0.00%> (ø)
gdsfactory/components/extension.py 66.03% <0.00%> (+0.65%) ⬆️
gdsfactory/component_reference.py 67.22% <0.00%> (+1.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1e27e35...f153c6b. Read the comment docs.

@joamatab joamatab merged commit c4b9dfa into gdsfactory:master Jul 8, 2022
@joamatab
Copy link
Contributor

joamatab commented Jul 8, 2022

Thank you Skandan!

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