Commit c7486ef1 authored by Antoine Berchet's avatar Antoine Berchet
Browse files

Grouping flux/meteo/field into datatream; cleaning plurals in class names;...

Grouping flux/meteo/field into datatream; cleaning plurals in class names; adding an optional sub-type to plugins to render tree directories
parent e442f8e8
input_arguments = {
"main_flx_arg": {
"doc": "document here the argument",
"default": "totototo",
"accepted": str
},
}
......@@ -3,8 +3,8 @@ import datetime
import pandas as pd
import xarray as xr
import itertools
from ....utils import path
from ....utils.classes.setup import Setup
from .....utils import path
from .....utils.classes.setup import Setup
def fetch(ref_dir, ref_file, input_dates, target_dir, tracer=None, **kwargs):
......
......@@ -4,7 +4,7 @@ import os
import numpy as np
import xarray as xr
from ....utils.netcdf import readnc
from .....utils.netcdf import readnc
def read(
......
......@@ -5,8 +5,8 @@ import numpy as np
import pandas as pd
import xarray
from ....utils.classes.fluxes import Fluxes
from ....utils.netcdf import save_nc
from .....utils.classes.fluxes import Flux
from .....utils.netcdf import save_nc
def write(self, name, flx_file, flx, mode="a"):
......
......@@ -2,7 +2,7 @@ def write(self, flx_file, flx_fwd, flx_tl):
"""Write fluxes for the dummy Gaussian model as NetCDF.
Args:
self (Fluxes): the Fluxes plugin
self (Flux): the Flux plugin
flx_file (str): the file where to write fluxes
flx_fwd, flx_tl: fluxes data to write
"""
......
import os
import pandas as pd
from ....utils import path
from .....utils import path
from .make import make
......
......@@ -6,7 +6,7 @@ import pandas as pd
import numpy as np
import glob
from ....utils import path
from .....utils import path
from logging import info
......
......@@ -4,7 +4,7 @@ import os
import numpy as np
import xarray as xr
from ....utils.classes.setup import Setup
from .....utils.classes.setup import Setup
def get_domain(ref_dir, ref_file, input_dates, target_dir, tracer=None):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment