Skip to content

Commit

Permalink
remove plotnine dep
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjwilson committed Nov 24, 2022
1 parent c6a3adf commit 016a300
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nctoolkit/validator_funs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pandas as pd
from plotnine import *

from nctoolkit.unify import unify
from nctoolkit.api import open_data
Expand Down Expand Up @@ -275,6 +274,11 @@ def matchup(self, levels = "top", na_match = False, **kwargs):

def validate(self, region = None):

try:
from plotnine import ggplot
except:
raise ValueError("Please install plotnine")

if self.matched is False:
raise ValueError("Data has not been matched")

Expand Down

0 comments on commit 016a300

Please sign in to comment.