From 797c016ceb772904b58e885780e039f0b4122315 Mon Sep 17 00:00:00 2001 From: blychs Date: Fri, 20 Sep 2024 17:48:54 -0600 Subject: [PATCH 1/2] add camx as model --- melodies_monet/driver.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/melodies_monet/driver.py b/melodies_monet/driver.py index edfc4299..5a175234 100644 --- a/melodies_monet/driver.py +++ b/melodies_monet/driver.py @@ -592,6 +592,11 @@ def open_model_files(self, time_interval=None, control_dict=None): self.obj = mio.models._cesm_se_mm.open_mfdataset(self.files,**self.mod_kwargs) #self.obj, self.obj_scrip = read_cesm_se.open_mfdataset(self.files,**self.mod_kwargs) #self.obj.monet.scrip = self.obj_scrip + elif "camx" in self.model.lower(): + self.mod_kwargs.update({"var_list": list_input_var}) + self.obj = mio.models._camx_mm.open_mfdataset( + self.files, **self.mod_kwargs + ) elif 'raqms' in self.model.lower(): if len(self.files) > 1: self.obj = mio.raqms.open_mfdataset(self.files,**self.mod_kwargs) From ad71591cd1cb7a6e53412031230269d317bb5586 Mon Sep 17 00:00:00 2001 From: blychs Date: Fri, 20 Sep 2024 17:49:25 -0600 Subject: [PATCH 2/2] format --- melodies_monet/driver.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/melodies_monet/driver.py b/melodies_monet/driver.py index 5a175234..57aa465f 100644 --- a/melodies_monet/driver.py +++ b/melodies_monet/driver.py @@ -594,9 +594,7 @@ def open_model_files(self, time_interval=None, control_dict=None): #self.obj.monet.scrip = self.obj_scrip elif "camx" in self.model.lower(): self.mod_kwargs.update({"var_list": list_input_var}) - self.obj = mio.models._camx_mm.open_mfdataset( - self.files, **self.mod_kwargs - ) + self.obj = mio.models._camx_mm.open_mfdataset(self.files, **self.mod_kwargs) elif 'raqms' in self.model.lower(): if len(self.files) > 1: self.obj = mio.raqms.open_mfdataset(self.files,**self.mod_kwargs)