Spaces:
Runtime error
Runtime error
Vaishnav14220
commited on
Commit
·
27caf5c
1
Parent(s):
10cbdda
Fix kinetics plot return value - unpack tuple to avoid AttributeError
Browse files
app.py
CHANGED
|
@@ -578,12 +578,12 @@ def _parse_points(text: str) -> Tuple[List[float], List[float], List[str]]:
|
|
| 578 |
|
| 579 |
|
| 580 |
def kinetics_interface(A, n, Ea, T_min, T_max, plot_dropdown, fetch_ch3, fetch_indene):
|
| 581 |
-
# Generate the plot
|
| 582 |
-
plot = generate_arrhenius_plot(A, n, Ea, T_min, T_max, 100, "")
|
| 583 |
|
| 584 |
# Handle thermo fetching (placeholder for now)
|
| 585 |
thermo_data = None
|
| 586 |
-
info_text = "Kinetics plot generated successfully
|
| 587 |
if fetch_ch3:
|
| 588 |
info_text += "\nCH3 thermo data fetched."
|
| 589 |
if fetch_indene:
|
|
|
|
| 578 |
|
| 579 |
|
| 580 |
def kinetics_interface(A, n, Ea, T_min, T_max, plot_dropdown, fetch_ch3, fetch_indene):
|
| 581 |
+
# Generate the plot and summary
|
| 582 |
+
plot, plot_summary = generate_arrhenius_plot(A, n, Ea, T_min, T_max, 100, "")
|
| 583 |
|
| 584 |
# Handle thermo fetching (placeholder for now)
|
| 585 |
thermo_data = None
|
| 586 |
+
info_text = f"Kinetics plot generated successfully.\n{plot_summary}"
|
| 587 |
if fetch_ch3:
|
| 588 |
info_text += "\nCH3 thermo data fetched."
|
| 589 |
if fetch_indene:
|