[BUG] Fitting with multiple CPE gives errors
See original GitHub issueI 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:
- Created 2 years ago
- Comments:8
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
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) )')