From f52adffc8507b49967336825b348e0af54a39d5a Mon Sep 17 00:00:00 2001 From: shahzaib1007 Date: Thu, 12 Dec 2024 23:24:59 -0800 Subject: [PATCH] Removed importlib dependency --- src/pywris/visualization/plot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pywris/visualization/plot.py b/src/pywris/visualization/plot.py index 1e27c2e..11f022a 100644 --- a/src/pywris/visualization/plot.py +++ b/src/pywris/visualization/plot.py @@ -2,7 +2,7 @@ # from pywris.surface_water.storage.reservoir import Reservoir import plotly.graph_objects as go import pandas as pd -import importlib + def plot_data(input_object, **args): """ @@ -12,7 +12,7 @@ def plot_data(input_object, **args): - input_object: The object to plot (either an instance of Reservoir, Groundwater, etc.) - **args: Additional arguments for customization (e.g., columns to plot, title, etc.) """ - from pywris.surface_water.storage.reservoir import Reservoir #created a temp fix for circular imports error + from pywris.surface_water.storage.reservoir import Reservoir if isinstance(input_object, Reservoir): return plot_reservoir(input_object, **args) else: