Commit 9fb807a3 authored by Médéric Boquien's avatar Médéric Boquien

Create a pcigale/utils directory to store various utility functions in...

Create a pcigale/utils directory to store various utility functions in preparation for the inclusion of cosmology utility functions. Move pcigale/utils.py to pcigale/utils/io.py, which contains only read_table() and adapt the rest of the code accordingly.
parent ebc21767
...@@ -8,7 +8,7 @@ from astropy.table import Column ...@@ -8,7 +8,7 @@ from astropy.table import Column
import numpy as np import numpy as np
from scipy.constants import parsec from scipy.constants import parsec
from ..utils import read_table from ..utils.io import read_table
from .utils import get_info from .utils import get_info
......
...@@ -8,7 +8,7 @@ import collections ...@@ -8,7 +8,7 @@ import collections
import itertools import itertools
import numpy as np import numpy as np
from ..utils import read_table from ..utils.io import read_table
class ParametersManager(object): class ParametersManager(object):
......
...@@ -13,7 +13,7 @@ This module reads a SED spectrum from a file. ...@@ -13,7 +13,7 @@ This module reads a SED spectrum from a file.
from collections import OrderedDict from collections import OrderedDict
from ..utils import read_table from ..utils.io import read_table
from . import SedModule from . import SedModule
......
...@@ -15,7 +15,7 @@ from collections import OrderedDict ...@@ -15,7 +15,7 @@ from collections import OrderedDict
import numpy as np import numpy as np
from ..utils import read_table from ..utils.io import read_table
from . import SedModule from . import SedModule
......
...@@ -16,7 +16,7 @@ import validate ...@@ -16,7 +16,7 @@ import validate
from ..managers.parameters import ParametersManager from ..managers.parameters import ParametersManager
from ..data import Database from ..data import Database
from ..utils import read_table from ..utils.io import read_table
from .. import sed_modules from .. import sed_modules
from .. import analysis_modules from .. import analysis_modules
from ..warehouse import SedWarehouse from ..warehouse import SedWarehouse
......
Markdown is supported
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