From 2098f5ff67504d111a1ce6e8d87daf99df2f672e Mon Sep 17 00:00:00 2001 From: Kamal Choudhary Date: Fri, 27 Sep 2024 17:54:30 -0400 Subject: [PATCH] Update solar.py --- jarvis/analysis/solarefficiency/solar.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jarvis/analysis/solarefficiency/solar.py b/jarvis/analysis/solarefficiency/solar.py index 2ab64c46..785f7447 100644 --- a/jarvis/analysis/solarefficiency/solar.py +++ b/jarvis/analysis/solarefficiency/solar.py @@ -9,7 +9,11 @@ from scipy.interpolate import interp1d from numpy import interp import scipy.constants as constants -from scipy.integrate import simps +try: + from scipy.integrate import simps +except: + from scipy.integrate import simpson as simps + pass import matplotlib.pyplot as plt