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

Allow to change the crossection of spiral_racetrack #1384

Merged
merged 1 commit into from Mar 3, 2023

Conversation

HelgeGehring
Copy link
Collaborator

No description provided.

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Mar 3, 2023

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 5.36 ⭐ 6.95 ⭐ 1.59 👎
Method Length 176.60 😞 178.40 😞 1.80 👎
Working memory 20.02 ⛔ 20.41 ⛔ 0.39 👎
Quality 39.34% 😞 37.71% 😞 -1.63% 👎
Other metrics Before After Change
Lines 236 237 1
Changed files Quality Before Quality After Quality Change
gdsfactory/components/spiral_heater.py 39.34% 😞 37.71% 😞 -1.63% 👎

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

File Function Complexity Length Working Memory Quality Recommendation
gdsfactory/components/spiral_heater.py spiral_racetrack 16 🙂 332 ⛔ 22 ⛔ 24.06% ⛔ Try splitting into smaller methods. Extract out complex expressions
gdsfactory/components/spiral_heater.py spiral_racetrack_heater_metal 1 ⭐ 259 ⛔ 21 ⛔ 40.98% 😞 Try splitting into smaller methods. Extract out complex expressions
gdsfactory/components/spiral_heater.py spiral_racetrack_heater_doped 1 ⭐ 220 ⛔ 21 ⛔ 43.15% 😞 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!

@codecov
Copy link

codecov bot commented Mar 3, 2023

Codecov Report

Merging #1384 (16cd27c) into main (a347db3) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1384      +/-   ##
==========================================
- Coverage   69.66%   69.65%   -0.02%     
==========================================
  Files         366      366              
  Lines       21843    21871      +28     
  Branches     3128     3134       +6     
==========================================
+ Hits        15218    15234      +16     
- Misses       5725     5736      +11     
- Partials      900      901       +1     
Impacted Files Coverage Δ
gdsfactory/components/spiral_heater.py 90.90% <ø> (ø)
gdsfactory/export/to_stl.py 17.94% <0.00%> (-5.39%) ⬇️
gdsfactory/cross_section.py 65.83% <0.00%> (-0.19%) ⬇️
gdsfactory/config.py 65.42% <0.00%> (+0.07%) ⬆️
gdsfactory/install.py 19.75% <0.00%> (+0.24%) ⬆️
gdsfactory/pdk.py 57.40% <0.00%> (+0.25%) ⬆️
gdsfactory/component.py 66.93% <0.00%> (+0.26%) ⬆️

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

@joamatab joamatab merged commit d502d42 into gdsfactory:main Mar 3, 2023
@HelgeGehring HelgeGehring deleted the spiral_heater_s_crossection branch March 3, 2023 19:54
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