Try except matplotlib in freqresponse post processor
@@ -179,6 +179,7 @@ class FrequencyResponse(solver_interface.BaseSolver):
freq_2_cols)
def quick_plot(self, Y_freq_fom=None, Y_freq_rom=None):
+ try:
cout.cout_wrap('Creating Quick plots of the frequency response')
import matplotlib.pyplot as plt
for mj in range(self.ss.inputs):
@@ -203,6 +204,8 @@ class FrequencyResponse(solver_interface.BaseSolver):
plt.close()
cout.cout_wrap('\tPlots saved to %s' % self.folder, 1)
+ except ModuleNotFoundError:
+ warnings.warn('Matplotlib not found - skipping plot')
def load_frequency_data(self):
cout.cout_wrap('Loading frequency response')
