Skip to content

Commit

Permalink
Removed importlib dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzaib1007 committed Dec 13, 2024
1 parent 9d00c3c commit f52adff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pywris/visualization/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand All @@ -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:
Expand Down

0 comments on commit f52adff

Please sign in to comment.