question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Fitting with multiple CPE gives errors

See original GitHub issue

I am trying to replicate fitting of this custom circuit R_0 - p(CPE_1, R_1 - p(R_2,CPE_2) ) using the following statement

customConstantCircuit = CustomCircuit(initial_guess=[100e3, 1.3e-12, .96, 1e9, 1e11, 6.6e-12, .9 ], CPE=True, constants={'CPE_1_1': 0.96, 'CPE_2_1': 0.9}, circuit='R_0 - p(CPE_1, R_1 - p(R_2,CPE_2) )')

But, I see the error

TypeError : init() got an unexpected keyword argument ‘CPE’

What am I doing wrong?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
ColdAdamcommented, Jul 20, 2021

@devangs3 Just resolved a similar error, spaces in the circuit string are being carried into the elements throwing an error. Try: circuit=‘R_0-p(CPE_1,R_1-p(R_2,CPE_2))’ and see if that resolved your issue.

1reaction
sodeve19commented, May 24, 2021

Yes, I am not sure if you can do that. Have you tried putting all the values for the CPE constant and check if that works?

customConstantCircuit = CustomCircuit(initial_guess=[100e3, None, None, 1e9, 1e11, None, None ], constants={'CPE_1_0':1.3e-12, 'CPE_1_1': 0.96, 'CPE_2_0':6.6e-12, 'CPE_2_1': 0.9}, circuit='R_0 - p(CPE_1, R_1 - p(R_2,CPE_2) )')

Read more comments on GitHub >

github_iconTop Results From Across the Web

Linear curve fitting with errors - javascript - Stack Overflow
The very useful book Numerical Recipes provides a method to fit data to a straight line, with uncertainties in both X and Y...
Read more >
Cisco Cable CPE Error Messages
Cisco Cable CPE Error Messages. System Message Overview. 2 ... The Message-text is a string that provides details about the particular error.
Read more >
Cpu Fan Error -Removed - New & Old PC versions - YouTube
3 different ways to solve the problem : https://www.youtube.com/watch?v=N4hW6Mtbu_k&t=9s&ab_channel=IctProfiPatreon Link for your supports ...
Read more >
IRS Schedule D Instruction Error - M+O=CPE
The error affected taxpayers with capital gains subject to the maximum rate of 25% or 28%. Such gains are reported on lines 18...
Read more >
Error Analysis
Use propagation of error rules to find the error in final results derived from curve fitting. The propagation of error rules are listed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found