Skip to content

Commit

Permalink
back to one scenario and remove extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
gidden committed Mar 21, 2024
1 parent 7071e1d commit aec6666
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notebooks/workflow.py
Expand Up @@ -35,7 +35,7 @@
import dask
import pandas as pd
from dask.distributed import Client
from pandas_indexing import concat, isin, semijoin
from pandas_indexing import concat, isin, ismatch, semijoin
from pandas_indexing.units import set_openscm_registry_as_default
from ptolemy.raster import IndexRaster

Expand Down Expand Up @@ -206,7 +206,7 @@ def patch_model_variable(var):
levels=["model", "scenario", "region", "gas", "sector", "unit"],
settings=settings,
)
# .loc[ismatch(scenario=["*-Baseline", "*-PkBudg_cp2300-OAE_off", "*-Direct-*"])]
.loc[~ismatch(scenario=["*Ext*"])]
)
model.pix

Expand Down Expand Up @@ -265,7 +265,7 @@ def patch_model_variable(var):

# %%
# Test with one scenario only
one_scenario = False
one_scenario = True
if one_scenario:
num_scenarios = 1
model = model.pix.semijoin(
Expand Down

0 comments on commit aec6666

Please sign in to comment.