Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cigale
CIGALE
Commits
4fd28bcd
Commit
4fd28bcd
authored
Aug 31, 2015
by
Médéric Boquien
Browse files
Restrict the cosmology to the redshifting module. It does not make much sense in other modules.
parent
72abdf36
Changes
4
Hide whitespace changes
Inline
Side-by-side
pcigale/creation_modules/fritz2006.py
View file @
4fd28bcd
...
...
@@ -14,7 +14,6 @@ from collections import OrderedDict
import
numpy
as
np
from
pcigale.data
import
Database
from
.
import
CreationModule
from
pcigale.sed.cosmology
import
cosmology
class
Fritz2006
(
CreationModule
):
...
...
pcigale/creation_modules/redshifting.py
View file @
4fd28bcd
...
...
@@ -23,7 +23,7 @@ from scipy.constants import parsec
from
scipy.misc
import
factorial
from
..creation_modules
import
CreationModule
from
pcigale.sed
.cosmology
import
cosmology
from
astropy
.cosmology
import
WMAP7
as
cosmology
def
igm_transmission
(
wavelength
,
redshift
):
...
...
pcigale/sed/cosmology.py
deleted
100644 → 0
View file @
72abdf36
# -*- coding: utf-8 -*-
# Copyright (C) 2013 Centre de données Astrophysiques de Marseille
# Licensed under the CeCILL-v2 licence - see Licence_CeCILL_V2-en.txt
# Author: Yannick Roehlly
"""Cosmology configuration
We use astropy.cosmology module. For now, we import the desired cosmology here
so that it can be changed easily for people needing a specific cosmology.
"""
from
astropy.cosmology
import
WMAP7
as
cosmology
pcigale_plots/__init__.py
View file @
4fd28bcd
...
...
@@ -18,7 +18,6 @@ import numpy as np
import
os
import
pkg_resources
from
scipy.constants
import
c
,
parsec
from
pcigale.sed.cosmology
import
cosmology
from
pcigale.data
import
Database
from
pcigale.utils
import
read_table
from
pcigale.session.configuration
import
Configuration
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment