Commit b0ec1b1a authored by Isabelle Pison's avatar Isabelle Pison
Browse files

relative import in pycif, first part

parent ba989af4
import argparse
from pycif.utils.classes.setup import Setup
from pycif.utils.classes.baseclass import Plugin
from .utils.classes.setup import Setup
from .utils.classes.baseclass import Plugin
def main():
......
......@@ -2,7 +2,7 @@ import shutil
import sys
from logging import info
from pycif.utils.path import init_dir, link
from ....utils.path import init_dir, link
from .make_chemistry import create_chemicalscheme
from .read_chemistry import read_chemicalscheme
......
import os
from pycif.utils.path import init_dir
from ....utils.path import init_dir
from .utils import create_mandchem, create_optchem
......
......@@ -2,7 +2,7 @@ import shutil
from distutils.dir_util import copy_tree
from logging import debug
from pycif.utils.path import init_dir
from ....utils.path import init_dir
from .make_chemistry import create_chemicalscheme
from .read_chemistry import read_chemicalscheme
......
import os
from pycif.utils.path import init_dir
from ....utils.path import init_dir
from .utils import create_mandchem, create_optchem
......
from pycif.utils.path import init_dir
from ....utils.path import init_dir
from .dump import dump, load
from .init_bprod import init_bprod
from .init_xb import init_xb
......
......@@ -4,10 +4,10 @@ import os
import numpy as np
from logging import info
from pycif.utils.geometry.dist_matrix import dist_matrix
from pycif.utils.netcdf import readnc
from pycif.utils.path import init_dir
from pycif.plugins.transforms.system.fromcontrol.utils.scalemaps \
from ....utils.geometry.dist_matrix import dist_matrix
from ....utils.netcdf import readnc
from ....utils.path import init_dir
from ....plugins.transforms.system.fromcontrol.utils.scalemaps \
import map2scale
......
......@@ -5,7 +5,7 @@ import pandas as pd
from logging import info
from pycif.utils.path import init_dir
from ....utils.path import init_dir
def build_tcorrelations(
......
......@@ -2,10 +2,10 @@ import numpy as np
import xarray as xr
import pandas as pd
from pycif.utils.path import init_dir
from pycif.plugins.transforms.system.fromcontrol.utils.scalemaps \
from ....utils.path import init_dir
from ....plugins.transforms.system.fromcontrol.utils.scalemaps \
import scale2map
from pycif.utils.dataarrays.reindex import reindex
from ....utils.dataarrays.reindex import reindex
try:
import cPickle as pickle
......
import numpy as np
from scipy import ndimage
from pycif.utils import dates
from ....utils import dates
from .utils.dimensions import hresol2dim, vresol2dim
from pycif.plugins.transforms.system.fromcontrol.utils.scalemaps \
from ....plugins.transforms.system.fromcontrol.utils.scalemaps \
import map2scale, vmap2vaggreg
from logging import debug, info
......
......@@ -2,11 +2,11 @@ import numpy as np
from scipy import ndimage
import pandas as pd
from pycif.utils import dates
from ....utils import dates
from .utils.dimensions import hresol2dim, vresol2dim
from pycif.plugins.transforms.system.fromcontrol.utils.scalemaps \
from ....plugins.transforms.system.fromcontrol.utils.scalemaps \
import map2scale, vmap2vaggreg
from pycif.utils.dataarrays.reindex import reindex
from ....utils.dataarrays.reindex import reindex
from logging import debug, info
from .utils.get_physical import get_physical
......
import numpy as np
import pandas as pd
from pycif.plugins.transforms.system.fromcontrol.utils.scalemaps \
from .....plugins.transforms.system.fromcontrol.utils.scalemaps \
import map2scale, vmap2vaggreg
from pycif.utils.dataarrays.reindex import reindex
from .....utils.dataarrays.reindex import reindex
def get_physical(controlvect, tracer, comp, trcr, **kwargs):
......
from pycif.utils.path import init_dir
from ....utils.path import init_dir
from .init_components import init_components
_name = "standard"
......
......@@ -2,7 +2,7 @@ import os
import datetime
import pandas as pd
import xarray as xr
from pycif.utils import path
from ....utils import path
from logging import info
......
import pandas as pd
from pycif.utils.path import init_dir
from ....utils.path import init_dir
from .fetch import default_fetch
from logging import warning
......
import numpy as np
import os
from pycif.plugins.models.flexpart.utils.flexpart_header import read_header
from ....plugins.models.flexpart.utils.flexpart_header import read_header
def create_domain(domain,
......
......@@ -3,7 +3,7 @@ import os
import numpy as np
import pandas as pd
import datetime
from pycif.utils import path
from ....utils import path
def fetch(
......
......@@ -18,7 +18,7 @@ Returns:
import numpy as np
from pycif.utils.classes.setup import Setup
from ....utils.classes.setup import Setup
def get_domain(ref_dir, ref_file, input_dates, target_dir, tracer=None):
......
......@@ -24,7 +24,7 @@ import numpy as np
import xarray as xr
from netCDF4 import Dataset
from pycif.utils.netcdf import readnc
from ....utils.netcdf import readnc
def read(
......
......@@ -3,7 +3,7 @@ import os
import numpy as np
import pandas as pd
import datetime
from pycif.utils import path
from ....utils import path
def fetch(
......
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