Spaces:
Sleeping
Sleeping
Update src/visualization.py
Browse files- src/visualization.py +2 -2
src/visualization.py
CHANGED
|
@@ -645,8 +645,8 @@ class SolarCellVisualizer:
|
|
| 645 |
"nVth": [0.8*Vth, 3*Vth],
|
| 646 |
"J0": [1e-20, 1e-5],
|
| 647 |
}
|
| 648 |
-
params_to_fit["Jph"] =
|
| 649 |
-
print("Jph",
|
| 650 |
|
| 651 |
if params_to_fit["Jph"] > 0:
|
| 652 |
low_bounds = [bounds["Rsh"][0],bounds["Rs"][0], bounds["nVth"][0], bounds["J0"][0], params_to_fit["Jph"] * 0.9]
|
|
|
|
| 645 |
"nVth": [0.8*Vth, 3*Vth],
|
| 646 |
"J0": [1e-20, 1e-5],
|
| 647 |
}
|
| 648 |
+
params_to_fit["Jph"] = abs(I[0])
|
| 649 |
+
print("Jph", abs(I[0]))
|
| 650 |
|
| 651 |
if params_to_fit["Jph"] > 0:
|
| 652 |
low_bounds = [bounds["Rsh"][0],bounds["Rs"][0], bounds["nVth"][0], bounds["J0"][0], params_to_fit["Jph"] * 0.9]
|