Commit 9f17b3d7 authored by Antoine Berchet's avatar Antoine Berchet
Browse files

Optimizing import

parent cf23e968
from __future__ import absolute_import
import glob
from os.path import dirname, basename, isdir
from .plugins import chemistries, domains, fields, fluxes, measurements, \
meteos, minimizers, models, modes, obsoperators, obsparsers, obsvects, \
platforms, simulators, statevect, transforms
from os.path import dirname, basename, isdir
import glob
modules = glob.glob(dirname(__file__) + "/*")
__all__ = [basename(f) for f in modules if isdir(f) and not f.endswith(".py")]
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from os.path import dirname, basename, isdir
import glob
from os.path import dirname, basename, isdir
modules = glob.glob(dirname(__file__) + "/*")
......
......@@ -3,10 +3,11 @@
Automatically loads all pre-defined models as sub-modules of pycif.models
"""
from __future__ import absolute_import
from . import register
from os.path import dirname, basename, isdir
import glob
from os.path import dirname, basename, isdir
from . import register
modules = glob.glob(dirname(__file__) + "/*")
......
from __future__ import absolute_import
import shutil
from distutils.dir_util import copy_tree
from .read_chemistry import read_chemicalscheme
from .make_chemistry import create_chemicalscheme
from pycif.utils.check import info
from pycif.utils.path import init_dir
from .make_chemistry import create_chemicalscheme
from .read_chemistry import read_chemicalscheme
default_values = {
# Max number of reactants/reaction
......
import os
from os.path import exists, getsize
import pandas as pd
import numpy as np
import re
from pycif.utils.path import init_dir
from .utils import create_mandchem, create_optchem
......
import numpy as np
import string
from pycif.utils.check import info
from pycif.utils.path import init_dir
import pandas as pd
import os
from pycif.utils.check import info
def read_chemicalscheme(chemistry, **kwargs):
......
from builtins import str
from builtins import range
import os
import re
from os.path import exists, getsize
import pandas as pd
import numpy as np
import re
from pycif.utils.check import info
import pandas as pd
from builtins import range
from builtins import str
def create_mandchem(chemistry, mandatory_files):
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from . import chimere
from pycif.utils.classes.chemistries import Chemistry
from . import chimere
Chemistry.register_plugin("CHIMERE", "gasJtab", chimere)
......
......@@ -3,10 +3,11 @@
Automatically loads all pre-defined models as sub-modules of pycif.models
"""
from __future__ import absolute_import
from . import register
from os.path import dirname, basename, isdir
import glob
from os.path import dirname, basename, isdir
from . import register
modules = glob.glob(dirname(__file__) + "/*")
......
from __future__ import absolute_import
from .read_domain import read_grid
import numpy as np
import string
from pycif.utils.check import info
def read_grid(domain, **kwargs):
......
from __future__ import absolute_import
from .create_domain import create_domain
from .read_domain import read_grid
from __future__ import division
import numpy as np
from pycif.utils.check import info
......
from __future__ import absolute_import
from .create_domain import create_domain
from .read_domain import read_grid
......
import numpy as np
from builtins import map
from builtins import range
import numpy as np
from pycif.utils.check import info
def read_grid(domain, **kwargs):
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from . import lmdz
from pycif.utils.classes.domains import Domain
from . import chimere
from . import dummy
from pycif.utils.classes.domains import Domain
from . import lmdz
Domain.register_plugin("LMDZ", "std", lmdz)
Domain.register_plugin("CHIMERE", "std", chimere)
......
......@@ -3,10 +3,11 @@
Automatically loads all pre-defined models as sub-modules of pycif.models
"""
from __future__ import absolute_import
from . import register
from os.path import dirname, basename, isdir
import glob
from os.path import dirname, basename, isdir
from .register import *
modules = glob.glob(dirname(__file__) + "/*")
......
import os
from types import MethodType
from pycif.utils import path
from pycif.utils.check import info
from .fetch import fetch
from .read import read
from .write import write
from .fetch import fetch
requirements = {
"domain": {"name": "CHIMERE", "version": "std", "empty": False}
......
import numpy as np
import os
import numpy as np
from pycif.utils import path
......
import pandas as pd
from pycif.utils.check import info
from pycif.utils import path
from pycif.utils.netcdf import readnc
from netCDF4 import Dataset
import xarray as xr
import datetime
import numpy as np
import os
import numpy as np
import xarray as xr
from netCDF4 import Dataset
from pycif.utils.netcdf import readnc
def read(
self,
......
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