Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tobin-ford committed Jan 31, 2025
1 parent 10a5e3f commit 5c1fe06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pvdeg/geospatialscenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import pandas as pd
import xarray as xr
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from typing import List, Union, Optional, Callable
from dask.distributed import Client
Expand Down Expand Up @@ -796,14 +797,13 @@ def getValidRegions(
def plot(self):
"""
Not Usable in GeospatialScenario class instance, only in Scenario instance.
python has no way to hide a parent class method in the child,
so this only exists to prevent access
"""
# python has no way to hide a parent class method in the child, so this only exists to prevent access
#
raise AttributeError(
"The 'plot' method is not accessible in GeospatialScenario, only in Scenario"
)

import matplotlib

def plot_coords(
self,
Expand Down

0 comments on commit 5c1fe06

Please sign in to comment.