Giter Club home page Giter Club logo

python-fsps's Introduction

python-fsps's People

Contributors

bd-j avatar dependabot[bot] avatar dfm avatar eteq avatar github-actions[bot] avatar henrysky avatar jonathansick avatar jrleja avatar mjpark-astro avatar mwalmsley avatar pre-commit-ci[bot] avatar spencerscott917 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-fsps's Issues

KeyError

Just did a fresh install of fsps and then python-fsps. fsps installation was fine, and all tests works. But installing python-fsps gives:

...
byte-compiling build/bdist.macosx-10.5-x86_64/egg/fsps/init.py to init.cpython-34.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/fsps/filters.py to filters.cpython-34.pyc
File "build/bdist.macosx-10.5-x86_64/egg/fsps/filters.py", line 88
except KeyError, e:
^
SyntaxError: invalid syntax

byte-compiling build/bdist.macosx-10.5-x86_64/egg/fsps/fsps.py to fsps.cpython-34.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/fsps/tests.py to tests.cpython-34.pyc
...

and then within python:

IPython 3.2.0 -- An enhanced Interactive Python.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

In [1]: import fsps
File "/Users/dweisz/Documents/code/python-fsps/fsps/filters.py", line 88
except KeyError, e:
^
SyntaxError: invalid syntax

Not sure what's going on here. Suggestions?

FSPS on Ubuntu?

Not a python-fsps issue, but I wanted to check in with you guys on whether you've managed to install FSPS on Ubuntu (13.10). FSPS works fine on OS X, but when I try to build it on a cluster VM with ubuntu, the make works fine but even executing the demo programs results in an immediate Killed message. I've tried it on various cleanly built virtual machines, and have no success.

  1. Have people installed it on Ubuntu or Cent OS linuxes?
  2. Are there any special combinations of compilers or Makefile modifications? I'm using gfortran-4.8.

cc/ @dfm @bd-j

zcontinuous, logzsol, and pmetals

Hi,
I just wanted to confirm my understanding of the zcontinuous options and get a bit more background info on the metallicity distribution function (MDF). If I got this right, the 3 zcontinuous options are:
0: SSP has metallicity fixed to one of the allowed discrete values for the isochrone set I'm using (set by integer value of zmet)
1: SSP has metallicity fixed to any interpolated value in between the (min,max) of my isochrone set (set by logzsol)
2: SSP has a range of metalliticies set by the MDF, which is defined by exponent pmetals and logzsol (which is something like a normalization?)

Is that correct? Also, do you have any article reference(s) for this functional form of the MDF? I'd like to learn more about it in order to decide what values of pmetals and logzsol I want to choose.

computing nebular line emission

Hi,

I'm having trouble getting the nebular line emission to work. I'm running python-fsps hash 6b775a4 and fsps hash ae31b2f63d865354ce944e5c22eba6e93e01e67d (both of which I'm pretty sure support nebular line emission).

My sample script:

import fsps
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt

sp = fsps.StellarPopulation()
wave,spec = sp.get_spectrum(tage=1.e-2)

sp2 = fsps.StellarPopulation(add_neb_emission = True,add_neb_continuum = True)
wave2,spec2 = sp.get_spectrum(tage=1.e-2)

fig = plt.figure()
ax = fig.add_subplot(111)
ax.loglog(wave,spec)
ax.loglog(wave2,spec2,label='Nebular Lines on')
ax.set_xlim([1e3,1e4])
ax.set_ylim([1.e-15,1.e-12])
plt.legend(loc=4)

plots the UV/optical SED for a population both with and without nebular line emission on. But the SEDs look identical (and there's no obvious emission lines). Is there something about the way I'm calling fsps.StellarPopulation that I should amend?

thanks so much
-desika

computing CSP

Hi,
I want to compute the SED of a CSP. I wonder how can I do that through python-fsps. I tried fsps.StellarPopulation.compute_csp() only to get:
AttributeError: type object 'StellarPopulation' has no attribute 'compute_csp'
Thanks

Inconsistent mags using get_mags() default (tage=0.0) vs. non-zero tage

This is related to Issue #4 but a separate problem, I think. When I run get_mags() without any tage option it gives me an array of mags at each isochrone age, as expected. But I'm finding that when I specify a nonzero tage in get_mags() I get a set of mags returned that are inconsistent with the default tage=0.0 output for that given age.

Here's an example using the MIST library:

>>> import fsps
>>> import numpy as np
>>> from astropy.table import Table
>>> sp = fsps.StellarPopulation(sfh=4, tau=5.5, zmet=10, sf_start=1.2)
>>> t = Table(sp.get_mags(bands=['sdss_r']), names=['sdss_r'])
>>> t['logAge'] = sp.ssp_ages
>>> t['Age'] = np.power(10, t['logAge']-9.)
>>> print t
    sdss_r    logAge        Age       
------------- ------ -----------------
142.634235255    5.0            0.0001
142.634235255   5.05  0.00011220184543
142.634235255    5.1 0.000125892541179
142.634235255   5.15 0.000141253754462
142.634235255    5.2 0.000158489319246
142.634235255   5.25 0.000177827941004
142.634235255    5.3 0.000199526231497
142.634235255   5.35 0.000223872113857
142.634235255    5.4 0.000251188643151
142.634235255   5.45 0.000281838293126
142.634235255    5.5 0.000316227766017
142.634235255   5.55 0.000354813389234
142.634235255    5.6 0.000398107170553
142.634235255   5.65 0.000446683592151
142.634235255    5.7 0.000501187233627
142.634235255   5.75  0.00056234132519
          ...    ...               ...
6.31373519347   9.55     3.54813389234
6.14171523938    9.6     3.98107170553
5.99198782259   9.65     4.46683592151
5.86297949488    9.7     5.01187233627
5.75375976228   9.75      5.6234132519
5.66396496904    9.8      6.3095734448
5.59361712903   9.85     7.07945784384
 5.5430831926    9.9     7.94328234724
5.51296640503   9.95     8.91250938134
  5.504291255   10.0              10.0
5.51808303428  10.05      11.220184543
5.55538642226   10.1     12.5892541179
5.61704470988  10.15     14.1253754462
5.70352203524   10.2     15.8489319246
5.81433320474  10.25     17.7827941004
5.94943981657   10.3     19.9526231497
Length = 107 rows
>>> t10 = sp.get_mags(bands=['sdss_r'], tage=10.)
 COMPSP WARNING: sf_trunc<sf_start.... sf_trunc will be ignored.
>>> print t10
[ 4.86723385]

You can see that at an age of 10 Gyr, the mags are not the same (4.86723385 for tage=10. and 5.504291255 for tage=0.0). Am I misunderstanding how the tage option for get_mags() works?

Manipulating model spectra

Hi,
If I want to generate many FSPS models but do not wish to re-generate them every time I add new data (or new filters not built-in to FSPS), it seems like the best thing to do is output the model spectra at various age steps rather than the mags themselves. This way, I just need to generate FSPS models once, and save the spectra to file. Then later on I can in principle get whatever mags I want, assuming whatever cosmology I want by redshifting the model spectra and convolving them with my filter functions. Are there any python-fsps functions that exist (analogous to sp.get_mags()) that can act on the spectra themselves? It seems like all the functions act only on the fsps.StellarPopulation class object itself. For example, is it possible to do something like the following?:

sp = fsps.StellarPopulation(compute_vega_mags=False, zcontinuous=1,
                                sfh=0, logzsol=0.0, dust_type=2, dust2=0.2)
wave, spec = sp.get_spectrum(tage=13.7)
get_mags(wave, spec, redshift=some_redshift, bands=my_filters)

What's the best way to handle this kind of thing? The code is already doing this under the hood -- is there a way I can access that machinery for this purpose?

Thanks,
Ravi

Nebular emission and choice of IMF, stellar library

Hi. I was reading through the arXiv paper by @nell-byler about implementing nebular continuum and emission into python-fsps and had a question. If I understand correctly, the user can switch on nebular continuum and emission for both the Padova+Geneva isochrones and the MIST isochrones and have the nebular effects be implemented self-consistently for both. However, for other choices (e.g., IMF and stellar libraries) is it true that the nebular effects are only self-consistent for the selection of the Kroupa (2001) IMF and the BaSeL 3.1 spectral library and that changing these will result in inconsistent results?
For example, if I need the higher wavelength resolution of the MILES library and want to include nebular effects, do I need to worry that my nebular fluxes are not really correct? Thanks.

tabular SFHs return all-zero spectrum for tage > 11 Gyr

I've recently encountered an odd error that I've had no luck diagnosing while using tabulated star formation histories.
I'm implementing my stellar population object, e.g., as follows:

sp = fsps.StellarPopulation(zcontinuous=1,sfh=3)

ages = np.array([  1.5   ,   2.    ,   2.5   ,   3.    ,   3.5   ,   4.    ,
          4.5   ,   5.    ,   5.5   ,   6.    ,   6.5   ,   7.    ,
          7.5   ,   8.    ,   8.5   ,   9.    ,   9.5   ,  10.    ,
         10.25  ,  10.5   ,  10.75  ,  11.    ,  11.25  ,  11.5   ,
         11.5   ,  12.    ,  12.25  ,  12.9625,  13.1   ,  13.3   ,
         13.55  ,  13.6   ,  13.65  ])
sfrs =  np.array([ 0.01064388,  0.07342554,  0.10751006,  0.18667533,  0.2039429 ,
         0.21368737,  0.1746282 ,  0.20258633,  0.19230508,  0.19745376,
         0.26460015,  0.24665266,  0.20073408,  0.14193607,  0.06994355,
         0.03869486,  0.06280563,  0.02791233,  0.05690032,  0.05081849,
         0.04366849,  0.1072122 ,  0.04987017,  0.01957149,  0.0060195 ,
         0.03364958,  0.02865306,  0.01195153,  0.01377851,  0.01634589,
         0.05268542,  0.03616405,  0.08057589])

sp.set_tabular_sfh(ages, sfrs)

When I then go to get my spectra with

sp.get_spectrum()

tage < ~11 Gyr gives a reasonable spectrum, but anything older returns an array of all zeros.
I don't see this behavior when I try using the example data bundled with FSPS, so it must be something in the way I am giving FSPS the age and SFR information. Any trouble shooting help would be much appreciated.

-Claire

Error when trying to build on python 2.7

I have built fsps package, set up $SPS_HOME env variable. I am using Ubuntu 14.04 LTS 64-bit. I modified Makefile as needed and ran "make" in the $SPS_HOME/src directory and everything was built properly without errors. Python2.7 pip version is 1.5.4. I am using revision 143 of the FSPS Fortran API. While trying to build python-fsps using pip, I get following error:
error1
.....
error

What am I doing wrong? Or is there some problem with my machine?

add_stellar_remnants and other bools

Hi All,

It's totally possible that I'm messing something up in my calls to python-fsps, but I'm unable to debug the following variant of the example on the (nice shiny new) docs:

import fsps
sp = fsps.StellarPopulation(compute_vega_mags=False, sfh=0, zmet=20,
                                dust_type=2, dust2=0.2, sf_start=6.,add_stellar_remnants=False)

I get a traceback that doesn't like an assert statement in fsps.py

---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
<ipython-input-3-59167ff41ab9> in <module>()
      1 sp = fsps.StellarPopulation(compute_vega_mags=False, sfh=0, zmet=20,
----> 2                                 dust_type=2, dust2=0.2, sf_start=6.,add_stellar_remnants=False)

/Users/desika/python-fsps/fsps/fsps.pyc in __init__(self, compute_vega_mags, redshift_colors, smooth_velocity, add_stellar_remnants, add_dust_emission, add_agb_dust_model, add_neb_emission, **kwargs)
    394             assert redshift_colors == bool(rcolors)
    395             assert smooth_velocity == bool(svel)
--> 396             assert add_stellar_remnants == bool(asr)
    397             assert add_neb_emission == bool(ane)
    398             assert add_dust_emission == bool(ade)

this is the same when I try the other statements in the same block of asserts (i.e. add_dust_emission, etc.).

Again, though, it's totally possible that I'm doing something wrong in the call?
thanks
-desika

installation issues with gcc

I'm having some troubles installing py-fsps with gcc. I'm on a new cluster, with the following:

desika.narayanan@gator4 python-fsps]$ module list

Currently Loaded Modules:
  1) git/1.9.0   2) gcc/5.2.0   3) openmpi/1.10.0

[desika.narayanan@gator4 python-fsps]$ which gfortran
/apps/compilers/gcc/5.2.0/bin/gfortran

[desika.narayanan@gator4 python-fsps]$ ls /apps/compilers/gcc/5.2.0/bin
aot-compile*  gappletviewer*  gcc-nm*      gcjh*       gij*         gkeytool*       grmid*         jcf-dump*                      x86_64-unknown-linux-gnu-g++*        x86_64-unknown-linux-gnu-gcc-nm*
c++*          gc-analyze*     gcc-ranlib*  gcov*       gjar*        gnative2ascii*  grmiregistry*  jv-convert*                    x86_64-unknown-linux-gnu-gcc*        x86_64-unknown-linux-gnu-gcc-ranlib*
cpp*          gcc*            gcj*         gcov-tool*  gjarsigner*  gorbd*          gserialver*    rebuild-gcj-db*                x86_64-unknown-linux-gnu-gcc-5.2.0*  x86_64-unknown-linux-gnu-gcj*
g++*          gcc-ar*         gcj-dbtool*  gfortran*   gjavah*      grmic*          gtnameserv*    x86_64-unknown-linux-gnu-c++*  x86_64-unknown-linux-gnu-gcc-ar*     x86_64-unknown-linux-gnu-gfortran*
[desika.narayanan@gator4 python-fsps]$

fsps compiles with no problem. In particular, in the fsps Makefile, I use the options:

# GNU
F90 = gfortran

#========================
# Compiler Optimizations
#  (Uncomment only one)
#========================
# GNU (version < 4.3.0)
#F90FLAGS = -O -cpp
# GNU (version >= 4.3.0)
F90FLAGS = -O3 -march=native -cpp -fPIC

and no issues in compilation. However, when compiling py-fsps, I get some error looking for f95. It's a bit odd since I can compile with other versions of gfortran with no problem. Am I possibly missing a python package?

[desika.narayanan@gator4 python-fsps]$ python setup.py install
...
.....
gcc: /tmp/tmpLM7bE4/src.linux-x86_64-2.7/_fspsmodule.c
In file included from /home/desika.narayanan/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0,
                 from /home/desika.narayanan/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                 from /home/desika.narayanan/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from /tmp/tmpLM7bE4/src.linux-x86_64-2.7/fortranobject.h:13,
                 from /tmp/tmpLM7bE4/src.linux-x86_64-2.7/_fspsmodule.c:19:
/home/desika.narayanan/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^
/tmp/tmpLM7bE4/src.linux-x86_64-2.7/_fspsmodule.c:145:12: warning: ‘f2py_size’ defined but not used [-Wunused-function]
 static int f2py_size(PyArrayObject* var, ...)
            ^
compiling Fortran 90 module sources
Fortran f77 compiler: gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops
Fortran f90 compiler: f95 -fPIC -fPIC -O3 -funroll-loops
Fortran fix compiler: f95 -Wall -g -ffixed-form -fno-second-underscore -fPIC -fPIC -O3 -funroll-loops
compile options: '-I/home/desika.narayanan/pd//fsps/src -I/tmp/tmpLM7bE4/src.linux-x86_64-2.7 -I/home/desika.narayanan/miniconda2/lib/python2.7/site-packages/numpy/core/include -I/home/desika.narayanan/miniconda2/include/python2.7 -c'
extra options: '-J/tmp/tmpLM7bE4/ -I/tmp/tmpLM7bE4/'
f95:f90: fsps.f90
sh: f95: command not found
sh: f95: command not found
error: Command "f95 -fPIC -fPIC -O3 -funroll-loops -I/home/desika.narayanan/pd//fsps/src -I/tmp/tmpLM7bE4/src.linux-x86_64-2.7 -I/home/desika.narayanan/miniconda2/lib/python2.7/site-packages/numpy/core/include -I/home/desika.narayanan/miniconda2/include/python2.7 -c -c fsps.f90 -o /tmp/tmpLM7bE4/fsps.o -J/tmp/tmpLM7bE4/ -I/tmp/tmpLM7bE4/" failed with exit status 127

python-fsps build problems with numpy v1.10.x

It looks like numpy has made some changes to f2py in v1.10.x that are breaking the python-fsps build. They are reverting some of those changes, it is unclear at this point which change in particular has broken the build.

For now the solution is to use numpy 1.9.3 and below. I'll try and see if the latest f2py changes on the numpy development version have fixed the problem, or if we need to open an issue with numpy

Clarify getmags + redshift behavior

Right now the use of zred can have different effects depending on whether it is specified in the StellarPopulation.params or in the call to get_mags, or both, and whether get_spectrum was called previously or not.

This should be fixed or at least clarified in the docs.

Typo in Latest development version of python-fsps

In [1]: import fsps
File "/Library/Anaconda/lib/python2.7/site-packages/fsps-0.2.1-py2.7-macosx-10.5-x86_64.egg/fsps/filters.py", line 140
if len(columns) > 1
^
SyntaxError: invalid syntax

(there is a colon missing on that line)

Error on install

I've installed FSPS with no errors.

I try to install python-fsps with the command:
pip install fsps

Then it starts to install when I get output that includes (the rest flashes by too quickly and my terminal doesn't save enough lines of output for me to see the first few lines when the output stops):

  Failed building wheel for fsps
  Running setup.py clean for fsps

Then I get this long output which end in an error message:

  get_useparameters: no module sps_utils info used by get_nbands
  				Block: get_lambda
  In: fsps.pyf:_fsps:unknown_interface:driver:get_lambda
  get_useparameters: no module sps_vars info used by get_lambda
  In: fsps.pyf:_fsps:unknown_interface:driver:get_lambda
  get_useparameters: no module sps_utils info used by get_lambda
  				Block: get_isochrone_dimensions
  In: fsps.pyf:_fsps:unknown_interface:driver:get_isochrone_dimensions
  get_useparameters: no module sps_vars info used by get_isochrone_dimensions
  In: fsps.pyf:_fsps:unknown_interface:driver:get_isochrone_dimensions
  get_useparameters: no module sps_utils info used by get_isochrone_dimensions
  				Block: get_nmass_isochrone
  In: fsps.pyf:_fsps:unknown_interface:driver:get_nmass_isochrone
  get_useparameters: no module sps_vars info used by get_nmass_isochrone
  In: fsps.pyf:_fsps:unknown_interface:driver:get_nmass_isochrone
  get_useparameters: no module sps_utils info used by get_nmass_isochrone
  				Block: get_stats
  In: fsps.pyf:_fsps:unknown_interface:driver:get_stats
  get_useparameters: no module sps_vars info used by get_stats
  In: fsps.pyf:_fsps:unknown_interface:driver:get_stats
  get_useparameters: no module sps_utils info used by get_stats
  				Block: get_filter_data
  In: fsps.pyf:_fsps:unknown_interface:driver:get_filter_data
  get_useparameters: no module sps_vars info used by get_filter_data
  In: fsps.pyf:_fsps:unknown_interface:driver:get_filter_data
  get_useparameters: no module sps_utils info used by get_filter_data
  				Block: write_isoc
  In: fsps.pyf:_fsps:unknown_interface:driver:write_isoc
  get_useparameters: no module sps_vars info used by write_isoc
  In: fsps.pyf:_fsps:unknown_interface:driver:write_isoc
  get_useparameters: no module sps_utils info used by write_isoc
  Post-processing (stage 2)...
  	Block: _fsps
  		Block: unknown_interface
  			Block: driver
  				Block: setup
  				Block: set_ssp_params
  				Block: set_csp_params
  				Block: ssps
  				Block: ssp
  				Block: compute_zdep
  				Block: get_spec
  				Block: get_mags
  				Block: interp_ssp
  				Block: smooth_spectrum
  				Block: stellar_spectrum
  				Block: get_ssp_spec
  				Block: get_setup_vars
  				Block: get_nz
  				Block: get_zlegend
  				Block: get_timefull
  				Block: get_ntfull
  				Block: get_nspec
  				Block: get_nbands
  				Block: get_lambda
  				Block: get_isochrone_dimensions
  				Block: get_nmass_isochrone
  				Block: get_stats
  				Block: get_filter_data
  				Block: write_isoc
  Building modules...
  	Building module "_fsps"...
  		Constructing F90 module support for "driver"...
  		  Variables: is_setup
  			Constructing wrapper function "driver.setup"...
  			  setup(compute_vega_mags0)
  			Constructing wrapper function "driver.set_ssp_params"...
  			  set_ssp_params(imf_type0,imf1,imf2,imf3,vdmc,mdave,dell,delt,sbss,fbhb,pagb,add_stellar_remnants0,tpagb_norm_type0,add_agb_dust_model0,agb_dust,redgb,masscut,fcstar,evtype)
  			Constructing wrapper function "driver.set_csp_params"...
  			  set_csp_params(smooth_velocity0,vactoair_flag0,redshift_colors0,dust_type0,add_dust_emission0,add_neb_emission0,add_neb_continuum0,cloudy_dust0,add_igm_absorption0,zmet,sfh,wgp1,wgp2,wgp3,tau,const_bn,tage,fburst,tburst,dust1,dust2,logzsol,zred,pmetals,dust_clumps,frac_nodust,dust_index,dust_tesc,frac_obrun,uvb,mwr,dust1_index,sf_start,sf_trunc,sf_slope,duste_gamma,duste_umin,duste_qpah,sigma_smooth,min_wave_smooth,max_wave_smooth,gas_logu,gas_logz,igm_factor,fagn,agn_tau)
  			Constructing wrapper function "driver.ssps"...
  			  ssps()
  			Constructing wrapper function "driver.ssp"...
  			  ssp(zi)
  			Constructing wrapper function "driver.compute_zdep"...
  			  compute_zdep(ns,n_age,ztype)
  			Constructing wrapper function "driver.get_spec"...
  			  spec_out = get_spec(ns,n_age)
  			Constructing wrapper function "driver.get_mags"...
  			  mags = get_mags(ns,n_age,z_red,mc,[n_bands])
  			Constructing wrapper function "driver.interp_ssp"...
  			  interp_ssp(zpos,tpos,spec,mass,lbol,[ns])
  			Constructing wrapper function "driver.smooth_spectrum"...
  			  smooth_spectrum(wave,spec,sigma_broad,minw,maxw,[ns])
  			Constructing wrapper function "driver.stellar_spectrum"...
  			  stellar_spectrum(mact,logt,lbol,logg,phase,ffco,lmdot,wght,spec_out,[ns])
  			Constructing wrapper function "driver.get_ssp_spec"...
  			  get_ssp_spec(ssp_spec_out,ssp_mass_out,ssp_lbol_out,[ns,n_age,n_z])
  			Constructing wrapper function "driver.get_setup_vars"...
  			  cvms = get_setup_vars()
  			Constructing wrapper function "driver.get_nz"...
  			  n_z = get_nz()
  			Constructing wrapper function "driver.get_zlegend"...
  			  z_legend = get_zlegend(n_z)
  			Constructing wrapper function "driver.get_timefull"...
  			  timefull = get_timefull(n_age)
  			Constructing wrapper function "driver.get_ntfull"...
  			  n_age = get_ntfull()
  			Constructing wrapper function "driver.get_nspec"...
  			  ns = get_nspec()
  			Constructing wrapper function "driver.get_nbands"...
  			  nb = get_nbands()
  			Constructing wrapper function "driver.get_lambda"...
  			  lambda = get_lambda(ns)
  			Constructing wrapper function "driver.get_isochrone_dimensions"...
  			  n_age,n_mass = get_isochrone_dimensions()
  			Constructing wrapper function "driver.get_nmass_isochrone"...
  			  nmass = get_nmass_isochrone(zz,tt)
  			Constructing wrapper function "driver.get_stats"...
  			  age,mass_csp,lbol_csp,sfr,mdust = get_stats(n_age)
  			Constructing wrapper function "driver.get_filter_data"...
  			  wave_eff,mag_vega,mag_sun = get_filter_data(nb)
  			Constructing wrapper function "driver.write_isoc"...
  			  write_isoc(outfile)
  	Wrote C/API module "_fsps" to file "/tmp/tmpsc_g17n6/src.linux-x86_64-3.6/_fspsmodule.c"
  	Fortran 90 wrappers are saved to "/tmp/tmpsc_g17n6/src.linux-x86_64-3.6/_fsps-f2pywrappers2.f90"
    adding '/tmp/tmpsc_g17n6/src.linux-x86_64-3.6/fortranobject.c' to sources.
    adding '/tmp/tmpsc_g17n6/src.linux-x86_64-3.6' to include_dirs.
  copying /work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/f2py/src/fortranobject.c -> /tmp/tmpsc_g17n6/src.linux-x86_64-3.6
  copying /work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/f2py/src/fortranobject.h -> /tmp/tmpsc_g17n6/src.linux-x86_64-3.6
    adding '/tmp/tmpsc_g17n6/src.linux-x86_64-3.6/_fsps-f2pywrappers2.f90' to sources.
  build_src: building npy-pkg config files
  running build_ext
  customize UnixCCompiler
  customize UnixCCompiler using build_ext
  customize Gnu95FCompiler
  Found executable /opt/apps/gcc/4.9.1/bin/gfortran
  customize Gnu95FCompiler
  customize Gnu95FCompiler using build_ext
  building '_fsps' extension
  compiling C sources
  C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
  
  creating /tmp/tmpsc_g17n6/tmp
  creating /tmp/tmpsc_g17n6/tmp/tmpsc_g17n6
  creating /tmp/tmpsc_g17n6/tmp/tmpsc_g17n6/src.linux-x86_64-3.6
  compile options: '-I/work/03565/stevans/maverick/software/fsps/src -I/tmp/tmpsc_g17n6/src.linux-x86_64-3.6 -I/work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include -I/work/03565/stevans/maverick/software/anaconda3/include/python3.6m -c'
  gcc: /tmp/tmpsc_g17n6/src.linux-x86_64-3.6/_fspsmodule.c
  In file included from /work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0,
                   from /work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                   from /work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                   from /tmp/tmpsc_g17n6/src.linux-x86_64-3.6/fortranobject.h:13,
                   from /tmp/tmpsc_g17n6/src.linux-x86_64-3.6/_fspsmodule.c:19:
  /work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   #warning "Using deprecated NumPy API, disable it by " \
    ^
  /tmp/tmpsc_g17n6/src.linux-x86_64-3.6/_fspsmodule.c:145:12: warning: ‘f2py_size’ defined but not used [-Wunused-function]
   static int f2py_size(PyArrayObject* var, ...)
              ^
  gcc: /tmp/tmpsc_g17n6/src.linux-x86_64-3.6/fortranobject.c
  In file included from /work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0,
                   from /work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                   from /work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                   from /tmp/tmpsc_g17n6/src.linux-x86_64-3.6/fortranobject.h:13,
                   from /tmp/tmpsc_g17n6/src.linux-x86_64-3.6/fortranobject.c:2:
  /work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   #warning "Using deprecated NumPy API, disable it by " \
    ^
  /tmp/tmpsc_g17n6/src.linux-x86_64-3.6/fortranobject.c: In function ‘format_def’:
  /tmp/tmpsc_g17n6/src.linux-x86_64-3.6/fortranobject.c:139:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
           if (size < sizeof(notalloc)) {
                    ^
  compiling Fortran 90 module sources
  Fortran f77 compiler: /opt/apps/gcc/4.9.1/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops
  Fortran f90 compiler: /opt/apps/gcc/4.9.1/bin/gfortran -fPIC -fPIC -O3 -funroll-loops
  Fortran fix compiler: /opt/apps/gcc/4.9.1/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -fPIC -O3 -funroll-loops
  compile options: '-I/work/03565/stevans/maverick/software/fsps/src -I/tmp/tmpsc_g17n6/src.linux-x86_64-3.6 -I/work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include -I/work/03565/stevans/maverick/software/anaconda3/include/python3.6m -c'
  extra options: '-J/tmp/tmpsc_g17n6/ -I/tmp/tmpsc_g17n6/'
  gfortran:f90: fsps.f90
  compiling Fortran sources
  Fortran f77 compiler: /opt/apps/gcc/4.9.1/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops
  Fortran f90 compiler: /opt/apps/gcc/4.9.1/bin/gfortran -fPIC -fPIC -O3 -funroll-loops
  Fortran fix compiler: /opt/apps/gcc/4.9.1/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -fPIC -O3 -funroll-loops
  compile options: '-I/work/03565/stevans/maverick/software/fsps/src -I/tmp/tmpsc_g17n6/src.linux-x86_64-3.6 -I/work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include -I/work/03565/stevans/maverick/software/anaconda3/include/python3.6m -c'
  extra options: '-J/tmp/tmpsc_g17n6/ -I/tmp/tmpsc_g17n6/'
  gfortran:f90: /tmp/tmpsc_g17n6/src.linux-x86_64-3.6/_fsps-f2pywrappers2.f90
  /opt/apps/gcc/4.9.1/bin/gfortran -Wall -g -Wall -g -shared /tmp/tmpsc_g17n6/tmp/tmpsc_g17n6/src.linux-x86_64-3.6/_fspsmodule.o /tmp/tmpsc_g17n6/tmp/tmpsc_g17n6/src.linux-x86_64-3.6/fortranobject.o /tmp/tmpsc_g17n6/fsps.o /tmp/tmpsc_g17n6/tmp/tmpsc_g17n6/src.linux-x86_64-3.6/_fsps-f2pywrappers2.o /work/03565/stevans/maverick/software/fsps/src/sbf.o /work/03565/stevans/maverick/software/fsps/src/intsfwght.o /work/03565/stevans/maverick/software/fsps/src/mod_hb.o /work/03565/stevans/maverick/software/fsps/src/compsp.o /work/03565/stevans/maverick/software/fsps/src/getspec.o /work/03565/stevans/maverick/software/fsps/src/getindx.o /work/03565/stevans/maverick/software/fsps/src/tsum.o /work/03565/stevans/maverick/software/fsps/src/smoothspec.o /work/03565/stevans/maverick/software/fsps/src/vacairconv.o /work/03565/stevans/maverick/software/fsps/src/getmags.o /work/03565/stevans/maverick/software/fsps/src/ssp_gen.o /work/03565/stevans/maverick/software/fsps/src/ztinterp.o /work/03565/stevans/maverick/software/fsps/src/add_dust.o /work/03565/stevans/maverick/software/fsps/src/sps_setup.o /work/03565/stevans/maverick/software/fsps/src/pz_convol.o /work/03565/stevans/maverick/software/fsps/src/csp_gen.o /work/03565/stevans/maverick/software/fsps/src/imf_weight.o /work/03565/stevans/maverick/software/fsps/src/sfhinfo.o /work/03565/stevans/maverick/software/fsps/src/igm_absorb.o /work/03565/stevans/maverick/software/fsps/src/imf.o /work/03565/stevans/maverick/software/fsps/src/sfhlimit.o /work/03565/stevans/maverick/software/fsps/src/write_isochrone.o /work/03565/stevans/maverick/software/fsps/src/agn_dust.o /work/03565/stevans/maverick/software/fsps/src/add_bs.o /work/03565/stevans/maverick/software/fsps/src/sps_vars.o /work/03565/stevans/maverick/software/fsps/src/add_remnants.o /work/03565/stevans/maverick/software/fsps/src/sfhstat.o /work/03565/stevans/maverick/software/fsps/src/linterparr.o /work/03565/stevans/maverick/software/fsps/src/get_lumdist.o /work/03565/stevans/maverick/software/fsps/src/funcint.o /work/03565/stevans/maverick/software/fsps/src/sfh_weight.o /work/03565/stevans/maverick/software/fsps/src/setup_tabular_sfh.o /work/03565/stevans/maverick/software/fsps/src/spec_bin.o /work/03565/stevans/maverick/software/fsps/src/sps_utils.o /work/03565/stevans/maverick/software/fsps/src/get_tuniv.o /work/03565/stevans/maverick/software/fsps/src/mod_gb.o /work/03565/stevans/maverick/software/fsps/src/locate.o /work/03565/stevans/maverick/software/fsps/src/linterp.o /work/03565/stevans/maverick/software/fsps/src/add_nebular.o /work/03565/stevans/maverick/software/fsps/src/attn_curve.o /work/03565/stevans/maverick/software/fsps/src/add_agb_dust.o -L/work/03565/stevans/maverick/software/anaconda3/lib -lpython3.6m -lgfortran -o ./_fsps.cpython-36m-x86_64-linux-gnu.so
  /usr/bin/ld: /work/03565/stevans/maverick/software/fsps/src/sbf.o: relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /work/03565/stevans/maverick/software/fsps/src/sbf.o: could not read symbols: Bad value
  collect2: error: ld returned 1 exit status
  /usr/bin/ld: /work/03565/stevans/maverick/software/fsps/src/sbf.o: relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /work/03565/stevans/maverick/software/fsps/src/sbf.o: could not read symbols: Bad value
  collect2: error: ld returned 1 exit status
  error: Command "/opt/apps/gcc/4.9.1/bin/gfortran -Wall -g -Wall -g -shared /tmp/tmpsc_g17n6/tmp/tmpsc_g17n6/src.linux-x86_64-3.6/_fspsmodule.o /tmp/tmpsc_g17n6/tmp/tmpsc_g17n6/src.linux-x86_64-3.6/fortranobject.o /tmp/tmpsc_g17n6/fsps.o /tmp/tmpsc_g17n6/tmp/tmpsc_g17n6/src.linux-x86_64-3.6/_fsps-f2pywrappers2.o /work/03565/stevans/maverick/software/fsps/src/sbf.o /work/03565/stevans/maverick/software/fsps/src/intsfwght.o /work/03565/stevans/maverick/software/fsps/src/mod_hb.o /work/03565/stevans/maverick/software/fsps/src/compsp.o /work/03565/stevans/maverick/software/fsps/src/getspec.o /work/03565/stevans/maverick/software/fsps/src/getindx.o /work/03565/stevans/maverick/software/fsps/src/tsum.o /work/03565/stevans/maverick/software/fsps/src/smoothspec.o /work/03565/stevans/maverick/software/fsps/src/vacairconv.o /work/03565/stevans/maverick/software/fsps/src/getmags.o /work/03565/stevans/maverick/software/fsps/src/ssp_gen.o /work/03565/stevans/maverick/software/fsps/src/ztinterp.o /work/03565/stevans/maverick/software/fsps/src/add_dust.o /work/03565/stevans/maverick/software/fsps/src/sps_setup.o /work/03565/stevans/maverick/software/fsps/src/pz_convol.o /work/03565/stevans/maverick/software/fsps/src/csp_gen.o /work/03565/stevans/maverick/software/fsps/src/imf_weight.o /work/03565/stevans/maverick/software/fsps/src/sfhinfo.o /work/03565/stevans/maverick/software/fsps/src/igm_absorb.o /work/03565/stevans/maverick/software/fsps/src/imf.o /work/03565/stevans/maverick/software/fsps/src/sfhlimit.o /work/03565/stevans/maverick/software/fsps/src/write_isochrone.o /work/03565/stevans/maverick/software/fsps/src/agn_dust.o /work/03565/stevans/maverick/software/fsps/src/add_bs.o /work/03565/stevans/maverick/software/fsps/src/sps_vars.o /work/03565/stevans/maverick/software/fsps/src/add_remnants.o /work/03565/stevans/maverick/software/fsps/src/sfhstat.o /work/03565/stevans/maverick/software/fsps/src/linterparr.o /work/03565/stevans/maverick/software/fsps/src/get_lumdist.o /work/03565/stevans/maverick/software/fsps/src/funcint.o /work/03565/stevans/maverick/software/fsps/src/sfh_weight.o /work/03565/stevans/maverick/software/fsps/src/setup_tabular_sfh.o /work/03565/stevans/maverick/software/fsps/src/spec_bin.o /work/03565/stevans/maverick/software/fsps/src/sps_utils.o /work/03565/stevans/maverick/software/fsps/src/get_tuniv.o /work/03565/stevans/maverick/software/fsps/src/mod_gb.o /work/03565/stevans/maverick/software/fsps/src/locate.o /work/03565/stevans/maverick/software/fsps/src/linterp.o /work/03565/stevans/maverick/software/fsps/src/add_nebular.o /work/03565/stevans/maverick/software/fsps/src/attn_curve.o /work/03565/stevans/maverick/software/fsps/src/add_agb_dust.o -L/work/03565/stevans/maverick/software/anaconda3/lib -lpython3.6m -lgfortran -o ./_fsps.cpython-36m-x86_64-linux-gnu.so" failed with exit status 1
  
  ----------------------------------------
  Failed building wheel for fsps
  Running setup.py clean for fsps
Failed to build fsps
Installing collected packages: fsps
  Running setup.py install for fsps ... error
    Complete output from command /work/03565/stevans/maverick/software/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ck_wzji3/fsps/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-51n239l7-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    creating build/lib.linux-x86_64-3.6/fsps
    copying fsps/__init__.py -> build/lib.linux-x86_64-3.6/fsps
    copying fsps/fsps.py -> build/lib.linux-x86_64-3.6/fsps
    copying fsps/filters.py -> build/lib.linux-x86_64-3.6/fsps
    copying fsps/tests.py -> build/lib.linux-x86_64-3.6/fsps
    running egg_info
    writing fsps.egg-info/PKG-INFO
    writing dependency_links to fsps.egg-info/dependency_links.txt
    writing top-level names to fsps.egg-info/top_level.txt
    warning: manifest_maker: standard file '-c' not found
    
    reading manifest file 'fsps.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'fsps/data/filter_keys.txt'
    writing manifest file 'fsps.egg-info/SOURCES.txt'
    copying fsps/fsps.f90 -> build/lib.linux-x86_64-3.6/fsps
    running build_ext
    Running f2py on ['fsps.f90'] with flags ['-m', '_fsps', '-h', 'fsps.pyf', '--overwrite-signature']
    Reading fortran codes...
    	Reading file 'fsps.f90' (format:free)
    rmbadname1: Replacing "const" with "const_bn".
    rmbadname1: Replacing "const" with "const_bn".
    Post-processing...
    	Block: _fsps
    			Block: driver
    In: :_fsps:fsps.f90:driver
    get_useparameters: no module sps_vars info used by driver
    In: :_fsps:fsps.f90:driver
    get_useparameters: no module sps_utils info used by driver
    In: :_fsps:fsps.f90:driver
    	getarrlen:variable "ntfull" undefined
    In: :_fsps:fsps.f90:driver
    	getarrlen:variable "nz" undefined
    In: :_fsps:fsps.f90:driver
    	getarrlen:variable "nz" undefined
    In: :_fsps:fsps.f90:driver
    	getarrlen:variable "nt" undefined
    				Block: setup
    In: :_fsps:fsps.f90:driver:setup
    get_useparameters: no module sps_vars info used by setup
    In: :_fsps:fsps.f90:driver:setup
    get_useparameters: no module sps_utils info used by setup
    				Block: set_ssp_params
    In: :_fsps:fsps.f90:driver:set_ssp_params
    get_useparameters: no module sps_vars info used by set_ssp_params
    In: :_fsps:fsps.f90:driver:set_ssp_params
    get_useparameters: no module sps_utils info used by set_ssp_params
    				Block: set_csp_params
    In: :_fsps:fsps.f90:driver:set_csp_params
    get_useparameters: no module sps_vars info used by set_csp_params
    In: :_fsps:fsps.f90:driver:set_csp_params
    get_useparameters: no module sps_utils info used by set_csp_params
    				Block: ssps
    In: :_fsps:fsps.f90:driver:ssps
    get_useparameters: no module sps_vars info used by ssps
    In: :_fsps:fsps.f90:driver:ssps
    get_useparameters: no module sps_utils info used by ssps
    				Block: ssp
    In: :_fsps:fsps.f90:driver:ssp
    get_useparameters: no module sps_vars info used by ssp
    In: :_fsps:fsps.f90:driver:ssp
    get_useparameters: no module sps_utils info used by ssp
    				Block: compute_zdep
    In: :_fsps:fsps.f90:driver:compute_zdep
    get_useparameters: no module sps_vars info used by compute_zdep
    In: :_fsps:fsps.f90:driver:compute_zdep
    get_useparameters: no module sps_utils info used by compute_zdep
    				Block: get_spec
    In: :_fsps:fsps.f90:driver:get_spec
    get_useparameters: no module sps_vars info used by get_spec
    In: :_fsps:fsps.f90:driver:get_spec
    get_useparameters: no module sps_utils info used by get_spec
    				Block: get_mags
    In: :_fsps:fsps.f90:driver:get_mags
    get_useparameters: no module sps_vars info used by get_mags
    In: :_fsps:fsps.f90:driver:get_mags
    get_useparameters: no module sps_utils info used by get_mags
    				Block: interp_ssp
    In: :_fsps:fsps.f90:driver:interp_ssp
    get_useparameters: no module sps_vars info used by interp_ssp
    In: :_fsps:fsps.f90:driver:interp_ssp
    get_useparameters: no module sps_utils info used by interp_ssp
    In: :_fsps:fsps.f90:driver:interp_ssp
    	getarrlen:variable "nt" undefined
    				Block: smooth_spectrum
    In: :_fsps:fsps.f90:driver:smooth_spectrum
    get_useparameters: no module sps_vars info used by smooth_spectrum
    In: :_fsps:fsps.f90:driver:smooth_spectrum
    get_useparameters: no module sps_utils info used by smooth_spectrum
    				Block: stellar_spectrum
    In: :_fsps:fsps.f90:driver:stellar_spectrum
    get_useparameters: no module sps_vars info used by stellar_spectrum
    In: :_fsps:fsps.f90:driver:stellar_spectrum
    get_useparameters: no module sps_utils info used by stellar_spectrum
    				Block: get_ssp_spec
    In: :_fsps:fsps.f90:driver:get_ssp_spec
    get_useparameters: no module sps_vars info used by get_ssp_spec
    In: :_fsps:fsps.f90:driver:get_ssp_spec
    get_useparameters: no module sps_utils info used by get_ssp_spec
    				Block: get_setup_vars
    In: :_fsps:fsps.f90:driver:get_setup_vars
    get_useparameters: no module sps_vars info used by get_setup_vars
    In: :_fsps:fsps.f90:driver:get_setup_vars
    get_useparameters: no module sps_utils info used by get_setup_vars
    				Block: get_nz
    In: :_fsps:fsps.f90:driver:get_nz
    get_useparameters: no module sps_vars info used by get_nz
    In: :_fsps:fsps.f90:driver:get_nz
    get_useparameters: no module sps_utils info used by get_nz
    				Block: get_zlegend
    In: :_fsps:fsps.f90:driver:get_zlegend
    get_useparameters: no module sps_vars info used by get_zlegend
    In: :_fsps:fsps.f90:driver:get_zlegend
    get_useparameters: no module sps_utils info used by get_zlegend
    				Block: get_timefull
    In: :_fsps:fsps.f90:driver:get_timefull
    get_useparameters: no module sps_vars info used by get_timefull
    In: :_fsps:fsps.f90:driver:get_timefull
    get_useparameters: no module sps_utils info used by get_timefull
    				Block: get_ntfull
    In: :_fsps:fsps.f90:driver:get_ntfull
    get_useparameters: no module sps_vars info used by get_ntfull
    In: :_fsps:fsps.f90:driver:get_ntfull
    get_useparameters: no module sps_utils info used by get_ntfull
    				Block: get_nspec
    In: :_fsps:fsps.f90:driver:get_nspec
    get_useparameters: no module sps_vars info used by get_nspec
    In: :_fsps:fsps.f90:driver:get_nspec
    get_useparameters: no module sps_utils info used by get_nspec
    				Block: get_nbands
    In: :_fsps:fsps.f90:driver:get_nbands
    get_useparameters: no module sps_vars info used by get_nbands
    In: :_fsps:fsps.f90:driver:get_nbands
    get_useparameters: no module sps_utils info used by get_nbands
    				Block: get_lambda
    In: :_fsps:fsps.f90:driver:get_lambda
    get_useparameters: no module sps_vars info used by get_lambda
    In: :_fsps:fsps.f90:driver:get_lambda
    get_useparameters: no module sps_utils info used by get_lambda
    				Block: get_isochrone_dimensions
    In: :_fsps:fsps.f90:driver:get_isochrone_dimensions
    get_useparameters: no module sps_vars info used by get_isochrone_dimensions
    In: :_fsps:fsps.f90:driver:get_isochrone_dimensions
    get_useparameters: no module sps_utils info used by get_isochrone_dimensions
    				Block: get_nmass_isochrone
    In: :_fsps:fsps.f90:driver:get_nmass_isochrone
    get_useparameters: no module sps_vars info used by get_nmass_isochrone
    In: :_fsps:fsps.f90:driver:get_nmass_isochrone
    get_useparameters: no module sps_utils info used by get_nmass_isochrone
    				Block: get_stats
    In: :_fsps:fsps.f90:driver:get_stats
    get_useparameters: no module sps_vars info used by get_stats
    In: :_fsps:fsps.f90:driver:get_stats
    get_useparameters: no module sps_utils info used by get_stats
    				Block: get_filter_data
    In: :_fsps:fsps.f90:driver:get_filter_data
    get_useparameters: no module sps_vars info used by get_filter_data
    In: :_fsps:fsps.f90:driver:get_filter_data
    get_useparameters: no module sps_utils info used by get_filter_data
    				Block: write_isoc
    In: :_fsps:fsps.f90:driver:write_isoc
    get_useparameters: no module sps_vars info used by write_isoc
    In: :_fsps:fsps.f90:driver:write_isoc
    get_useparameters: no module sps_utils info used by write_isoc
    Post-processing (stage 2)...
    	Block: _fsps
    		Block: unknown_interface
    			Block: driver
    				Block: setup
    				Block: set_ssp_params
    				Block: set_csp_params
    				Block: ssps
    				Block: ssp
    				Block: compute_zdep
    				Block: get_spec
    				Block: get_mags
    				Block: interp_ssp
    				Block: smooth_spectrum
    				Block: stellar_spectrum
    				Block: get_ssp_spec
    				Block: get_setup_vars
    				Block: get_nz
    				Block: get_zlegend
    				Block: get_timefull
    				Block: get_ntfull
    				Block: get_nspec
    				Block: get_nbands
    				Block: get_lambda
    				Block: get_isochrone_dimensions
    				Block: get_nmass_isochrone
    				Block: get_stats
    				Block: get_filter_data
    				Block: write_isoc
    Saving signatures to file "./fsps.pyf"
    Running f2py on ['/work/03565/stevans/maverick/software/fsps/src/sbf.o', '/work/03565/stevans/maverick/software/fsps/src/intsfwght.o', '/work/03565/stevans/maverick/software/fsps/src/mod_hb.o', '/work/03565/stevans/maverick/software/fsps/src/compsp.o', '/work/03565/stevans/maverick/software/fsps/src/getspec.o', '/work/03565/stevans/maverick/software/fsps/src/getindx.o', '/work/03565/stevans/maverick/software/fsps/src/tsum.o', '/work/03565/stevans/maverick/software/fsps/src/smoothspec.o', '/work/03565/stevans/maverick/software/fsps/src/vacairconv.o', '/work/03565/stevans/maverick/software/fsps/src/getmags.o', '/work/03565/stevans/maverick/software/fsps/src/ssp_gen.o', '/work/03565/stevans/maverick/software/fsps/src/ztinterp.o', '/work/03565/stevans/maverick/software/fsps/src/add_dust.o', '/work/03565/stevans/maverick/software/fsps/src/sps_setup.o', '/work/03565/stevans/maverick/software/fsps/src/pz_convol.o', '/work/03565/stevans/maverick/software/fsps/src/csp_gen.o', '/work/03565/stevans/maverick/software/fsps/src/imf_weight.o', '/work/03565/stevans/maverick/software/fsps/src/sfhinfo.o', '/work/03565/stevans/maverick/software/fsps/src/igm_absorb.o', '/work/03565/stevans/maverick/software/fsps/src/imf.o', '/work/03565/stevans/maverick/software/fsps/src/sfhlimit.o', '/work/03565/stevans/maverick/software/fsps/src/write_isochrone.o', '/work/03565/stevans/maverick/software/fsps/src/agn_dust.o', '/work/03565/stevans/maverick/software/fsps/src/add_bs.o', '/work/03565/stevans/maverick/software/fsps/src/sps_vars.o', '/work/03565/stevans/maverick/software/fsps/src/add_remnants.o', '/work/03565/stevans/maverick/software/fsps/src/sfhstat.o', '/work/03565/stevans/maverick/software/fsps/src/linterparr.o', '/work/03565/stevans/maverick/software/fsps/src/get_lumdist.o', '/work/03565/stevans/maverick/software/fsps/src/funcint.o', '/work/03565/stevans/maverick/software/fsps/src/sfh_weight.o', '/work/03565/stevans/maverick/software/fsps/src/setup_tabular_sfh.o', '/work/03565/stevans/maverick/software/fsps/src/spec_bin.o', '/work/03565/stevans/maverick/software/fsps/src/sps_utils.o', '/work/03565/stevans/maverick/software/fsps/src/get_tuniv.o', '/work/03565/stevans/maverick/software/fsps/src/mod_gb.o', '/work/03565/stevans/maverick/software/fsps/src/locate.o', '/work/03565/stevans/maverick/software/fsps/src/linterp.o', '/work/03565/stevans/maverick/software/fsps/src/add_nebular.o', '/work/03565/stevans/maverick/software/fsps/src/attn_curve.o', '/work/03565/stevans/maverick/software/fsps/src/add_agb_dust.o', 'fsps.f90', 'fsps.pyf'] with flags ['-c', '-I/work/03565/stevans/maverick/software/fsps/src', '--f90flags=-cpp', '--f90flags=-fPIC']
    running build
    running config_cc
    unifing config_cc, config, build_clib, build_ext, build commands --compiler options
    running config_fc
    unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
    running build_src
    build_src
    building extension "_fsps" sources
    creating /tmp/tmprz50jtq0/src.linux-x86_64-3.6
    f2py options: []
    f2py: fsps.pyf
    Reading fortran codes...
    	Reading file 'fsps.pyf' (format:free)
    Post-processing...
    	Block: _fsps
    			Block: driver
    In: fsps.pyf:_fsps:unknown_interface:driver
    get_useparameters: no module sps_vars info used by driver
    In: fsps.pyf:_fsps:unknown_interface:driver
    get_useparameters: no module sps_utils info used by driver
    				Block: setup
    In: fsps.pyf:_fsps:unknown_interface:driver:setup
    get_useparameters: no module sps_vars info used by setup
    In: fsps.pyf:_fsps:unknown_interface:driver:setup
    get_useparameters: no module sps_utils info used by setup
    				Block: set_ssp_params
    In: fsps.pyf:_fsps:unknown_interface:driver:set_ssp_params
    get_useparameters: no module sps_vars info used by set_ssp_params
    In: fsps.pyf:_fsps:unknown_interface:driver:set_ssp_params
    get_useparameters: no module sps_utils info used by set_ssp_params
    				Block: set_csp_params
    In: fsps.pyf:_fsps:unknown_interface:driver:set_csp_params
    get_useparameters: no module sps_vars info used by set_csp_params
    In: fsps.pyf:_fsps:unknown_interface:driver:set_csp_params
    get_useparameters: no module sps_utils info used by set_csp_params
    				Block: ssps
    In: fsps.pyf:_fsps:unknown_interface:driver:ssps
    get_useparameters: no module sps_vars info used by ssps
    In: fsps.pyf:_fsps:unknown_interface:driver:ssps
    get_useparameters: no module sps_utils info used by ssps
    				Block: ssp
    In: fsps.pyf:_fsps:unknown_interface:driver:ssp
    get_useparameters: no module sps_vars info used by ssp
    In: fsps.pyf:_fsps:unknown_interface:driver:ssp
    get_useparameters: no module sps_utils info used by ssp
    				Block: compute_zdep
    In: fsps.pyf:_fsps:unknown_interface:driver:compute_zdep
    get_useparameters: no module sps_vars info used by compute_zdep
    In: fsps.pyf:_fsps:unknown_interface:driver:compute_zdep
    get_useparameters: no module sps_utils info used by compute_zdep
    				Block: get_spec
    In: fsps.pyf:_fsps:unknown_interface:driver:get_spec
    get_useparameters: no module sps_vars info used by get_spec
    In: fsps.pyf:_fsps:unknown_interface:driver:get_spec
    get_useparameters: no module sps_utils info used by get_spec
    				Block: get_mags
    In: fsps.pyf:_fsps:unknown_interface:driver:get_mags
    get_useparameters: no module sps_vars info used by get_mags
    In: fsps.pyf:_fsps:unknown_interface:driver:get_mags
    get_useparameters: no module sps_utils info used by get_mags
    				Block: interp_ssp
    In: fsps.pyf:_fsps:unknown_interface:driver:interp_ssp
    get_useparameters: no module sps_vars info used by interp_ssp
    In: fsps.pyf:_fsps:unknown_interface:driver:interp_ssp
    get_useparameters: no module sps_utils info used by interp_ssp
    				Block: smooth_spectrum
    In: fsps.pyf:_fsps:unknown_interface:driver:smooth_spectrum
    get_useparameters: no module sps_vars info used by smooth_spectrum
    In: fsps.pyf:_fsps:unknown_interface:driver:smooth_spectrum
    get_useparameters: no module sps_utils info used by smooth_spectrum
    				Block: stellar_spectrum
    In: fsps.pyf:_fsps:unknown_interface:driver:stellar_spectrum
    get_useparameters: no module sps_vars info used by stellar_spectrum
    In: fsps.pyf:_fsps:unknown_interface:driver:stellar_spectrum
    get_useparameters: no module sps_utils info used by stellar_spectrum
    				Block: get_ssp_spec
    In: fsps.pyf:_fsps:unknown_interface:driver:get_ssp_spec
    get_useparameters: no module sps_vars info used by get_ssp_spec
    In: fsps.pyf:_fsps:unknown_interface:driver:get_ssp_spec
    get_useparameters: no module sps_utils info used by get_ssp_spec
    				Block: get_setup_vars
    In: fsps.pyf:_fsps:unknown_interface:driver:get_setup_vars
    get_useparameters: no module sps_vars info used by get_setup_vars
    In: fsps.pyf:_fsps:unknown_interface:driver:get_setup_vars
    get_useparameters: no module sps_utils info used by get_setup_vars
    				Block: get_nz
    In: fsps.pyf:_fsps:unknown_interface:driver:get_nz
    get_useparameters: no module sps_vars info used by get_nz
    In: fsps.pyf:_fsps:unknown_interface:driver:get_nz
    get_useparameters: no module sps_utils info used by get_nz
    				Block: get_zlegend
    In: fsps.pyf:_fsps:unknown_interface:driver:get_zlegend
    get_useparameters: no module sps_vars info used by get_zlegend
    In: fsps.pyf:_fsps:unknown_interface:driver:get_zlegend
    get_useparameters: no module sps_utils info used by get_zlegend
    				Block: get_timefull
    In: fsps.pyf:_fsps:unknown_interface:driver:get_timefull
    get_useparameters: no module sps_vars info used by get_timefull
    In: fsps.pyf:_fsps:unknown_interface:driver:get_timefull
    get_useparameters: no module sps_utils info used by get_timefull
    				Block: get_ntfull
    In: fsps.pyf:_fsps:unknown_interface:driver:get_ntfull
    get_useparameters: no module sps_vars info used by get_ntfull
    In: fsps.pyf:_fsps:unknown_interface:driver:get_ntfull
    get_useparameters: no module sps_utils info used by get_ntfull
    				Block: get_nspec
    In: fsps.pyf:_fsps:unknown_interface:driver:get_nspec
    get_useparameters: no module sps_vars info used by get_nspec
    In: fsps.pyf:_fsps:unknown_interface:driver:get_nspec
    get_useparameters: no module sps_utils info used by get_nspec
    				Block: get_nbands
    In: fsps.pyf:_fsps:unknown_interface:driver:get_nbands
    get_useparameters: no module sps_vars info used by get_nbands
    In: fsps.pyf:_fsps:unknown_interface:driver:get_nbands
    get_useparameters: no module sps_utils info used by get_nbands
    				Block: get_lambda
    In: fsps.pyf:_fsps:unknown_interface:driver:get_lambda
    get_useparameters: no module sps_vars info used by get_lambda
    In: fsps.pyf:_fsps:unknown_interface:driver:get_lambda
    get_useparameters: no module sps_utils info used by get_lambda
    				Block: get_isochrone_dimensions
    In: fsps.pyf:_fsps:unknown_interface:driver:get_isochrone_dimensions
    get_useparameters: no module sps_vars info used by get_isochrone_dimensions
    In: fsps.pyf:_fsps:unknown_interface:driver:get_isochrone_dimensions
    get_useparameters: no module sps_utils info used by get_isochrone_dimensions
    				Block: get_nmass_isochrone
    In: fsps.pyf:_fsps:unknown_interface:driver:get_nmass_isochrone
    get_useparameters: no module sps_vars info used by get_nmass_isochrone
    In: fsps.pyf:_fsps:unknown_interface:driver:get_nmass_isochrone
    get_useparameters: no module sps_utils info used by get_nmass_isochrone
    				Block: get_stats
    In: fsps.pyf:_fsps:unknown_interface:driver:get_stats
    get_useparameters: no module sps_vars info used by get_stats
    In: fsps.pyf:_fsps:unknown_interface:driver:get_stats
    get_useparameters: no module sps_utils info used by get_stats
    				Block: get_filter_data
    In: fsps.pyf:_fsps:unknown_interface:driver:get_filter_data
    get_useparameters: no module sps_vars info used by get_filter_data
    In: fsps.pyf:_fsps:unknown_interface:driver:get_filter_data
    get_useparameters: no module sps_utils info used by get_filter_data
    				Block: write_isoc
    In: fsps.pyf:_fsps:unknown_interface:driver:write_isoc
    get_useparameters: no module sps_vars info used by write_isoc
    In: fsps.pyf:_fsps:unknown_interface:driver:write_isoc
    get_useparameters: no module sps_utils info used by write_isoc
    Post-processing (stage 2)...
    	Block: _fsps
    		Block: unknown_interface
    			Block: driver
    				Block: setup
    				Block: set_ssp_params
    				Block: set_csp_params
    				Block: ssps
    				Block: ssp
    				Block: compute_zdep
    				Block: get_spec
    				Block: get_mags
    				Block: interp_ssp
    				Block: smooth_spectrum
    				Block: stellar_spectrum
    				Block: get_ssp_spec
    				Block: get_setup_vars
    				Block: get_nz
    				Block: get_zlegend
    				Block: get_timefull
    				Block: get_ntfull
    				Block: get_nspec
    				Block: get_nbands
    				Block: get_lambda
    				Block: get_isochrone_dimensions
    				Block: get_nmass_isochrone
    				Block: get_stats
    				Block: get_filter_data
    				Block: write_isoc
    Building modules...
    	Building module "_fsps"...
    		Constructing F90 module support for "driver"...
    		  Variables: is_setup
    			Constructing wrapper function "driver.setup"...
    			  setup(compute_vega_mags0)
    			Constructing wrapper function "driver.set_ssp_params"...
    			  set_ssp_params(imf_type0,imf1,imf2,imf3,vdmc,mdave,dell,delt,sbss,fbhb,pagb,add_stellar_remnants0,tpagb_norm_type0,add_agb_dust_model0,agb_dust,redgb,masscut,fcstar,evtype)
    			Constructing wrapper function "driver.set_csp_params"...
    			  set_csp_params(smooth_velocity0,vactoair_flag0,redshift_colors0,dust_type0,add_dust_emission0,add_neb_emission0,add_neb_continuum0,cloudy_dust0,add_igm_absorption0,zmet,sfh,wgp1,wgp2,wgp3,tau,const_bn,tage,fburst,tburst,dust1,dust2,logzsol,zred,pmetals,dust_clumps,frac_nodust,dust_index,dust_tesc,frac_obrun,uvb,mwr,dust1_index,sf_start,sf_trunc,sf_slope,duste_gamma,duste_umin,duste_qpah,sigma_smooth,min_wave_smooth,max_wave_smooth,gas_logu,gas_logz,igm_factor,fagn,agn_tau)
    			Constructing wrapper function "driver.ssps"...
    			  ssps()
    			Constructing wrapper function "driver.ssp"...
    			  ssp(zi)
    			Constructing wrapper function "driver.compute_zdep"...
    			  compute_zdep(ns,n_age,ztype)
    			Constructing wrapper function "driver.get_spec"...
    			  spec_out = get_spec(ns,n_age)
    			Constructing wrapper function "driver.get_mags"...
    			  mags = get_mags(ns,n_age,z_red,mc,[n_bands])
    			Constructing wrapper function "driver.interp_ssp"...
    			  interp_ssp(zpos,tpos,spec,mass,lbol,[ns])
    			Constructing wrapper function "driver.smooth_spectrum"...
    			  smooth_spectrum(wave,spec,sigma_broad,minw,maxw,[ns])
    			Constructing wrapper function "driver.stellar_spectrum"...
    			  stellar_spectrum(mact,logt,lbol,logg,phase,ffco,lmdot,wght,spec_out,[ns])
    			Constructing wrapper function "driver.get_ssp_spec"...
    			  get_ssp_spec(ssp_spec_out,ssp_mass_out,ssp_lbol_out,[ns,n_age,n_z])
    			Constructing wrapper function "driver.get_setup_vars"...
    			  cvms = get_setup_vars()
    			Constructing wrapper function "driver.get_nz"...
    			  n_z = get_nz()
    			Constructing wrapper function "driver.get_zlegend"...
    			  z_legend = get_zlegend(n_z)
    			Constructing wrapper function "driver.get_timefull"...
    			  timefull = get_timefull(n_age)
    			Constructing wrapper function "driver.get_ntfull"...
    			  n_age = get_ntfull()
    			Constructing wrapper function "driver.get_nspec"...
    			  ns = get_nspec()
    			Constructing wrapper function "driver.get_nbands"...
    			  nb = get_nbands()
    			Constructing wrapper function "driver.get_lambda"...
    			  lambda = get_lambda(ns)
    			Constructing wrapper function "driver.get_isochrone_dimensions"...
    			  n_age,n_mass = get_isochrone_dimensions()
    			Constructing wrapper function "driver.get_nmass_isochrone"...
    			  nmass = get_nmass_isochrone(zz,tt)
    			Constructing wrapper function "driver.get_stats"...
    			  age,mass_csp,lbol_csp,sfr,mdust = get_stats(n_age)
    			Constructing wrapper function "driver.get_filter_data"...
    			  wave_eff,mag_vega,mag_sun = get_filter_data(nb)
    			Constructing wrapper function "driver.write_isoc"...
    			  write_isoc(outfile)
    	Wrote C/API module "_fsps" to file "/tmp/tmprz50jtq0/src.linux-x86_64-3.6/_fspsmodule.c"
    	Fortran 90 wrappers are saved to "/tmp/tmprz50jtq0/src.linux-x86_64-3.6/_fsps-f2pywrappers2.f90"
      adding '/tmp/tmprz50jtq0/src.linux-x86_64-3.6/fortranobject.c' to sources.
      adding '/tmp/tmprz50jtq0/src.linux-x86_64-3.6' to include_dirs.
    copying /work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/f2py/src/fortranobject.c -> /tmp/tmprz50jtq0/src.linux-x86_64-3.6
    copying /work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/f2py/src/fortranobject.h -> /tmp/tmprz50jtq0/src.linux-x86_64-3.6
      adding '/tmp/tmprz50jtq0/src.linux-x86_64-3.6/_fsps-f2pywrappers2.f90' to sources.
    build_src: building npy-pkg config files
    running build_ext
    customize UnixCCompiler
    customize UnixCCompiler using build_ext
    customize Gnu95FCompiler
    Found executable /opt/apps/gcc/4.9.1/bin/gfortran
    customize Gnu95FCompiler
    customize Gnu95FCompiler using build_ext
    building '_fsps' extension
    compiling C sources
    C compiler: gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
    
    creating /tmp/tmprz50jtq0/tmp
    creating /tmp/tmprz50jtq0/tmp/tmprz50jtq0
    creating /tmp/tmprz50jtq0/tmp/tmprz50jtq0/src.linux-x86_64-3.6
    compile options: '-I/work/03565/stevans/maverick/software/fsps/src -I/tmp/tmprz50jtq0/src.linux-x86_64-3.6 -I/work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include -I/work/03565/stevans/maverick/software/anaconda3/include/python3.6m -c'
    gcc: /tmp/tmprz50jtq0/src.linux-x86_64-3.6/_fspsmodule.c
    In file included from /work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0,
                     from /work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                     from /work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                     from /tmp/tmprz50jtq0/src.linux-x86_64-3.6/fortranobject.h:13,
                     from /tmp/tmprz50jtq0/src.linux-x86_64-3.6/_fspsmodule.c:19:
    /work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
     #warning "Using deprecated NumPy API, disable it by " \
      ^
    /tmp/tmprz50jtq0/src.linux-x86_64-3.6/_fspsmodule.c:145:12: warning: ‘f2py_size’ defined but not used [-Wunused-function]
     static int f2py_size(PyArrayObject* var, ...)
                ^
    gcc: /tmp/tmprz50jtq0/src.linux-x86_64-3.6/fortranobject.c
    In file included from /work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0,
                     from /work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                     from /work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                     from /tmp/tmprz50jtq0/src.linux-x86_64-3.6/fortranobject.h:13,
                     from /tmp/tmprz50jtq0/src.linux-x86_64-3.6/fortranobject.c:2:
    /work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
     #warning "Using deprecated NumPy API, disable it by " \
      ^
    /tmp/tmprz50jtq0/src.linux-x86_64-3.6/fortranobject.c: In function ‘format_def’:
    /tmp/tmprz50jtq0/src.linux-x86_64-3.6/fortranobject.c:139:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (size < sizeof(notalloc)) {
                      ^
    compiling Fortran 90 module sources
    Fortran f77 compiler: /opt/apps/gcc/4.9.1/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops
    Fortran f90 compiler: /opt/apps/gcc/4.9.1/bin/gfortran -fPIC -fPIC -O3 -funroll-loops
    Fortran fix compiler: /opt/apps/gcc/4.9.1/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -fPIC -O3 -funroll-loops
    compile options: '-I/work/03565/stevans/maverick/software/fsps/src -I/tmp/tmprz50jtq0/src.linux-x86_64-3.6 -I/work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include -I/work/03565/stevans/maverick/software/anaconda3/include/python3.6m -c'
    extra options: '-J/tmp/tmprz50jtq0/ -I/tmp/tmprz50jtq0/'
    gfortran:f90: fsps.f90
    compiling Fortran sources
    Fortran f77 compiler: /opt/apps/gcc/4.9.1/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops
    Fortran f90 compiler: /opt/apps/gcc/4.9.1/bin/gfortran -fPIC -fPIC -O3 -funroll-loops
    Fortran fix compiler: /opt/apps/gcc/4.9.1/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -fPIC -O3 -funroll-loops
    compile options: '-I/work/03565/stevans/maverick/software/fsps/src -I/tmp/tmprz50jtq0/src.linux-x86_64-3.6 -I/work/03565/stevans/maverick/software/anaconda3/lib/python3.6/site-packages/numpy/core/include -I/work/03565/stevans/maverick/software/anaconda3/include/python3.6m -c'
    extra options: '-J/tmp/tmprz50jtq0/ -I/tmp/tmprz50jtq0/'
    gfortran:f90: /tmp/tmprz50jtq0/src.linux-x86_64-3.6/_fsps-f2pywrappers2.f90
    /opt/apps/gcc/4.9.1/bin/gfortran -Wall -g -Wall -g -shared /tmp/tmprz50jtq0/tmp/tmprz50jtq0/src.linux-x86_64-3.6/_fspsmodule.o /tmp/tmprz50jtq0/tmp/tmprz50jtq0/src.linux-x86_64-3.6/fortranobject.o /tmp/tmprz50jtq0/fsps.o /tmp/tmprz50jtq0/tmp/tmprz50jtq0/src.linux-x86_64-3.6/_fsps-f2pywrappers2.o /work/03565/stevans/maverick/software/fsps/src/sbf.o /work/03565/stevans/maverick/software/fsps/src/intsfwght.o /work/03565/stevans/maverick/software/fsps/src/mod_hb.o /work/03565/stevans/maverick/software/fsps/src/compsp.o /work/03565/stevans/maverick/software/fsps/src/getspec.o /work/03565/stevans/maverick/software/fsps/src/getindx.o /work/03565/stevans/maverick/software/fsps/src/tsum.o /work/03565/stevans/maverick/software/fsps/src/smoothspec.o /work/03565/stevans/maverick/software/fsps/src/vacairconv.o /work/03565/stevans/maverick/software/fsps/src/getmags.o /work/03565/stevans/maverick/software/fsps/src/ssp_gen.o /work/03565/stevans/maverick/software/fsps/src/ztinterp.o /work/03565/stevans/maverick/software/fsps/src/add_dust.o /work/03565/stevans/maverick/software/fsps/src/sps_setup.o /work/03565/stevans/maverick/software/fsps/src/pz_convol.o /work/03565/stevans/maverick/software/fsps/src/csp_gen.o /work/03565/stevans/maverick/software/fsps/src/imf_weight.o /work/03565/stevans/maverick/software/fsps/src/sfhinfo.o /work/03565/stevans/maverick/software/fsps/src/igm_absorb.o /work/03565/stevans/maverick/software/fsps/src/imf.o /work/03565/stevans/maverick/software/fsps/src/sfhlimit.o /work/03565/stevans/maverick/software/fsps/src/write_isochrone.o /work/03565/stevans/maverick/software/fsps/src/agn_dust.o /work/03565/stevans/maverick/software/fsps/src/add_bs.o /work/03565/stevans/maverick/software/fsps/src/sps_vars.o /work/03565/stevans/maverick/software/fsps/src/add_remnants.o /work/03565/stevans/maverick/software/fsps/src/sfhstat.o /work/03565/stevans/maverick/software/fsps/src/linterparr.o /work/03565/stevans/maverick/software/fsps/src/get_lumdist.o /work/03565/stevans/maverick/software/fsps/src/funcint.o /work/03565/stevans/maverick/software/fsps/src/sfh_weight.o /work/03565/stevans/maverick/software/fsps/src/setup_tabular_sfh.o /work/03565/stevans/maverick/software/fsps/src/spec_bin.o /work/03565/stevans/maverick/software/fsps/src/sps_utils.o /work/03565/stevans/maverick/software/fsps/src/get_tuniv.o /work/03565/stevans/maverick/software/fsps/src/mod_gb.o /work/03565/stevans/maverick/software/fsps/src/locate.o /work/03565/stevans/maverick/software/fsps/src/linterp.o /work/03565/stevans/maverick/software/fsps/src/add_nebular.o /work/03565/stevans/maverick/software/fsps/src/attn_curve.o /work/03565/stevans/maverick/software/fsps/src/add_agb_dust.o -L/work/03565/stevans/maverick/software/anaconda3/lib -lpython3.6m -lgfortran -o ./_fsps.cpython-36m-x86_64-linux-gnu.so
    /usr/bin/ld: /work/03565/stevans/maverick/software/fsps/src/sbf.o: relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
    /work/03565/stevans/maverick/software/fsps/src/sbf.o: could not read symbols: Bad value
    collect2: error: ld returned 1 exit status
    /usr/bin/ld: /work/03565/stevans/maverick/software/fsps/src/sbf.o: relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
    /work/03565/stevans/maverick/software/fsps/src/sbf.o: could not read symbols: Bad value
    collect2: error: ld returned 1 exit status
    error: Command "/opt/apps/gcc/4.9.1/bin/gfortran -Wall -g -Wall -g -shared /tmp/tmprz50jtq0/tmp/tmprz50jtq0/src.linux-x86_64-3.6/_fspsmodule.o /tmp/tmprz50jtq0/tmp/tmprz50jtq0/src.linux-x86_64-3.6/fortranobject.o /tmp/tmprz50jtq0/fsps.o /tmp/tmprz50jtq0/tmp/tmprz50jtq0/src.linux-x86_64-3.6/_fsps-f2pywrappers2.o /work/03565/stevans/maverick/software/fsps/src/sbf.o /work/03565/stevans/maverick/software/fsps/src/intsfwght.o /work/03565/stevans/maverick/software/fsps/src/mod_hb.o /work/03565/stevans/maverick/software/fsps/src/compsp.o /work/03565/stevans/maverick/software/fsps/src/getspec.o /work/03565/stevans/maverick/software/fsps/src/getindx.o /work/03565/stevans/maverick/software/fsps/src/tsum.o /work/03565/stevans/maverick/software/fsps/src/smoothspec.o /work/03565/stevans/maverick/software/fsps/src/vacairconv.o /work/03565/stevans/maverick/software/fsps/src/getmags.o /work/03565/stevans/maverick/software/fsps/src/ssp_gen.o /work/03565/stevans/maverick/software/fsps/src/ztinterp.o /work/03565/stevans/maverick/software/fsps/src/add_dust.o /work/03565/stevans/maverick/software/fsps/src/sps_setup.o /work/03565/stevans/maverick/software/fsps/src/pz_convol.o /work/03565/stevans/maverick/software/fsps/src/csp_gen.o /work/03565/stevans/maverick/software/fsps/src/imf_weight.o /work/03565/stevans/maverick/software/fsps/src/sfhinfo.o /work/03565/stevans/maverick/software/fsps/src/igm_absorb.o /work/03565/stevans/maverick/software/fsps/src/imf.o /work/03565/stevans/maverick/software/fsps/src/sfhlimit.o /work/03565/stevans/maverick/software/fsps/src/write_isochrone.o /work/03565/stevans/maverick/software/fsps/src/agn_dust.o /work/03565/stevans/maverick/software/fsps/src/add_bs.o /work/03565/stevans/maverick/software/fsps/src/sps_vars.o /work/03565/stevans/maverick/software/fsps/src/add_remnants.o /work/03565/stevans/maverick/software/fsps/src/sfhstat.o /work/03565/stevans/maverick/software/fsps/src/linterparr.o /work/03565/stevans/maverick/software/fsps/src/get_lumdist.o /work/03565/stevans/maverick/software/fsps/src/funcint.o /work/03565/stevans/maverick/software/fsps/src/sfh_weight.o /work/03565/stevans/maverick/software/fsps/src/setup_tabular_sfh.o /work/03565/stevans/maverick/software/fsps/src/spec_bin.o /work/03565/stevans/maverick/software/fsps/src/sps_utils.o /work/03565/stevans/maverick/software/fsps/src/get_tuniv.o /work/03565/stevans/maverick/software/fsps/src/mod_gb.o /work/03565/stevans/maverick/software/fsps/src/locate.o /work/03565/stevans/maverick/software/fsps/src/linterp.o /work/03565/stevans/maverick/software/fsps/src/add_nebular.o /work/03565/stevans/maverick/software/fsps/src/attn_curve.o /work/03565/stevans/maverick/software/fsps/src/add_agb_dust.o -L/work/03565/stevans/maverick/software/anaconda3/lib -lpython3.6m -lgfortran -o ./_fsps.cpython-36m-x86_64-linux-gnu.so" failed with exit status 1
    
    ----------------------------------------
Command "/work/03565/stevans/maverick/software/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ck_wzji3/fsps/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-51n239l7-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ck_wzji3/fsps/

I can't tell if this is a problem with python-fsps or pip.

Not all parameters changes require SSPs to be recomputed

I'd suggest changing the ssps and compute functions in fsps.f90 to make it clear that not all parameter changes will cause the SSPs to change. You can see how I accomplished this with the function signatures in my original fsps.f90:

setup_all_ssp(imf, imf1, imf2, imf3, vdmc, mdave, dell, delt, sbss, fbhb, pagb)
subroutine comp_sp(dust, zmet, sfh, tau, const, &
        fburst, tburst, dust_tesc, dust1, dust2, dust_clumps, &
        frac_no_dust, dust_index, mwr, wgp1, wgp2, wgp3, &
        duste_gamma, duste_umin, duste_qpah, tage)

This way a person can quickly call comp_sp repeatedly without regenerating SSPs if IMF and isochrone modifications aren't being made. An alternative would be giving python-fsps some smarts in knowing if a new set of parameters will require the SSPs to be regenerated, but I haven't looked at that code yet.

The bottom line is that the code structure needs to give the user confidence in knowing when and when not to regenerate SSPs.

Does't work with new FSPS on Github

After updating to the new version of FSPS on Github, it seems that the installation of python-fsps will fail, since there is no SVN version now.

# Check the SVN revision number.
ACCEPTED_FSPS_REVISIONS = [158, 160, 166, 168, 170, 185]
cmd = ["svnversion", ev]
stat, out = run_command(" ".join(cmd))
fsps_vers = int(re.match("^([0-9])+", out[0]).group(0))

If simply comments this part out, and give accepted = True, the installation will run through, and basic functions seem work fine. But I am not sure this should be the right solution...

Thanks!

Add custom filters

Hi

I am currently working on images from Hyper-Suprime Camera survey, and it would be great if the HSC filters can be added to FSPS. I have the un-normalized transimission curve of these filters, and just want to make sure that my assumption about how to do this is correct.

  1. Add the transmission curve data to $FSPS_DIR/data/allfilters.dat like this:

HSC-g filter

  1. 0

  2. 0.03125

  3. 0.166326530612245

  4. 0.458

  5. 0.764705882352941

  6. Add the pivot wavelength of the filter to $FSPS_DIR/data/filter_lambda_eff.dat

  7. Add the name of the filter to $FSPS_DIR/data/FILTER_LIST

  8. Add the absolute magnitude of sun in the newly added filter to $FSPS_DIR/data/magsun.dat

    (Related to this, can I calculated this value using the solar SED in $FSPS_DIR/SPECTRA/SUN_STScI.SED?)

  9. Modify the nbands parameter in the $FSPS_DIR/src/sps_vars.f90 routine

  10. Add the filter key to https://github.com/dfm/python-fsps/blob/master/fsps/data/filter_keys.txt

Please let me know if I missed anything. And, do you think it is worth adding a function to make this step easier? Thanks!

Metallicity out of range error

Hi,
I just installed FSPS v3.0 and python fsps v0.2.2 yesterday. I went to try the example here:
http://dan.iel.fm/python-fsps/current/stellarpop_api/#example
but when I instatiate the SSP following the example I get the following error:
AssertionError: zmet=20 out of range [1, 12]
This seems odd since my understanding is the Padova isochrones are used by default and I have checked that the Padova zlegend.dat file contains 22 metallicities (so zmet=20 as in the example should be fine). Any idea what is going wrong? Thanks!

Multiple StellarPopulation instances

Because parameter state and dirtiness is specific to each instance, but the computed model is held by the module level driver object, having multiple StellarPopulation instances can cause a model to not be recomputed even though it should be (example code below) This might also cause problems with shared memory multiprocessing.

Some documentation advising only a single sps instance per program might be a good idea.

from numpy.testing import assert_allclose
import fsps
sps = fsps.StellarPopulation(zcontinuous=1, vactoair_flag=False)
pop = fsps.StellarPopulation(zcontinuous=1, vactoair_flag=False)
w1, s1 = sps.get_spectrum(tage=10.0)
w, s = pop.get_spectrum(tage=1.0)
w2, s2 = sps.get_spectrum(tage=10.0)
assert_allclose(s, s2) # this should not pass, but does
assert_allclose(s1, s2) # this should not fail, but does

stellar_mass array

I need to find galaxy stellar mass for a set of stellar formation parameters. Could you please clarify the legend for stellar_mass? All the permutations I've tried return an array of length 107. See example below.

>>> sp = fsps.StellarPopulation(compute_vega_mags=False, fburst=1, dust2=0,
...                             tburst=2.1, sfh=0, add_stellar_remnants=1)
>>> mass = sp.stellar_mass
>>> len(mass)
107
>>> mass
array([ 0.98616134,  0.9769826 ,  0.98562886,  0.9711376 ,  0.97735713,
        0.98599344,  0.97116799,  0.97546839,  0.98408086,  0.985447  ,
        0.97430706,  0.9810679 ,  0.98456513,  0.98291342,  0.98144469,
        0.98289142,  0.98496373,  0.98510727,  0.984505  ,  0.98129545,
        0.98287753,  0.98177916,  0.98539177,  0.9852902 ,  0.98632074,
        0.98435871,  0.98143104,  0.98484755,  0.98182749,  0.98662982,
        0.99517756,  0.99452189,  0.98956458,  0.98525965,  0.97990264,
        0.9752592 ,  0.97128988,  0.9578926 ,  0.94327441,  0.9315638 ,
        0.92393593,  0.91528826,  0.90535964,  0.89380085,  0.88523836,
        0.8777081 ,  0.87052765,  0.86343586,  0.85690613,  0.85141056,
        0.84669751,  0.84096454,  0.83359988,  0.82624121,  0.81992397,
        0.81296946,  0.80682805,  0.79950558,  0.79314997,  0.78615958,
        0.78023559,  0.7735735 ,  0.76666815,  0.76039073,  0.75389661,
        0.74778219,  0.7415822 ,  0.73524118,  0.72895989,  0.72247523,
        0.71616977,  0.71041594,  0.70453481,  0.69886719,  0.69338396,
        0.68809376,  0.68287829,  0.67774895,  0.67282461,  0.66799453,
        0.6632059 ,  0.65811364,  0.65292194,  0.64751641,  0.64188525,
        0.63671824,  0.63194398,  0.62742008,  0.6229796 ,  0.61876836,
        0.61474785,  0.61079031,  0.60699565,  0.60330605,  0.59971137,
        0.59623209,  0.59291197,  0.58967825,  0.58659533,  0.58366297,
        0.58079528,  0.57811899,  0.57556869,  0.57315952,  0.57090274,
        0.56879837,  0.56686542])

User SFHs

Using the sfh = 2 option (user defined SFH in data/sfh.dat) yields a spectrum filled with zeros. I think this is due to compsp expecting SSPs at all metallicities for sfh = 2 or sfh = 3 while compute in fsps.f90 only passes a single metallicity.

tiny modification needed in Example code to get the output of libraries (SP)

Thank you for this awesome resource.

On my computer I had to type
">>>sp.libraries"
without the final parenthesis
to get the output of libraries used

(in the following example:
http://dan.iel.fm/python-fsps/current/stellarpop_api/)

My computer:
laptop , OSX El Capitain, 10.11.6, I use Jupyter Notebook via Canopy, Python 2.7, FSPS 3.0

Otherwise, with parenthesis I get the following error:

TypeError: 'tuple' object is not callable

shutil copy error from setup.py

The installation instructions seem to be outdated; running python setup.py build_fsps no longer works. After some playing around, I figured out that I could successfully install by running python setup.py develop with the addition of a try...except clause at line 60 in setup.py:

try:
    shutil.copyfile(infn, outfn)
except shutil.Error:
    pass

Without this modification, I was getting this traceback: shutil.Error: fsps/_fsps.soand/usr/local/fsps/python-fsps/fsps/_fsps.so are the same file (My SPS_HOME is /usr/local/fsps/).

dimensions for ssp_gen

This isn't necessarily an issue, and you might already be aware of it - this version of python-fsps does not work with the most current version of FSPS.

Previous versions of FSPS had the input for ssp_gen with shape (nz, ntfull, nspec), but the current version of FSPS has input shape (nspec, ntfull, nz).

This requires a change at line 146 and at 162 in fsps.f90 to account for the rearranging of dimensions:

!call ssp_gen(pset, mass_ssp_zz(zi,:),lbol_ssp_zz(zi,:),&
! spec_ssp_zz(zi,:,:))
call ssp_gen(pset, mass_ssp_zz(:, zi),lbol_ssp_zz(:,zi),&
spec_ssp_zz(:,:,zi))

Formalize checking compatibility of FSPS rev with python-fsps version

It would be cool if the python-fsps code could check the SVN repo revision at $SPS_HOME and throw an exception if the revision is not in a hard-coded set of acceptable revisions for that commit of python-fsps.

I'd imagine putting something like ACCEPTED_FSPS_REVISIONS = [135] in __init__.py; each person who commits to python-fsps would be responsible for updating that.

Undefined mags, masses when tage=tburst

I don't have a great way to solve this issue, but I just noticed this behavior when playing with adding bursts on top of continuous SFH models:

>>> import fsps
>>> sp = fsps.StellarPopulation(sfh=4, tau=2.5, sf_start=1.2, zmet=10, tburst=4, fburst=0.5)
>>> sdss_bands = fsps.find_filter('sdss')
>>> sp.get_mags(bands=sdss_bands, tage=3.99)
 COMPSP WARNING: burst time > age of system.... the burst component will NOT be added.
 COMPSP WARNING: sf_trunc<sf_start.... sf_trunc will be ignored.
array([ 4.64789801,  3.95230007,  3.75145292,  3.8570381 ,  3.59583231])
>>> sp.stellar_mass
0.69857652696034678
>>> sp.get_mags(bands=sdss_bands, tage=4.00)
 COMPSP WARNING: sf_trunc<sf_start.... sf_trunc will be ignored.
array([ nan,  nan,  nan,  nan,  nan])
>>> sp.stellar_mass
nan
>>> sp.get_mags(bands=sdss_bands, tage=4, redshift=0.1)
array([ 99.,  99.,  99.,  99.,  99.])
>>> sp.get_mags(bands=sdss_bands, tage=4.01)
 COMPSP WARNING: sf_trunc<sf_start.... sf_trunc will be ignored.
array([ 2.20035256,  1.9199033 ,  1.47350037,  1.89268185,  0.88935847])
>>> sp.stellar_mass
0.80565726316964659

Mags and masses are well-defined just before and just after tburst but when tage=tburst the mags and masses become nan (though if redshift is set to a nonzero value in get_mags(tage=tburst,...) the mag array returns all 99. instead of all nan). This could be a problem for people who are evaluating CSP mags at discrete time intervals and are interpolating between them for their analyses.

Since bursts are instantaneous, there will necessarily be discontinuities in the output mags and masses when they occur, but perhaps there is a hacky workaround to at least avoid nan and 99. values which could cause problems. E.g., if the user asks for values at tage=tburst, one possible solution is to insert an if-statement to check for this and return values that are actually for tage=tburst-epsilon (where epsilon is some very small value like 1e-6 or something?) where mags and stellar masses are still defined. There are probably better solutions...What do you think?
Thanks!

small fluxes due to KC13 dust curve

The KC13 curve has a huge turn up towards the UV, which results in very small fluxes that get turned into NaNs when accessed by the fortran parts of python-FSPS. This results in issues when calculating magnitudes. Age interpolation and redshifting both remove the NaNs, so this is only an issue when tage is set to a native FSPS age.

Here's a minimum working example:

sps = fsps.StellarPopulation()
sps.params['sfh'] = 1.0
sps.params['dust_type'] = 4
sps.params['tage'] = 1.0
sps.params['dust2'] = 0.05

mags = sps.get_mags(tage=sps.params['tage'])
print mags

installation issue

Having a bit of trouble with installing this correctly - it seems like it's not finding the fortran FSPS code correctly somehow. I've verified that $SPS_HOME exists and is in the right spot and the necessary files exist (as far as I can tell) but when I go to install python-fsps, it doesn't work.

I've been in communication with Dan about it and the "obvious" fixes aren't working at least, so posting it here to see if anyone else has some suggestions.

Here's the output of the "python setup.py install" command for reference, even though it is a bit of a wall of text.

running install
running bdist_egg
running egg_info
writing fsps.egg-info/PKG-INFO
writing top-level names to fsps.egg-info/top_level.txt
writing dependency_links to fsps.egg-info/dependency_links.txt
reading manifest file 'fsps.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'fsps.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/fsps
copying fsps/fsps.py -> build/lib.linux-x86_64-2.7/fsps
copying fsps/filters.py -> build/lib.linux-x86_64-2.7/fsps
copying fsps/tests.py -> build/lib.linux-x86_64-2.7/fsps
copying fsps/init.py -> build/lib.linux-x86_64-2.7/fsps
copying fsps/fsps.f90 -> build/lib.linux-x86_64-2.7/fsps
creating build/lib.linux-x86_64-2.7/fsps/data
copying fsps/data/filter_keys.txt -> build/lib.linux-x86_64-2.7/fsps/data
running build_ext
Reading fortran codes...
Reading file 'fsps.f90' (format:free)
Post-processing...
Block: _fsps
Block: driver
In: :_fsps:fsps.f90:driver
get_useparameters: no module sps_utils info used by driver
In: :_fsps:fsps.f90:driver
get_useparameters: no module sps_vars info used by driver
In: :_fsps:fsps.f90:driver
getarrlen:variable "ntfull" undefined
In: :_fsps:fsps.f90:driver
getarrlen:variable "nz" undefined
Block: setup
In: :_fsps:fsps.f90:driver:setup
get_useparameters: no module sps_utils info used by setup
In: :_fsps:fsps.f90:driver:setup
get_useparameters: no module sps_vars info used by setup
Block: set_ssp_params
In: :_fsps:fsps.f90:driver:set_ssp_params
get_useparameters: no module sps_utils info used by set_ssp_params
In: :_fsps:fsps.f90:driver:set_ssp_params
get_useparameters: no module sps_vars info used by set_ssp_params
Block: set_csp_params
In: :_fsps:fsps.f90:driver:set_csp_params
get_useparameters: no module sps_utils info used by set_csp_params
In: :_fsps:fsps.f90:driver:set_csp_params
get_useparameters: no module sps_vars info used by set_csp_params
Block: ssps
In: :_fsps:fsps.f90:driver:ssps
get_useparameters: no module sps_utils info used by ssps
In: :_fsps:fsps.f90:driver:ssps
get_useparameters: no module sps_vars info used by ssps
Block: ssp
In: :_fsps:fsps.f90:driver:ssp
get_useparameters: no module sps_utils info used by ssp
In: :_fsps:fsps.f90:driver:ssp
get_useparameters: no module sps_vars info used by ssp
Block: get_ssp_spec
In: :_fsps:fsps.f90:driver:get_ssp_spec
get_useparameters: no module sps_utils info used by get_ssp_spec
In: :_fsps:fsps.f90:driver:get_ssp_spec
get_useparameters: no module sps_vars info used by get_ssp_spec
Block: interp_ssp
In: :_fsps:fsps.f90:driver:interp_ssp
get_useparameters: no module sps_utils info used by interp_ssp
In: :_fsps:fsps.f90:driver:interp_ssp
get_useparameters: no module sps_vars info used by interp_ssp
Block: smooth_spectrum
In: :_fsps:fsps.f90:driver:smooth_spectrum
get_useparameters: no module sps_utils info used by smooth_spectrum
In: :_fsps:fsps.f90:driver:smooth_spectrum
get_useparameters: no module sps_vars info used by smooth_spectrum
Block: compute
In: :_fsps:fsps.f90:driver:compute
get_useparameters: no module sps_utils info used by compute
In: :_fsps:fsps.f90:driver:compute
get_useparameters: no module sps_vars info used by compute
Block: get_spec
In: :_fsps:fsps.f90:driver:get_spec
get_useparameters: no module sps_utils info used by get_spec
In: :_fsps:fsps.f90:driver:get_spec
get_useparameters: no module sps_vars info used by get_spec
Block: get_mags
In: :_fsps:fsps.f90:driver:get_mags
get_useparameters: no module sps_utils info used by get_mags
In: :_fsps:fsps.f90:driver:get_mags
get_useparameters: no module sps_vars info used by get_mags
Block: get_setup_vars
In: :_fsps:fsps.f90:driver:get_setup_vars
get_useparameters: no module sps_utils info used by get_setup_vars
In: :_fsps:fsps.f90:driver:get_setup_vars
get_useparameters: no module sps_vars info used by get_setup_vars
Block: get_nz
In: :_fsps:fsps.f90:driver:get_nz
get_useparameters: no module sps_utils info used by get_nz
In: :_fsps:fsps.f90:driver:get_nz
get_useparameters: no module sps_vars info used by get_nz
Block: get_zlegend
In: :_fsps:fsps.f90:driver:get_zlegend
get_useparameters: no module sps_utils info used by get_zlegend
In: :_fsps:fsps.f90:driver:get_zlegend
get_useparameters: no module sps_vars info used by get_zlegend
Block: get_timefull
In: :_fsps:fsps.f90:driver:get_timefull
get_useparameters: no module sps_utils info used by get_timefull
In: :_fsps:fsps.f90:driver:get_timefull
get_useparameters: no module sps_vars info used by get_timefull
Block: get_ntfull
In: :_fsps:fsps.f90:driver:get_ntfull
get_useparameters: no module sps_utils info used by get_ntfull
In: :_fsps:fsps.f90:driver:get_ntfull
get_useparameters: no module sps_vars info used by get_ntfull
Block: get_nspec
In: :_fsps:fsps.f90:driver:get_nspec
get_useparameters: no module sps_utils info used by get_nspec
In: :_fsps:fsps.f90:driver:get_nspec
get_useparameters: no module sps_vars info used by get_nspec
Block: get_nbands
In: :_fsps:fsps.f90:driver:get_nbands
get_useparameters: no module sps_utils info used by get_nbands
In: :_fsps:fsps.f90:driver:get_nbands
get_useparameters: no module sps_vars info used by get_nbands
Block: get_lambda
In: :_fsps:fsps.f90:driver:get_lambda
get_useparameters: no module sps_utils info used by get_lambda
In: :_fsps:fsps.f90:driver:get_lambda
get_useparameters: no module sps_vars info used by get_lambda
Block: get_isochrone_dimensions
In: :_fsps:fsps.f90:driver:get_isochrone_dimensions
get_useparameters: no module sps_utils info used by get_isochrone_dimensions
In: :_fsps:fsps.f90:driver:get_isochrone_dimensions
get_useparameters: no module sps_vars info used by get_isochrone_dimensions
Block: get_nmass_isochrone
In: :_fsps:fsps.f90:driver:get_nmass_isochrone
get_useparameters: no module sps_utils info used by get_nmass_isochrone
In: :_fsps:fsps.f90:driver:get_nmass_isochrone
get_useparameters: no module sps_vars info used by get_nmass_isochrone
Block: get_stats
In: :_fsps:fsps.f90:driver:get_stats
get_useparameters: no module sps_utils info used by get_stats
In: :_fsps:fsps.f90:driver:get_stats
get_useparameters: no module sps_vars info used by get_stats
Block: get_isochrone
In: :_fsps:fsps.f90:driver:get_isochrone
get_useparameters: no module sps_utils info used by get_isochrone
In: :_fsps:fsps.f90:driver:get_isochrone
get_useparameters: no module sps_vars info used by get_isochrone
In: :_fsps:fsps.f90:driver:get_isochrone
getarrlen:variable "nbands" undefined
In: :_fsps:fsps.f90:driver:get_isochrone
getarrlen:variable "nm" undefined
In: :_fsps:fsps.f90:driver:get_isochrone
getarrlen:variable "nspec" undefined
Block: write_isoc
In: :_fsps:fsps.f90:driver:write_isoc
get_useparameters: no module sps_utils info used by write_isoc
In: :_fsps:fsps.f90:driver:write_isoc
get_useparameters: no module sps_vars info used by write_isoc
Post-processing (stage 2)...
Block: _fsps
Block: unknown_interface
Block: driver
Block: setup
Block: set_ssp_params
Block: set_csp_params
Block: ssps
Block: ssp
Block: get_ssp_spec
Block: interp_ssp
Block: smooth_spectrum
Block: compute
Block: get_spec
Block: get_mags
Block: get_setup_vars
Block: get_nz
Block: get_zlegend
Block: get_timefull
Block: get_ntfull
Block: get_nspec
Block: get_nbands
Block: get_lambda
Block: get_isochrone_dimensions
Block: get_nmass_isochrone
Block: get_stats
Block: get_isochrone
Block: write_isoc
Saving signatures to file "./fsps.pyf"
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "_fsps" sources
creating /tmp/tmp7aJuAU/src.linux-x86_64-2.7
f2py options: []
f2py: fsps.pyf
Reading fortran codes...
Reading file 'fsps.pyf' (format:free)
Post-processing...
Block: _fsps
Block: driver
In: fsps.pyf:_fsps:unknown_interface:driver
get_useparameters: no module sps_utils info used by driver
In: fsps.pyf:_fsps:unknown_interface:driver
get_useparameters: no module sps_vars info used by driver
Block: setup
In: fsps.pyf:_fsps:unknown_interface:driver:setup
get_useparameters: no module sps_utils info used by setup
In: fsps.pyf:_fsps:unknown_interface:driver:setup
get_useparameters: no module sps_vars info used by setup
Block: set_ssp_params
In: fsps.pyf:_fsps:unknown_interface:driver:set_ssp_params
get_useparameters: no module sps_utils info used by set_ssp_params
In: fsps.pyf:_fsps:unknown_interface:driver:set_ssp_params
get_useparameters: no module sps_vars info used by set_ssp_params
Block: set_csp_params
In: fsps.pyf:_fsps:unknown_interface:driver:set_csp_params
get_useparameters: no module sps_utils info used by set_csp_params
In: fsps.pyf:_fsps:unknown_interface:driver:set_csp_params
get_useparameters: no module sps_vars info used by set_csp_params
Block: ssps
In: fsps.pyf:_fsps:unknown_interface:driver:ssps
get_useparameters: no module sps_utils info used by ssps
In: fsps.pyf:_fsps:unknown_interface:driver:ssps
get_useparameters: no module sps_vars info used by ssps
Block: ssp
In: fsps.pyf:_fsps:unknown_interface:driver:ssp
get_useparameters: no module sps_utils info used by ssp
In: fsps.pyf:_fsps:unknown_interface:driver:ssp
get_useparameters: no module sps_vars info used by ssp
Block: get_ssp_spec
In: fsps.pyf:_fsps:unknown_interface:driver:get_ssp_spec
get_useparameters: no module sps_utils info used by get_ssp_spec
In: fsps.pyf:_fsps:unknown_interface:driver:get_ssp_spec
get_useparameters: no module sps_vars info used by get_ssp_spec
Block: interp_ssp
In: fsps.pyf:_fsps:unknown_interface:driver:interp_ssp
get_useparameters: no module sps_utils info used by interp_ssp
In: fsps.pyf:_fsps:unknown_interface:driver:interp_ssp
get_useparameters: no module sps_vars info used by interp_ssp
Block: smooth_spectrum
In: fsps.pyf:_fsps:unknown_interface:driver:smooth_spectrum
get_useparameters: no module sps_utils info used by smooth_spectrum
In: fsps.pyf:_fsps:unknown_interface:driver:smooth_spectrum
get_useparameters: no module sps_vars info used by smooth_spectrum
Block: compute
In: fsps.pyf:_fsps:unknown_interface:driver:compute
get_useparameters: no module sps_utils info used by compute
In: fsps.pyf:_fsps:unknown_interface:driver:compute
get_useparameters: no module sps_vars info used by compute
Block: get_spec
In: fsps.pyf:_fsps:unknown_interface:driver:get_spec
get_useparameters: no module sps_utils info used by get_spec
In: fsps.pyf:_fsps:unknown_interface:driver:get_spec
get_useparameters: no module sps_vars info used by get_spec
Block: get_mags
In: fsps.pyf:_fsps:unknown_interface:driver:get_mags
get_useparameters: no module sps_utils info used by get_mags
In: fsps.pyf:_fsps:unknown_interface:driver:get_mags
get_useparameters: no module sps_vars info used by get_mags
Block: get_setup_vars
In: fsps.pyf:_fsps:unknown_interface:driver:get_setup_vars
get_useparameters: no module sps_utils info used by get_setup_vars
In: fsps.pyf:_fsps:unknown_interface:driver:get_setup_vars
get_useparameters: no module sps_vars info used by get_setup_vars
Block: get_nz
In: fsps.pyf:_fsps:unknown_interface:driver:get_nz
get_useparameters: no module sps_utils info used by get_nz
In: fsps.pyf:_fsps:unknown_interface:driver:get_nz
get_useparameters: no module sps_vars info used by get_nz
Block: get_zlegend
In: fsps.pyf:_fsps:unknown_interface:driver:get_zlegend
get_useparameters: no module sps_utils info used by get_zlegend
In: fsps.pyf:_fsps:unknown_interface:driver:get_zlegend
get_useparameters: no module sps_vars info used by get_zlegend
Block: get_timefull
In: fsps.pyf:_fsps:unknown_interface:driver:get_timefull
get_useparameters: no module sps_utils info used by get_timefull
In: fsps.pyf:_fsps:unknown_interface:driver:get_timefull
get_useparameters: no module sps_vars info used by get_timefull
Block: get_ntfull
In: fsps.pyf:_fsps:unknown_interface:driver:get_ntfull
get_useparameters: no module sps_utils info used by get_ntfull
In: fsps.pyf:_fsps:unknown_interface:driver:get_ntfull
get_useparameters: no module sps_vars info used by get_ntfull
Block: get_nspec
In: fsps.pyf:_fsps:unknown_interface:driver:get_nspec
get_useparameters: no module sps_utils info used by get_nspec
In: fsps.pyf:_fsps:unknown_interface:driver:get_nspec
get_useparameters: no module sps_vars info used by get_nspec
Block: get_nbands
In: fsps.pyf:_fsps:unknown_interface:driver:get_nbands
get_useparameters: no module sps_utils info used by get_nbands
In: fsps.pyf:_fsps:unknown_interface:driver:get_nbands
get_useparameters: no module sps_vars info used by get_nbands
Block: get_lambda
In: fsps.pyf:_fsps:unknown_interface:driver:get_lambda
get_useparameters: no module sps_utils info used by get_lambda
In: fsps.pyf:_fsps:unknown_interface:driver:get_lambda
get_useparameters: no module sps_vars info used by get_lambda
Block: get_isochrone_dimensions
In: fsps.pyf:_fsps:unknown_interface:driver:get_isochrone_dimensions
get_useparameters: no module sps_utils info used by get_isochrone_dimensions
In: fsps.pyf:_fsps:unknown_interface:driver:get_isochrone_dimensions
get_useparameters: no module sps_vars info used by get_isochrone_dimensions
Block: get_nmass_isochrone
In: fsps.pyf:_fsps:unknown_interface:driver:get_nmass_isochrone
get_useparameters: no module sps_utils info used by get_nmass_isochrone
In: fsps.pyf:_fsps:unknown_interface:driver:get_nmass_isochrone
get_useparameters: no module sps_vars info used by get_nmass_isochrone
Block: get_stats
In: fsps.pyf:_fsps:unknown_interface:driver:get_stats
get_useparameters: no module sps_utils info used by get_stats
In: fsps.pyf:_fsps:unknown_interface:driver:get_stats
get_useparameters: no module sps_vars info used by get_stats
Block: get_isochrone
In: fsps.pyf:_fsps:unknown_interface:driver:get_isochrone
get_useparameters: no module sps_utils info used by get_isochrone
In: fsps.pyf:_fsps:unknown_interface:driver:get_isochrone
get_useparameters: no module sps_vars info used by get_isochrone
Block: write_isoc
In: fsps.pyf:_fsps:unknown_interface:driver:write_isoc
get_useparameters: no module sps_utils info used by write_isoc
In: fsps.pyf:_fsps:unknown_interface:driver:write_isoc
get_useparameters: no module sps_vars info used by write_isoc
Post-processing (stage 2)...
Block: _fsps
Block: unknown_interface
Block: driver
Block: setup
Block: set_ssp_params
Block: set_csp_params
Block: ssps
Block: ssp
Block: get_ssp_spec
Block: interp_ssp
Block: smooth_spectrum
Block: compute
Block: get_spec
Block: get_mags
Block: get_setup_vars
Block: get_nz
Block: get_zlegend
Block: get_timefull
Block: get_ntfull
Block: get_nspec
Block: get_nbands
Block: get_lambda
Block: get_isochrone_dimensions
Block: get_nmass_isochrone
Block: get_stats
Block: get_isochrone
Block: write_isoc
Building modules...
Building module "_fsps"...
Constructing F90 module support for "driver"...
Variables: is_setup
Constructing wrapper function "driver.setup"...
setup(compute_vega_mags0,redshift_colors0,smooth_velocity0,add_stellar_remnants0,add_neb_emission0,add_dust_emission0,add_agb_dust_model0,tpagb_norm_type0)
Constructing wrapper function "driver.set_ssp_params"...
set_ssp_params(imf_type0,imf1,imf2,imf3,vdmc,mdave,dell,delt,sbss,fbhb,pagb,agb_dust,redgb,masscut,fcstar,evtype)
Constructing wrapper function "driver.set_csp_params"...
set_csp_params(dust_type0,zmet,sfh,wgp1,wgp2,wgp3,tau,const_bn,tage,fburst,tburst,dust1,dust2,logzsol,zred,pmetals,dust_clumps,frac_nodust,dust_index,dust_tesc,frac_obrun,uvb,mwr,dust1_index,sf_start,sf_trunc,sf_theta,duste_gamma,duste_umin,duste_qpah,sigma_smooth,min_wave_smooth,max_wave_smooth)
Constructing wrapper function "driver.ssps"...
ssps()
Constructing wrapper function "driver.ssp"...
ssp(zi)
Constructing wrapper function "driver.get_ssp_spec"...
get_ssp_spec(ssp_spec_out,ssp_mass_out,ssp_lbol_out,[ns,n_age,n_z])
Constructing wrapper function "driver.interp_ssp"...
interp_ssp(zpos,tpos,spec,mass,lbol,[ns])
Constructing wrapper function "driver.smooth_spectrum"...
smooth_spectrum(wave,spec,sigma_broad,minw,maxw,[ns])
Constructing wrapper function "driver.compute"...
compute()
Constructing wrapper function "driver.get_spec"...
spec_out = get_spec(ns,n_age)
Constructing wrapper function "driver.get_mags"...
mags = get_mags(n_age,z_red,mc,[n_bands])
Constructing wrapper function "driver.get_setup_vars"...
cvms,rcolors,svel,asr,ane,ade,agbd,agbn = get_setup_vars()
Constructing wrapper function "driver.get_nz"...
n_z = get_nz()
Constructing wrapper function "driver.get_zlegend"...
z_legend = get_zlegend(n_z)
Constructing wrapper function "driver.get_timefull"...
timefull = get_timefull(n_age)
Constructing wrapper function "driver.get_ntfull"...
n_age = get_ntfull()
Constructing wrapper function "driver.get_nspec"...
ns = get_nspec()
Constructing wrapper function "driver.get_nbands"...
nb = get_nbands()
Constructing wrapper function "driver.get_lambda"...
lambda = get_lambda(ns)
Constructing wrapper function "driver.get_isochrone_dimensions"...
n_age,n_mass = get_isochrone_dimensions()
Constructing wrapper function "driver.get_nmass_isochrone"...
nmass = get_nmass_isochrone(zz,tt)
Constructing wrapper function "driver.get_stats"...
age,mass_csp,lbol_csp,sfr,mdust = get_stats(n_age)
Constructing wrapper function "driver.get_isochrone"...
time_out,z_out,mass_init_out,logl_out,logt_out,logg_out,ffco_out,phase_out,wght_out,mags_out = get_isochrone(zz,tt,n_mass,n_mags)
Constructing wrapper function "driver.write_isoc"...
write_isoc(outfile)
Wrote C/API module "_fsps" to file "/tmp/tmp7aJuAU/src.linux-x86_64-2.7/_fspsmodule.c"
Fortran 90 wrappers are saved to "/tmp/tmp7aJuAU/src.linux-x86_64-2.7/_fsps-f2pywrappers2.f90"
adding '/tmp/tmp7aJuAU/src.linux-x86_64-2.7/fortranobject.c' to sources.
adding '/tmp/tmp7aJuAU/src.linux-x86_64-2.7' to include_dirs.
copying /home/data/bdr244/anaconda/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.c -> /tmp/tmp7aJuAU/src.linux-x86_64-2.7
copying /home/data/bdr244/anaconda/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.h -> /tmp/tmp7aJuAU/src.linux-x86_64-2.7
adding '/tmp/tmp7aJuAU/src.linux-x86_64-2.7/_fsps-f2pywrappers2.f90' to sources.
build_src: building npy-pkg config files
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
building '_fsps' extension
compiling C sources
C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

creating /tmp/tmp7aJuAU/tmp
creating /tmp/tmp7aJuAU/tmp/tmp7aJuAU
creating /tmp/tmp7aJuAU/tmp/tmp7aJuAU/src.linux-x86_64-2.7
compile options: '-I/home/data/bdr244/Desktop/fsps-read-only/src -I/tmp/tmp7aJuAU/src.linux-x86_64-2.7 -I/home/data/bdr244/anaconda/lib/python2.7/site-packages/numpy/core/include -I/home/data/bdr244/anaconda/include/python2.7 -c'
gcc: /tmp/tmp7aJuAU/src.linux-x86_64-2.7/_fspsmodule.c
In file included from /home/data/bdr244/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1804,
from /home/data/bdr244/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
from /home/data/bdr244/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from /tmp/tmp7aJuAU/src.linux-x86_64-2.7/fortranobject.h:13,
from /tmp/tmp7aJuAU/src.linux-x86_64-2.7/_fspsmodule.c:18:
/home/data/bdr244/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
/tmp/tmp7aJuAU/src.linux-x86_64-2.7/_fspsmodule.c:144: warning: ‘f2py_size’ defined but not used
gcc: /tmp/tmp7aJuAU/src.linux-x86_64-2.7/fortranobject.c
In file included from /home/data/bdr244/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1804,
from /home/data/bdr244/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
from /home/data/bdr244/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from /tmp/tmp7aJuAU/src.linux-x86_64-2.7/fortranobject.h:13,
from /tmp/tmp7aJuAU/src.linux-x86_64-2.7/fortranobject.c:2:
/home/data/bdr244/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
compiling Fortran 90 module sources
Fortran f77 compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/bin/gfortran -fPIC -fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -fPIC -O3 -funroll-loops
compile options: '-I/home/data/bdr244/Desktop/fsps-read-only/src -I/tmp/tmp7aJuAU/src.linux-x86_64-2.7 -I/home/data/bdr244/anaconda/lib/python2.7/site-packages/numpy/core/include -I/home/data/bdr244/anaconda/include/python2.7 -c'
extra options: '-J/tmp/tmp7aJuAU/ -I/tmp/tmp7aJuAU/'
gfortran:f90: fsps.f90
compiling Fortran sources
Fortran f77 compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/bin/gfortran -fPIC -fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -fPIC -O3 -funroll-loops
compile options: '-I/home/data/bdr244/Desktop/fsps-read-only/src -I/tmp/tmp7aJuAU/src.linux-x86_64-2.7 -I/home/data/bdr244/anaconda/lib/python2.7/site-packages/numpy/core/include -I/home/data/bdr244/anaconda/include/python2.7 -c'
extra options: '-J/tmp/tmp7aJuAU/ -I/tmp/tmp7aJuAU/'
gfortran:f90: /tmp/tmp7aJuAU/src.linux-x86_64-2.7/_fsps-f2pywrappers2.f90
/usr/bin/gfortran -Wall -g -Wall -g -shared /tmp/tmp7aJuAU/tmp/tmp7aJuAU/src.linux-x86_64-2.7/_fspsmodule.o /tmp/tmp7aJuAU/tmp/tmp7aJuAU/src.linux-x86_64-2.7/fortranobject.o /tmp/tmp7aJuAU/fsps.o /tmp/tmp7aJuAU/tmp/tmp7aJuAU/src.linux-x86_64-2.7/_fsps-f2pywrappers2.o /home/data/bdr244/Desktop/fsps-read-only/src/tsum.o /home/data/bdr244/Desktop/fsps-read-only/src/sps_setup.o /home/data/bdr244/Desktop/fsps-read-only/src/vacairconv.o /home/data/bdr244/Desktop/fsps-read-only/src/imf_weight.o /home/data/bdr244/Desktop/fsps-read-only/src/igm_absorb.o /home/data/bdr244/Desktop/fsps-read-only/src/write_isochrone.o /home/data/bdr244/Desktop/fsps-read-only/src/linterparr.o /home/data/bdr244/Desktop/fsps-read-only/src/getmags.o /home/data/bdr244/Desktop/fsps-read-only/src/smoothspec.o /home/data/bdr244/Desktop/fsps-read-only/src/mod_gb.o /home/data/bdr244/Desktop/fsps-read-only/src/sbf.o /home/data/bdr244/Desktop/fsps-read-only/src/sfhstat.o /home/data/bdr244/Desktop/fsps-read-only/src/add_bs.o /home/data/bdr244/Desktop/fsps-read-only/src/ztinterp.o /home/data/bdr244/Desktop/fsps-read-only/src/add_nebular.o /home/data/bdr244/Desktop/fsps-read-only/src/sps_vars.o /home/data/bdr244/Desktop/fsps-read-only/src/pz_convol.o /home/data/bdr244/Desktop/fsps-read-only/src/funcint.o /home/data/bdr244/Desktop/fsps-read-only/src/add_dust.o /home/data/bdr244/Desktop/fsps-read-only/src/get_lumdist.o /home/data/bdr244/Desktop/fsps-read-only/src/add_remnants.o /home/data/bdr244/Desktop/fsps-read-only/src/linterp.o /home/data/bdr244/Desktop/fsps-read-only/src/mod_hb.o /home/data/bdr244/Desktop/fsps-read-only/src/compsp.o /home/data/bdr244/Desktop/fsps-read-only/src/getspec.o /home/data/bdr244/Desktop/fsps-read-only/src/sps_utils.o /home/data/bdr244/Desktop/fsps-read-only/src/getindx.o /home/data/bdr244/Desktop/fsps-read-only/src/imf.o /home/data/bdr244/Desktop/fsps-read-only/src/add_agb_dust.o /home/data/bdr244/Desktop/fsps-read-only/src/ssp_gen.o /home/data/bdr244/Desktop/fsps-read-only/src/locate.o /home/data/bdr244/Desktop/fsps-read-only/src/get_tuniv.o -L/home/data/bdr244/anaconda/lib -lpython2.7 -lgfortran -o ./_fsps.so
/usr/bin/ld: /home/data/bdr244/Desktop/fsps-read-only/src/sps_setup.o: relocation R_X86_64_32S against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /home/data/bdr244/Desktop/fsps-read-only/src/sps_setup.o: could not read symbols: Bad value collect2: ld returned 1 exit status /usr/bin/ld: /home/data/bdr244/Desktop/fsps-read-only/src/sps_setup.o: relocation R_X86_64_32S against.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/home/data/bdr244/Desktop/fsps-read-only/src/sps_setup.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
Running: cd fsps;f2py fsps.f90 -m _fsps -h fsps.pyf --overwrite-signature
Running: cd fsps;f2py -c -I/home/data/bdr244/Desktop/fsps-read-only/src /home/data/bdr244/Desktop/fsps-read-only/src/tsum.o /home/data/bdr244/Desktop/fsps-read-only/src/sps_setup.o /home/data/bdr244/Desktop/fsps-read-only/src/vacairconv.o /home/data/bdr244/Desktop/fsps-read-only/src/imf_weight.o /home/data/bdr244/Desktop/fsps-read-only/src/igm_absorb.o /home/data/bdr244/Desktop/fsps-read-only/src/write_isochrone.o /home/data/bdr244/Desktop/fsps-read-only/src/linterparr.o /home/data/bdr244/Desktop/fsps-read-only/src/getmags.o /home/data/bdr244/Desktop/fsps-read-only/src/smoothspec.o /home/data/bdr244/Desktop/fsps-read-only/src/mod_gb.o /home/data/bdr244/Desktop/fsps-read-only/src/sbf.o /home/data/bdr244/Desktop/fsps-read-only/src/sfhstat.o /home/data/bdr244/Desktop/fsps-read-only/src/add_bs.o /home/data/bdr244/Desktop/fsps-read-only/src/ztinterp.o /home/data/bdr244/Desktop/fsps-read-only/src/add_nebular.o /home/data/bdr244/Desktop/fsps-read-only/src/sps_vars.o /home/data/bdr244/Desktop/fsps-read-only/src/pz_convol.o /home/data/bdr244/Desktop/fsps-read-only/src/funcint.o /home/data/bdr244/Desktop/fsps-read-only/src/add_dust.o /home/data/bdr244/Desktop/fsps-read-only/src/get_lumdist.o /home/data/bdr244/Desktop/fsps-read-only/src/add_remnants.o /home/data/bdr244/Desktop/fsps-read-only/src/linterp.o /home/data/bdr244/Desktop/fsps-read-only/src/mod_hb.o /home/data/bdr244/Desktop/fsps-read-only/src/compsp.o /home/data/bdr244/Desktop/fsps-read-only/src/getspec.o /home/data/bdr244/Desktop/fsps-read-only/src/sps_utils.o /home/data/bdr244/Desktop/fsps-read-only/src/getindx.o /home/data/bdr244/Desktop/fsps-read-only/src/imf.o /home/data/bdr244/Desktop/fsps-read-only/src/add_agb_dust.o /home/data/bdr244/Desktop/fsps-read-only/src/ssp_gen.o /home/data/bdr244/Desktop/fsps-read-only/src/locate.o /home/data/bdr244/Desktop/fsps-read-only/src/get_tuniv.o fsps.f90 fsps.pyf --f90flags=-cpp --f90flags=-fPIC
Moving /home/data/bdr244/python-fsps/fsps/_fsps.so to /home/data/bdr244/python-fsps/build/lib.linux-x86_64-2.7/fsps/_fsps.so

installation issues?

I am currently unable to install / run fsps on my laptop. I can't tell if this is the result of an accidental/forced upgrade to Mavericks or upgrading to the new numpy 1.10, because I did them both within a few days of each other and didn't notice anything until I tried to do a re-install python-fsps with the setup.py script.

I'm using homebrew-installed python 2.7.10_2 and gcc/gfortran. I have done a complete clean install of my /usr/local/ directory with homebrew, which included a reinstall of python, python modules, and gcc/gfortran. FSPS compiles and runs just fine!

I've tried installing python-fsps with numpy 1.10 and 1.8., both return errors with installation, but at different places (I tested 1.9 numpy as well, but apparently.this had an issue with f2py that put the wrong shebang at the head of the executable f2py script numpy/numpy#5812).

Here is the output from the command "python setup.py install" with numpy 1.10.1:

running install
running bdist_egg
running egg_info
writing fsps.egg-info/PKG-INFO
writing top-level names to fsps.egg-info/top_level.txt
writing dependency_links to fsps.egg-info/dependency_links.txt
reading manifest file 'fsps.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'fsps.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.11-x86_64/egg
running install_lib
running build_py
running build_ext
Running f2py on ['fsps.f90'] with flags ['-m', '_fsps', '-h', 'fsps.pyf', '--overwrite-signature']
Reading fortran codes...
Reading file 'fsps.f90' (format:free)
rmbadname1: Replacing "const" with "const_bn".
rmbadname1: Replacing "const" with "const_bn".
Post-processing...
Block: _fsps
Block: driver
In: :_fsps:fsps.f90:driver
get_useparameters: no module sps_utils info used by driver
In: :_fsps:fsps.f90:driver
get_useparameters: no module sps_vars info used by driver
In: :_fsps:fsps.f90:driver
getarrlen:variable "ntfull" undefined
In: :_fsps:fsps.f90:driver
getarrlen:variable "nz" undefined
In: :_fsps:fsps.f90:driver
getarrlen:variable "nz" undefined
In: :_fsps:fsps.f90:driver
getarrlen:variable "nt" undefined
Block: setup
In: :_fsps:fsps.f90:driver:setup
get_useparameters: no module sps_utils info used by setup
In: :_fsps:fsps.f90:driver:setup
get_useparameters: no module sps_vars info used by setup
Block: set_ssp_params
In: :_fsps:fsps.f90:driver:set_ssp_params
get_useparameters: no module sps_utils info used by set_ssp_params
In: :_fsps:fsps.f90:driver:set_ssp_params
get_useparameters: no module sps_vars info used by set_ssp_params
Block: set_csp_params
In: :_fsps:fsps.f90:driver:set_csp_params
get_useparameters: no module sps_utils info used by set_csp_params
In: :_fsps:fsps.f90:driver:set_csp_params
get_useparameters: no module sps_vars info used by set_csp_params
Block: ssps
In: :_fsps:fsps.f90:driver:ssps
get_useparameters: no module sps_utils info used by ssps
In: :_fsps:fsps.f90:driver:ssps
get_useparameters: no module sps_vars info used by ssps
Block: ssp
In: :_fsps:fsps.f90:driver:ssp
get_useparameters: no module sps_utils info used by ssp
In: :_fsps:fsps.f90:driver:ssp
get_useparameters: no module sps_vars info used by ssp
Block: get_ssp_spec
In: :_fsps:fsps.f90:driver:get_ssp_spec
get_useparameters: no module sps_utils info used by get_ssp_spec
In: :_fsps:fsps.f90:driver:get_ssp_spec
get_useparameters: no module sps_vars info used by get_ssp_spec
Block: interp_ssp
In: :_fsps:fsps.f90:driver:interp_ssp
get_useparameters: no module sps_utils info used by interp_ssp
In: :_fsps:fsps.f90:driver:interp_ssp
get_useparameters: no module sps_vars info used by interp_ssp
In: :_fsps:fsps.f90:driver:interp_ssp
getarrlen:variable "nt" undefined
Block: smooth_spectrum
In: :_fsps:fsps.f90:driver:smooth_spectrum
get_useparameters: no module sps_utils info used by smooth_spectrum
In: :_fsps:fsps.f90:driver:smooth_spectrum
get_useparameters: no module sps_vars info used by smooth_spectrum
Block: compute
In: :_fsps:fsps.f90:driver:compute
get_useparameters: no module sps_utils info used by compute
In: :_fsps:fsps.f90:driver:compute
get_useparameters: no module sps_vars info used by compute
Block: compute_zdep
In: :_fsps:fsps.f90:driver:compute_zdep
get_useparameters: no module sps_utils info used by compute_zdep
In: :_fsps:fsps.f90:driver:compute_zdep
get_useparameters: no module sps_vars info used by compute_zdep
Block: get_spec
In: :_fsps:fsps.f90:driver:get_spec
get_useparameters: no module sps_utils info used by get_spec
In: :_fsps:fsps.f90:driver:get_spec
get_useparameters: no module sps_vars info used by get_spec
Block: get_mags
In: :_fsps:fsps.f90:driver:get_mags
get_useparameters: no module sps_utils info used by get_mags
In: :_fsps:fsps.f90:driver:get_mags
get_useparameters: no module sps_vars info used by get_mags
Block: stellar_spectrum
In: :_fsps:fsps.f90:driver:stellar_spectrum
get_useparameters: no module sps_utils info used by stellar_spectrum
In: :_fsps:fsps.f90:driver:stellar_spectrum
get_useparameters: no module sps_vars info used by stellar_spectrum
Block: get_setup_vars
In: :_fsps:fsps.f90:driver:get_setup_vars
get_useparameters: no module sps_utils info used by get_setup_vars
In: :_fsps:fsps.f90:driver:get_setup_vars
get_useparameters: no module sps_vars info used by get_setup_vars
Block: get_nz
In: :_fsps:fsps.f90:driver:get_nz
get_useparameters: no module sps_utils info used by get_nz
In: :_fsps:fsps.f90:driver:get_nz
get_useparameters: no module sps_vars info used by get_nz
Block: get_zlegend
In: :_fsps:fsps.f90:driver:get_zlegend
get_useparameters: no module sps_utils info used by get_zlegend
In: :_fsps:fsps.f90:driver:get_zlegend
get_useparameters: no module sps_vars info used by get_zlegend
Block: get_timefull
In: :_fsps:fsps.f90:driver:get_timefull
get_useparameters: no module sps_utils info used by get_timefull
In: :_fsps:fsps.f90:driver:get_timefull
get_useparameters: no module sps_vars info used by get_timefull
Block: get_ntfull
In: :_fsps:fsps.f90:driver:get_ntfull
get_useparameters: no module sps_utils info used by get_ntfull
In: :_fsps:fsps.f90:driver:get_ntfull
get_useparameters: no module sps_vars info used by get_ntfull
Block: get_nspec
In: :_fsps:fsps.f90:driver:get_nspec
get_useparameters: no module sps_utils info used by get_nspec
In: :_fsps:fsps.f90:driver:get_nspec
get_useparameters: no module sps_vars info used by get_nspec
Block: get_nbands
In: :_fsps:fsps.f90:driver:get_nbands
get_useparameters: no module sps_utils info used by get_nbands
In: :_fsps:fsps.f90:driver:get_nbands
get_useparameters: no module sps_vars info used by get_nbands
Block: get_lambda
In: :_fsps:fsps.f90:driver:get_lambda
get_useparameters: no module sps_utils info used by get_lambda
In: :_fsps:fsps.f90:driver:get_lambda
get_useparameters: no module sps_vars info used by get_lambda
Block: get_isochrone_dimensions
In: :_fsps:fsps.f90:driver:get_isochrone_dimensions
get_useparameters: no module sps_utils info used by get_isochrone_dimensions
In: :_fsps:fsps.f90:driver:get_isochrone_dimensions
get_useparameters: no module sps_vars info used by get_isochrone_dimensions
Block: get_nmass_isochrone
In: :_fsps:fsps.f90:driver:get_nmass_isochrone
get_useparameters: no module sps_utils info used by get_nmass_isochrone
In: :_fsps:fsps.f90:driver:get_nmass_isochrone
get_useparameters: no module sps_vars info used by get_nmass_isochrone
Block: get_stats
In: :_fsps:fsps.f90:driver:get_stats
get_useparameters: no module sps_utils info used by get_stats
In: :_fsps:fsps.f90:driver:get_stats
get_useparameters: no module sps_vars info used by get_stats
Block: write_isoc
In: :_fsps:fsps.f90:driver:write_isoc
get_useparameters: no module sps_utils info used by write_isoc
In: :_fsps:fsps.f90:driver:write_isoc
get_useparameters: no module sps_vars info used by write_isoc
Post-processing (stage 2)...
Block: _fsps
Block: unknown_interface
Block: driver
Block: setup
Block: set_ssp_params
Block: set_csp_params
Block: ssps
Block: ssp
Block: get_ssp_spec
Block: interp_ssp
Block: smooth_spectrum
Block: compute
Block: compute_zdep
Block: get_spec
Block: get_mags
Block: stellar_spectrum
Block: get_setup_vars
Block: get_nz
Block: get_zlegend
Block: get_timefull
Block: get_ntfull
Block: get_nspec
Block: get_nbands
Block: get_lambda
Block: get_isochrone_dimensions
Block: get_nmass_isochrone
Block: get_stats
Block: write_isoc
Saving signatures to file "./fsps.pyf"
Running f2py on ['/Users/Nell/programs/fsps/src/add_agb_dust.o', '/Users/Nell/programs/fsps/src/add_bs.o', '/Users/Nell/programs/fsps/src/add_dust.o', '/Users/Nell/programs/fsps/src/add_nebular.o', '/Users/Nell/programs/fsps/src/add_remnants.o', '/Users/Nell/programs/fsps/src/compsp.o', '/Users/Nell/programs/fsps/src/funcint.o', '/Users/Nell/programs/fsps/src/get_lumdist.o', '/Users/Nell/programs/fsps/src/get_tuniv.o', '/Users/Nell/programs/fsps/src/getindx.o', '/Users/Nell/programs/fsps/src/getmags.o', '/Users/Nell/programs/fsps/src/getspec.o', '/Users/Nell/programs/fsps/src/igm_absorb.o', '/Users/Nell/programs/fsps/src/imf.o', '/Users/Nell/programs/fsps/src/imf_weight.o', '/Users/Nell/programs/fsps/src/intsfr.o', '/Users/Nell/programs/fsps/src/intspec.o', '/Users/Nell/programs/fsps/src/linterp.o', '/Users/Nell/programs/fsps/src/linterparr.o', '/Users/Nell/programs/fsps/src/locate.o', '/Users/Nell/programs/fsps/src/mod_gb.o', '/Users/Nell/programs/fsps/src/mod_hb.o', '/Users/Nell/programs/fsps/src/pz_convol.o', '/Users/Nell/programs/fsps/src/sbf.o', '/Users/Nell/programs/fsps/src/sfhstat.o', '/Users/Nell/programs/fsps/src/smoothspec.o', '/Users/Nell/programs/fsps/src/sps_setup.o', '/Users/Nell/programs/fsps/src/sps_utils.o', '/Users/Nell/programs/fsps/src/sps_vars.o', '/Users/Nell/programs/fsps/src/ssp_gen.o', '/Users/Nell/programs/fsps/src/tsum.o', '/Users/Nell/programs/fsps/src/vacairconv.o', '/Users/Nell/programs/fsps/src/write_isochrone.o', '/Users/Nell/programs/fsps/src/ztinterp.o', 'fsps.f90', 'fsps.pyf'] with flags ['-c', '-I/Users/Nell/programs/fsps/src', '--f90flags=-cpp', '--f90flags=-fPIC']
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "_fsps" sources
creating /var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmp3xBgBt/src.macosx-10.11-x86_64-2.7
f2py options: []
f2py: fsps.pyf
Reading fortran codes...
Reading file 'fsps.pyf' (format:free)
Post-processing...
Block: _fsps
Block: driver
In: fsps.pyf:_fsps:unknown_interface:driver
get_useparameters: no module sps_utils info used by driver
In: fsps.pyf:_fsps:unknown_interface:driver
get_useparameters: no module sps_vars info used by driver
Block: setup
In: fsps.pyf:_fsps:unknown_interface:driver:setup
get_useparameters: no module sps_utils info used by setup
In: fsps.pyf:_fsps:unknown_interface:driver:setup
get_useparameters: no module sps_vars info used by setup
Block: set_ssp_params
In: fsps.pyf:_fsps:unknown_interface:driver:set_ssp_params
get_useparameters: no module sps_utils info used by set_ssp_params
In: fsps.pyf:_fsps:unknown_interface:driver:set_ssp_params
get_useparameters: no module sps_vars info used by set_ssp_params
Block: set_csp_params
In: fsps.pyf:_fsps:unknown_interface:driver:set_csp_params
get_useparameters: no module sps_utils info used by set_csp_params
In: fsps.pyf:_fsps:unknown_interface:driver:set_csp_params
get_useparameters: no module sps_vars info used by set_csp_params
Block: ssps
In: fsps.pyf:_fsps:unknown_interface:driver:ssps
get_useparameters: no module sps_utils info used by ssps
In: fsps.pyf:_fsps:unknown_interface:driver:ssps
get_useparameters: no module sps_vars info used by ssps
Block: ssp
In: fsps.pyf:_fsps:unknown_interface:driver:ssp
get_useparameters: no module sps_utils info used by ssp
In: fsps.pyf:_fsps:unknown_interface:driver:ssp
get_useparameters: no module sps_vars info used by ssp
Block: get_ssp_spec
In: fsps.pyf:_fsps:unknown_interface:driver:get_ssp_spec
get_useparameters: no module sps_utils info used by get_ssp_spec
In: fsps.pyf:_fsps:unknown_interface:driver:get_ssp_spec
get_useparameters: no module sps_vars info used by get_ssp_spec
Block: interp_ssp
In: fsps.pyf:_fsps:unknown_interface:driver:interp_ssp
get_useparameters: no module sps_utils info used by interp_ssp
In: fsps.pyf:_fsps:unknown_interface:driver:interp_ssp
get_useparameters: no module sps_vars info used by interp_ssp
Block: smooth_spectrum
In: fsps.pyf:_fsps:unknown_interface:driver:smooth_spectrum
get_useparameters: no module sps_utils info used by smooth_spectrum
In: fsps.pyf:_fsps:unknown_interface:driver:smooth_spectrum
get_useparameters: no module sps_vars info used by smooth_spectrum
Block: compute
In: fsps.pyf:_fsps:unknown_interface:driver:compute
get_useparameters: no module sps_utils info used by compute
In: fsps.pyf:_fsps:unknown_interface:driver:compute
get_useparameters: no module sps_vars info used by compute
Block: compute_zdep
In: fsps.pyf:_fsps:unknown_interface:driver:compute_zdep
get_useparameters: no module sps_utils info used by compute_zdep
In: fsps.pyf:_fsps:unknown_interface:driver:compute_zdep
get_useparameters: no module sps_vars info used by compute_zdep
Block: get_spec
In: fsps.pyf:_fsps:unknown_interface:driver:get_spec
get_useparameters: no module sps_utils info used by get_spec
In: fsps.pyf:_fsps:unknown_interface:driver:get_spec
get_useparameters: no module sps_vars info used by get_spec
Block: get_mags
In: fsps.pyf:_fsps:unknown_interface:driver:get_mags
get_useparameters: no module sps_utils info used by get_mags
In: fsps.pyf:_fsps:unknown_interface:driver:get_mags
get_useparameters: no module sps_vars info used by get_mags
Block: stellar_spectrum
In: fsps.pyf:_fsps:unknown_interface:driver:stellar_spectrum
get_useparameters: no module sps_utils info used by stellar_spectrum
In: fsps.pyf:_fsps:unknown_interface:driver:stellar_spectrum
get_useparameters: no module sps_vars info used by stellar_spectrum
Block: get_setup_vars
In: fsps.pyf:_fsps:unknown_interface:driver:get_setup_vars
get_useparameters: no module sps_utils info used by get_setup_vars
In: fsps.pyf:_fsps:unknown_interface:driver:get_setup_vars
get_useparameters: no module sps_vars info used by get_setup_vars
Block: get_nz
In: fsps.pyf:_fsps:unknown_interface:driver:get_nz
get_useparameters: no module sps_utils info used by get_nz
In: fsps.pyf:_fsps:unknown_interface:driver:get_nz
get_useparameters: no module sps_vars info used by get_nz
Block: get_zlegend
In: fsps.pyf:_fsps:unknown_interface:driver:get_zlegend
get_useparameters: no module sps_utils info used by get_zlegend
In: fsps.pyf:_fsps:unknown_interface:driver:get_zlegend
get_useparameters: no module sps_vars info used by get_zlegend
Block: get_timefull
In: fsps.pyf:_fsps:unknown_interface:driver:get_timefull
get_useparameters: no module sps_utils info used by get_timefull
In: fsps.pyf:_fsps:unknown_interface:driver:get_timefull
get_useparameters: no module sps_vars info used by get_timefull
Block: get_ntfull
In: fsps.pyf:_fsps:unknown_interface:driver:get_ntfull
get_useparameters: no module sps_utils info used by get_ntfull
In: fsps.pyf:_fsps:unknown_interface:driver:get_ntfull
get_useparameters: no module sps_vars info used by get_ntfull
Block: get_nspec
In: fsps.pyf:_fsps:unknown_interface:driver:get_nspec
get_useparameters: no module sps_utils info used by get_nspec
In: fsps.pyf:_fsps:unknown_interface:driver:get_nspec
get_useparameters: no module sps_vars info used by get_nspec
Block: get_nbands
In: fsps.pyf:_fsps:unknown_interface:driver:get_nbands
get_useparameters: no module sps_utils info used by get_nbands
In: fsps.pyf:_fsps:unknown_interface:driver:get_nbands
get_useparameters: no module sps_vars info used by get_nbands
Block: get_lambda
In: fsps.pyf:_fsps:unknown_interface:driver:get_lambda
get_useparameters: no module sps_utils info used by get_lambda
In: fsps.pyf:_fsps:unknown_interface:driver:get_lambda
get_useparameters: no module sps_vars info used by get_lambda
Block: get_isochrone_dimensions
In: fsps.pyf:_fsps:unknown_interface:driver:get_isochrone_dimensions
get_useparameters: no module sps_utils info used by get_isochrone_dimensions
In: fsps.pyf:_fsps:unknown_interface:driver:get_isochrone_dimensions
get_useparameters: no module sps_vars info used by get_isochrone_dimensions
Block: get_nmass_isochrone
In: fsps.pyf:_fsps:unknown_interface:driver:get_nmass_isochrone
get_useparameters: no module sps_utils info used by get_nmass_isochrone
In: fsps.pyf:_fsps:unknown_interface:driver:get_nmass_isochrone
get_useparameters: no module sps_vars info used by get_nmass_isochrone
Block: get_stats
In: fsps.pyf:_fsps:unknown_interface:driver:get_stats
get_useparameters: no module sps_utils info used by get_stats
In: fsps.pyf:_fsps:unknown_interface:driver:get_stats
get_useparameters: no module sps_vars info used by get_stats
Block: write_isoc
In: fsps.pyf:_fsps:unknown_interface:driver:write_isoc
get_useparameters: no module sps_utils info used by write_isoc
In: fsps.pyf:_fsps:unknown_interface:driver:write_isoc
get_useparameters: no module sps_vars info used by write_isoc
Post-processing (stage 2)...
Block: _fsps
Block: unknown_interface
Block: driver
Block: setup
Block: set_ssp_params
Block: set_csp_params
Block: ssps
Block: ssp
Block: get_ssp_spec
Block: interp_ssp
Block: smooth_spectrum
Block: compute
Block: compute_zdep
Block: get_spec
Block: get_mags
Block: stellar_spectrum
Block: get_setup_vars
Block: get_nz
Block: get_zlegend
Block: get_timefull
Block: get_ntfull
Block: get_nspec
Block: get_nbands
Block: get_lambda
Block: get_isochrone_dimensions
Block: get_nmass_isochrone
Block: get_stats
Block: write_isoc
Building modules...
Building module "_fsps"...
Constructing F90 module support for "driver"...
Variables: pset is_setup ocompsp has_ssp has_ssp_age
getctype: No C-type found in "{'typespec': 'type', 'typename': 'params'}", assuming void.
Traceback (most recent call last):
File "setup.py", line 121, in
"Programming Language :: Python",
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/site-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/usr/local/lib/python2.7/site-packages/setuptools/command/install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/site-packages/setuptools/command/bdist_egg.py", line 160, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/usr/local/lib/python2.7/site-packages/setuptools/command/bdist_egg.py", line 146, in call_command
self.run_command(cmdname)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/site-packages/setuptools/command/install_lib.py", line 10, in run
self.build()
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install_lib.py", line 111, in build
self.run_command('build_ext')
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "setup.py", line 61, in run
invoke_f2py(fns, flags, wd='fsps')
File "setup.py", line 28, in invoke_f2py
main()
File "/usr/local/lib/python2.7/site-packages/numpy/f2py/f2py2e.py", line 648, in main
run_compile()
File "/usr/local/lib/python2.7/site-packages/numpy/f2py/f2py2e.py", line 633, in run_compile
setup(ext_modules=[ext])
File "/usr/local/lib/python2.7/site-packages/numpy/distutils/core.py", line 169, in setup
return old_setup(**new_attr)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/site-packages/numpy/distutils/command/build.py", line 47, in run
old_build.run(self)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build.py", line 127, in run
self.run_command(cmd_name)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/site-packages/numpy/distutils/command/build_src.py", line 153, in run
self.build_sources()
File "/usr/local/lib/python2.7/site-packages/numpy/distutils/command/build_src.py", line 170, in build_sources
self.build_extension_sources(ext)
File "/usr/local/lib/python2.7/site-packages/numpy/distutils/command/build_src.py", line 335, in build_extension_sources
sources = self.f2py_sources(sources, ext)
File "/usr/local/lib/python2.7/site-packages/numpy/distutils/command/build_src.py", line 574, in f2py_sources
+ ['--build-dir', target_dir, source])
File "/usr/local/lib/python2.7/site-packages/numpy/f2py/f2py2e.py", line 440, in run_main
ret = buildmodules(postlist)
File "/usr/local/lib/python2.7/site-packages/numpy/f2py/f2py2e.py", line 384, in buildmodules
dict_append(ret[mnames[i]], rules.buildmodule(modules[i], um))
File "/usr/local/lib/python2.7/site-packages/numpy/f2py/rules.py", line 1213, in buildmodule
mr, wrap = f90mod_rules.buildhooks(m)
File "/usr/local/lib/python2.7/site-packages/numpy/f2py/f90mod_rules.py", line 146, in buildhooks
at = capi_maps.c2capi_map[ct]
KeyError: 'void'


and here is the output from running setup.py with numpy 1.8.2:

running install
running bdist_egg
running egg_info
writing fsps.egg-info/PKG-INFO
writing top-level names to fsps.egg-info/top_level.txt
writing dependency_links to fsps.egg-info/dependency_links.txt
reading manifest file 'fsps.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'fsps.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.11-x86_64/egg
running install_lib
running build_py
running build_ext
Running f2py on ['fsps.f90'] with flags ['-m', '_fsps', '-h', 'fsps.pyf', '--overwrite-signature']
Reading fortran codes...
Reading file 'fsps.f90' (format:free)
rmbadname1: Replacing "const" with "const_bn".
rmbadname1: Replacing "const" with "const_bn".
Post-processing...
Block: _fsps
Block: driver
In: :_fsps:fsps.f90:driver
get_useparameters: no module sps_utils info used by driver
In: :_fsps:fsps.f90:driver
get_useparameters: no module sps_vars info used by driver
In: :_fsps:fsps.f90:driver
getarrlen:variable "ntfull" undefined
In: :_fsps:fsps.f90:driver
getarrlen:variable "nz" undefined
In: :_fsps:fsps.f90:driver
getarrlen:variable "nz" undefined
In: :_fsps:fsps.f90:driver
getarrlen:variable "nt" undefined
Block: setup
In: :_fsps:fsps.f90:driver:setup
get_useparameters: no module sps_utils info used by setup
In: :_fsps:fsps.f90:driver:setup
get_useparameters: no module sps_vars info used by setup
Block: set_ssp_params
In: :_fsps:fsps.f90:driver:set_ssp_params
get_useparameters: no module sps_utils info used by set_ssp_params
In: :_fsps:fsps.f90:driver:set_ssp_params
get_useparameters: no module sps_vars info used by set_ssp_params
Block: set_csp_params
In: :_fsps:fsps.f90:driver:set_csp_params
get_useparameters: no module sps_utils info used by set_csp_params
In: :_fsps:fsps.f90:driver:set_csp_params
get_useparameters: no module sps_vars info used by set_csp_params
Block: ssps
In: :_fsps:fsps.f90:driver:ssps
get_useparameters: no module sps_utils info used by ssps
In: :_fsps:fsps.f90:driver:ssps
get_useparameters: no module sps_vars info used by ssps
Block: ssp
In: :_fsps:fsps.f90:driver:ssp
get_useparameters: no module sps_utils info used by ssp
In: :_fsps:fsps.f90:driver:ssp
get_useparameters: no module sps_vars info used by ssp
Block: get_ssp_spec
In: :_fsps:fsps.f90:driver:get_ssp_spec
get_useparameters: no module sps_utils info used by get_ssp_spec
In: :_fsps:fsps.f90:driver:get_ssp_spec
get_useparameters: no module sps_vars info used by get_ssp_spec
Block: interp_ssp
In: :_fsps:fsps.f90:driver:interp_ssp
get_useparameters: no module sps_utils info used by interp_ssp
In: :_fsps:fsps.f90:driver:interp_ssp
get_useparameters: no module sps_vars info used by interp_ssp
In: :_fsps:fsps.f90:driver:interp_ssp
getarrlen:variable "nt" undefined
Block: smooth_spectrum
In: :_fsps:fsps.f90:driver:smooth_spectrum
get_useparameters: no module sps_utils info used by smooth_spectrum
In: :_fsps:fsps.f90:driver:smooth_spectrum
get_useparameters: no module sps_vars info used by smooth_spectrum
Block: compute
In: :_fsps:fsps.f90:driver:compute
get_useparameters: no module sps_utils info used by compute
In: :_fsps:fsps.f90:driver:compute
get_useparameters: no module sps_vars info used by compute
Block: compute_zdep
In: :_fsps:fsps.f90:driver:compute_zdep
get_useparameters: no module sps_utils info used by compute_zdep
In: :_fsps:fsps.f90:driver:compute_zdep
get_useparameters: no module sps_vars info used by compute_zdep
Block: get_spec
In: :_fsps:fsps.f90:driver:get_spec
get_useparameters: no module sps_utils info used by get_spec
In: :_fsps:fsps.f90:driver:get_spec
get_useparameters: no module sps_vars info used by get_spec
Block: get_mags
In: :_fsps:fsps.f90:driver:get_mags
get_useparameters: no module sps_utils info used by get_mags
In: :_fsps:fsps.f90:driver:get_mags
get_useparameters: no module sps_vars info used by get_mags
Block: stellar_spectrum
In: :_fsps:fsps.f90:driver:stellar_spectrum
get_useparameters: no module sps_utils info used by stellar_spectrum
In: :_fsps:fsps.f90:driver:stellar_spectrum
get_useparameters: no module sps_vars info used by stellar_spectrum
Block: get_setup_vars
In: :_fsps:fsps.f90:driver:get_setup_vars
get_useparameters: no module sps_utils info used by get_setup_vars
In: :_fsps:fsps.f90:driver:get_setup_vars
get_useparameters: no module sps_vars info used by get_setup_vars
Block: get_nz
In: :_fsps:fsps.f90:driver:get_nz
get_useparameters: no module sps_utils info used by get_nz
In: :_fsps:fsps.f90:driver:get_nz
get_useparameters: no module sps_vars info used by get_nz
Block: get_zlegend
In: :_fsps:fsps.f90:driver:get_zlegend
get_useparameters: no module sps_utils info used by get_zlegend
In: :_fsps:fsps.f90:driver:get_zlegend
get_useparameters: no module sps_vars info used by get_zlegend
Block: get_timefull
In: :_fsps:fsps.f90:driver:get_timefull
get_useparameters: no module sps_utils info used by get_timefull
In: :_fsps:fsps.f90:driver:get_timefull
get_useparameters: no module sps_vars info used by get_timefull
Block: get_ntfull
In: :_fsps:fsps.f90:driver:get_ntfull
get_useparameters: no module sps_utils info used by get_ntfull
In: :_fsps:fsps.f90:driver:get_ntfull
get_useparameters: no module sps_vars info used by get_ntfull
Block: get_nspec
In: :_fsps:fsps.f90:driver:get_nspec
get_useparameters: no module sps_utils info used by get_nspec
In: :_fsps:fsps.f90:driver:get_nspec
get_useparameters: no module sps_vars info used by get_nspec
Block: get_nbands
In: :_fsps:fsps.f90:driver:get_nbands
get_useparameters: no module sps_utils info used by get_nbands
In: :_fsps:fsps.f90:driver:get_nbands
get_useparameters: no module sps_vars info used by get_nbands
Block: get_lambda
In: :_fsps:fsps.f90:driver:get_lambda
get_useparameters: no module sps_utils info used by get_lambda
In: :_fsps:fsps.f90:driver:get_lambda
get_useparameters: no module sps_vars info used by get_lambda
Block: get_isochrone_dimensions
In: :_fsps:fsps.f90:driver:get_isochrone_dimensions
get_useparameters: no module sps_utils info used by get_isochrone_dimensions
In: :_fsps:fsps.f90:driver:get_isochrone_dimensions
get_useparameters: no module sps_vars info used by get_isochrone_dimensions
Block: get_nmass_isochrone
In: :_fsps:fsps.f90:driver:get_nmass_isochrone
get_useparameters: no module sps_utils info used by get_nmass_isochrone
In: :_fsps:fsps.f90:driver:get_nmass_isochrone
get_useparameters: no module sps_vars info used by get_nmass_isochrone
Block: get_stats
In: :_fsps:fsps.f90:driver:get_stats
get_useparameters: no module sps_utils info used by get_stats
In: :_fsps:fsps.f90:driver:get_stats
get_useparameters: no module sps_vars info used by get_stats
Block: write_isoc
In: :_fsps:fsps.f90:driver:write_isoc
get_useparameters: no module sps_utils info used by write_isoc
In: :_fsps:fsps.f90:driver:write_isoc
get_useparameters: no module sps_vars info used by write_isoc
Post-processing (stage 2)...
Block: _fsps
Block: unknown_interface
Block: driver
Block: setup
Block: set_ssp_params
Block: set_csp_params
Block: ssps
Block: ssp
Block: get_ssp_spec
Block: interp_ssp
Block: smooth_spectrum
Block: compute
Block: compute_zdep
Block: get_spec
Block: get_mags
Block: stellar_spectrum
Block: get_setup_vars
Block: get_nz
Block: get_zlegend
Block: get_timefull
Block: get_ntfull
Block: get_nspec
Block: get_nbands
Block: get_lambda
Block: get_isochrone_dimensions
Block: get_nmass_isochrone
Block: get_stats
Block: write_isoc
Saving signatures to file "./fsps.pyf"
Running f2py on ['/Users/Nell/programs/fsps/src/add_agb_dust.o', '/Users/Nell/programs/fsps/src/add_bs.o', '/Users/Nell/programs/fsps/src/add_dust.o', '/Users/Nell/programs/fsps/src/add_nebular.o', '/Users/Nell/programs/fsps/src/add_remnants.o', '/Users/Nell/programs/fsps/src/compsp.o', '/Users/Nell/programs/fsps/src/funcint.o', '/Users/Nell/programs/fsps/src/get_lumdist.o', '/Users/Nell/programs/fsps/src/get_tuniv.o', '/Users/Nell/programs/fsps/src/getindx.o', '/Users/Nell/programs/fsps/src/getmags.o', '/Users/Nell/programs/fsps/src/getspec.o', '/Users/Nell/programs/fsps/src/igm_absorb.o', '/Users/Nell/programs/fsps/src/imf.o', '/Users/Nell/programs/fsps/src/imf_weight.o', '/Users/Nell/programs/fsps/src/intsfr.o', '/Users/Nell/programs/fsps/src/intspec.o', '/Users/Nell/programs/fsps/src/linterp.o', '/Users/Nell/programs/fsps/src/linterparr.o', '/Users/Nell/programs/fsps/src/locate.o', '/Users/Nell/programs/fsps/src/mod_gb.o', '/Users/Nell/programs/fsps/src/mod_hb.o', '/Users/Nell/programs/fsps/src/pz_convol.o', '/Users/Nell/programs/fsps/src/sbf.o', '/Users/Nell/programs/fsps/src/sfhstat.o', '/Users/Nell/programs/fsps/src/smoothspec.o', '/Users/Nell/programs/fsps/src/sps_setup.o', '/Users/Nell/programs/fsps/src/sps_utils.o', '/Users/Nell/programs/fsps/src/sps_vars.o', '/Users/Nell/programs/fsps/src/ssp_gen.o', '/Users/Nell/programs/fsps/src/tsum.o', '/Users/Nell/programs/fsps/src/vacairconv.o', '/Users/Nell/programs/fsps/src/write_isochrone.o', '/Users/Nell/programs/fsps/src/ztinterp.o', 'fsps.f90', 'fsps.pyf'] with flags ['-c', '-I/Users/Nell/programs/fsps/src', '--f90flags=-cpp', '--f90flags=-fPIC']
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "_fsps" sources
creating /var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/src.macosx-10.11-x86_64-2.7
f2py options: []
f2py: fsps.pyf
Reading fortran codes...
Reading file 'fsps.pyf' (format:free)
Post-processing...
Block: _fsps
Block: driver
In: fsps.pyf:_fsps:unknown_interface:driver
get_useparameters: no module sps_utils info used by driver
In: fsps.pyf:_fsps:unknown_interface:driver
get_useparameters: no module sps_vars info used by driver
Block: setup
In: fsps.pyf:_fsps:unknown_interface:driver:setup
get_useparameters: no module sps_utils info used by setup
In: fsps.pyf:_fsps:unknown_interface:driver:setup
get_useparameters: no module sps_vars info used by setup
Block: set_ssp_params
In: fsps.pyf:_fsps:unknown_interface:driver:set_ssp_params
get_useparameters: no module sps_utils info used by set_ssp_params
In: fsps.pyf:_fsps:unknown_interface:driver:set_ssp_params
get_useparameters: no module sps_vars info used by set_ssp_params
Block: set_csp_params
In: fsps.pyf:_fsps:unknown_interface:driver:set_csp_params
get_useparameters: no module sps_utils info used by set_csp_params
In: fsps.pyf:_fsps:unknown_interface:driver:set_csp_params
get_useparameters: no module sps_vars info used by set_csp_params
Block: ssps
In: fsps.pyf:_fsps:unknown_interface:driver:ssps
get_useparameters: no module sps_utils info used by ssps
In: fsps.pyf:_fsps:unknown_interface:driver:ssps
get_useparameters: no module sps_vars info used by ssps
Block: ssp
In: fsps.pyf:_fsps:unknown_interface:driver:ssp
get_useparameters: no module sps_utils info used by ssp
In: fsps.pyf:_fsps:unknown_interface:driver:ssp
get_useparameters: no module sps_vars info used by ssp
Block: get_ssp_spec
In: fsps.pyf:_fsps:unknown_interface:driver:get_ssp_spec
get_useparameters: no module sps_utils info used by get_ssp_spec
In: fsps.pyf:_fsps:unknown_interface:driver:get_ssp_spec
get_useparameters: no module sps_vars info used by get_ssp_spec
Block: interp_ssp
In: fsps.pyf:_fsps:unknown_interface:driver:interp_ssp
get_useparameters: no module sps_utils info used by interp_ssp
In: fsps.pyf:_fsps:unknown_interface:driver:interp_ssp
get_useparameters: no module sps_vars info used by interp_ssp
Block: smooth_spectrum
In: fsps.pyf:_fsps:unknown_interface:driver:smooth_spectrum
get_useparameters: no module sps_utils info used by smooth_spectrum
In: fsps.pyf:_fsps:unknown_interface:driver:smooth_spectrum
get_useparameters: no module sps_vars info used by smooth_spectrum
Block: compute
In: fsps.pyf:_fsps:unknown_interface:driver:compute
get_useparameters: no module sps_utils info used by compute
In: fsps.pyf:_fsps:unknown_interface:driver:compute
get_useparameters: no module sps_vars info used by compute
Block: compute_zdep
In: fsps.pyf:_fsps:unknown_interface:driver:compute_zdep
get_useparameters: no module sps_utils info used by compute_zdep
In: fsps.pyf:_fsps:unknown_interface:driver:compute_zdep
get_useparameters: no module sps_vars info used by compute_zdep
Block: get_spec
In: fsps.pyf:_fsps:unknown_interface:driver:get_spec
get_useparameters: no module sps_utils info used by get_spec
In: fsps.pyf:_fsps:unknown_interface:driver:get_spec
get_useparameters: no module sps_vars info used by get_spec
Block: get_mags
In: fsps.pyf:_fsps:unknown_interface:driver:get_mags
get_useparameters: no module sps_utils info used by get_mags
In: fsps.pyf:_fsps:unknown_interface:driver:get_mags
get_useparameters: no module sps_vars info used by get_mags
Block: stellar_spectrum
In: fsps.pyf:_fsps:unknown_interface:driver:stellar_spectrum
get_useparameters: no module sps_utils info used by stellar_spectrum
In: fsps.pyf:_fsps:unknown_interface:driver:stellar_spectrum
get_useparameters: no module sps_vars info used by stellar_spectrum
Block: get_setup_vars
In: fsps.pyf:_fsps:unknown_interface:driver:get_setup_vars
get_useparameters: no module sps_utils info used by get_setup_vars
In: fsps.pyf:_fsps:unknown_interface:driver:get_setup_vars
get_useparameters: no module sps_vars info used by get_setup_vars
Block: get_nz
In: fsps.pyf:_fsps:unknown_interface:driver:get_nz
get_useparameters: no module sps_utils info used by get_nz
In: fsps.pyf:_fsps:unknown_interface:driver:get_nz
get_useparameters: no module sps_vars info used by get_nz
Block: get_zlegend
In: fsps.pyf:_fsps:unknown_interface:driver:get_zlegend
get_useparameters: no module sps_utils info used by get_zlegend
In: fsps.pyf:_fsps:unknown_interface:driver:get_zlegend
get_useparameters: no module sps_vars info used by get_zlegend
Block: get_timefull
In: fsps.pyf:_fsps:unknown_interface:driver:get_timefull
get_useparameters: no module sps_utils info used by get_timefull
In: fsps.pyf:_fsps:unknown_interface:driver:get_timefull
get_useparameters: no module sps_vars info used by get_timefull
Block: get_ntfull
In: fsps.pyf:_fsps:unknown_interface:driver:get_ntfull
get_useparameters: no module sps_utils info used by get_ntfull
In: fsps.pyf:_fsps:unknown_interface:driver:get_ntfull
get_useparameters: no module sps_vars info used by get_ntfull
Block: get_nspec
In: fsps.pyf:_fsps:unknown_interface:driver:get_nspec
get_useparameters: no module sps_utils info used by get_nspec
In: fsps.pyf:_fsps:unknown_interface:driver:get_nspec
get_useparameters: no module sps_vars info used by get_nspec
Block: get_nbands
In: fsps.pyf:_fsps:unknown_interface:driver:get_nbands
get_useparameters: no module sps_utils info used by get_nbands
In: fsps.pyf:_fsps:unknown_interface:driver:get_nbands
get_useparameters: no module sps_vars info used by get_nbands
Block: get_lambda
In: fsps.pyf:_fsps:unknown_interface:driver:get_lambda
get_useparameters: no module sps_utils info used by get_lambda
In: fsps.pyf:_fsps:unknown_interface:driver:get_lambda
get_useparameters: no module sps_vars info used by get_lambda
Block: get_isochrone_dimensions
In: fsps.pyf:_fsps:unknown_interface:driver:get_isochrone_dimensions
get_useparameters: no module sps_utils info used by get_isochrone_dimensions
In: fsps.pyf:_fsps:unknown_interface:driver:get_isochrone_dimensions
get_useparameters: no module sps_vars info used by get_isochrone_dimensions
Block: get_nmass_isochrone
In: fsps.pyf:_fsps:unknown_interface:driver:get_nmass_isochrone
get_useparameters: no module sps_utils info used by get_nmass_isochrone
In: fsps.pyf:_fsps:unknown_interface:driver:get_nmass_isochrone
get_useparameters: no module sps_vars info used by get_nmass_isochrone
Block: get_stats
In: fsps.pyf:_fsps:unknown_interface:driver:get_stats
get_useparameters: no module sps_utils info used by get_stats
In: fsps.pyf:_fsps:unknown_interface:driver:get_stats
get_useparameters: no module sps_vars info used by get_stats
Block: write_isoc
In: fsps.pyf:_fsps:unknown_interface:driver:write_isoc
get_useparameters: no module sps_utils info used by write_isoc
In: fsps.pyf:_fsps:unknown_interface:driver:write_isoc
get_useparameters: no module sps_vars info used by write_isoc
Post-processing (stage 2)...
Block: _fsps
Block: unknown_interface
Block: driver
Block: setup
Block: set_ssp_params
Block: set_csp_params
Block: ssps
Block: ssp
Block: get_ssp_spec
Block: interp_ssp
Block: smooth_spectrum
Block: compute
Block: compute_zdep
Block: get_spec
Block: get_mags
Block: stellar_spectrum
Block: get_setup_vars
Block: get_nz
Block: get_zlegend
Block: get_timefull
Block: get_ntfull
Block: get_nspec
Block: get_nbands
Block: get_lambda
Block: get_isochrone_dimensions
Block: get_nmass_isochrone
Block: get_stats
Block: write_isoc
Building modules...
Building module "_fsps"...
Constructing F90 module support for "driver"...
Variables: is_setup
Constructing wrapper function "driver.setup"...
setup(compute_vega_mags0)
Constructing wrapper function "driver.set_ssp_params"...
set_ssp_params(imf_type0,imf1,imf2,imf3,vdmc,mdave,dell,delt,sbss,fbhb,pagb,add_stellar_remnants0,tpagb_norm_type0,add_agb_dust_model0,agb_dust,redgb,masscut,fcstar,evtype)
Constructing wrapper function "driver.set_csp_params"...
set_csp_params(smooth_velocity0,vactoair_flag0,redshift_colors0,dust_type0,add_dust_emission0,add_neb_emission0,add_neb_continuum0,cloudy_dust0,add_igm_absorption0,zmet,sfh,wgp1,wgp2,wgp3,tau,const_bn,tage,fburst,tburst,dust1,dust2,logzsol,zred,pmetals,dust_clumps,frac_nodust,dust_index,dust_tesc,frac_obrun,uvb,mwr,dust1_index,sf_start,sf_trunc,sf_slope,duste_gamma,duste_umin,duste_qpah,sigma_smooth,min_wave_smooth,max_wave_smooth,gas_logu,gas_logz,igm_factor)
Constructing wrapper function "driver.ssps"...
ssps()
Constructing wrapper function "driver.ssp"...
ssp(zi)
Constructing wrapper function "driver.get_ssp_spec"...
get_ssp_spec(ssp_spec_out,ssp_mass_out,ssp_lbol_out,[ns,n_age,n_z])
Constructing wrapper function "driver.interp_ssp"...
interp_ssp(zpos,tpos,spec,mass,lbol,[ns])
Constructing wrapper function "driver.smooth_spectrum"...
smooth_spectrum(wave,spec,sigma_broad,minw,maxw,[ns])
Constructing wrapper function "driver.compute"...
compute()
Constructing wrapper function "driver.compute_zdep"...
compute_zdep(ns,n_age,ztype)
Constructing wrapper function "driver.get_spec"...
spec_out = get_spec(ns,n_age)
Constructing wrapper function "driver.get_mags"...
mags = get_mags(ns,n_age,z_red,mc,[n_bands])
Constructing wrapper function "driver.stellar_spectrum"...
stellar_spectrum(mact,logt,lbol,logg,phase,ffco,wght,spec_out,[ns])
Constructing wrapper function "driver.get_setup_vars"...
cvms = get_setup_vars()
Constructing wrapper function "driver.get_nz"...
n_z = get_nz()
Constructing wrapper function "driver.get_zlegend"...
z_legend = get_zlegend(n_z)
Constructing wrapper function "driver.get_timefull"...
timefull = get_timefull(n_age)
Constructing wrapper function "driver.get_ntfull"...
n_age = get_ntfull()
Constructing wrapper function "driver.get_nspec"...
ns = get_nspec()
Constructing wrapper function "driver.get_nbands"...
nb = get_nbands()
Constructing wrapper function "driver.get_lambda"...
lambda = get_lambda(ns)
Constructing wrapper function "driver.get_isochrone_dimensions"...
n_age,n_mass = get_isochrone_dimensions()
Constructing wrapper function "driver.get_nmass_isochrone"...
nmass = get_nmass_isochrone(zz,tt)
Constructing wrapper function "driver.get_stats"...
age,mass_csp,lbol_csp,sfr,mdust = get_stats(n_age)
Constructing wrapper function "driver.write_isoc"...
write_isoc(outfile)
Wrote C/API module "_fsps" to file "/var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/src.macosx-10.11-x86_64-2.7/_fspsmodule.c"
Fortran 90 wrappers are saved to "/var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/src.macosx-10.11-x86_64-2.7/_fsps-f2pywrappers2.f90"
adding '/var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/src.macosx-10.11-x86_64-2.7/fortranobject.c' to sources.
adding '/var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/src.macosx-10.11-x86_64-2.7' to include_dirs.
copying /usr/local/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.c -> /var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/src.macosx-10.11-x86_64-2.7
copying /usr/local/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.h -> /var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/src.macosx-10.11-x86_64-2.7
adding '/var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/src.macosx-10.11-x86_64-2.7/_fsps-f2pywrappers2.f90' to sources.
build_src: building npy-pkg config files
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize Gnu95FCompiler
Found executable /usr/local/bin/gfortran
Found executable /usr/local/bin/gcc-5
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
building '_fsps' extension
compiling C sources
C compiler: /usr/local/bin/gcc-5 -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes

creating /var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/var
creating /var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/var/folders
creating /var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/var/folders/t2
creating /var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn
creating /var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T
creating /var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh
creating /var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/src.macosx-10.11-x86_64-2.7
compile options: '-I/Users/Nell/programs/fsps/src -I/var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/src.macosx-10.11-x86_64-2.7 -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c'
gcc-5: /var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/src.macosx-10.11-x86_64-2.7/_fspsmodule.c
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1761:0,
from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from /var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/src.macosx-10.11-x86_64-2.7/fortranobject.h:13,
from /var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/src.macosx-10.11-x86_64-2.7/_fspsmodule.c:18:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by "
^
/var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/src.macosx-10.11-x86_64-2.7/_fspsmodule.c:144:12: warning: 'f2py_size' defined but not used [-Wunused-function]
static int f2py_size(PyArrayObject* var, ...)
^
gcc-5: /var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/src.macosx-10.11-x86_64-2.7/fortranobject.c
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1761:0,
from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from /var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/src.macosx-10.11-x86_64-2.7/fortranobject.h:13,
from /var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/src.macosx-10.11-x86_64-2.7/fortranobject.c:2:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by "
^
compiling Fortran 90 module sources
Fortran f77 compiler: /usr/local/bin/gfortran -Wall -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/local/bin/gfortran -fPIC -fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/local/bin/gfortran -Wall -ffixed-form -fno-second-underscore -fPIC -fPIC -O3 -funroll-loops
compile options: '-I/Users/Nell/programs/fsps/src -I/var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/src.macosx-10.11-x86_64-2.7 -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c'
extra options: '-J/var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/ -I/var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/'
gfortran:f90: fsps.f90
fsps.f90:144:17: Error: 'sf_slope' at (1) is not a member of the 'params' structure
fsps.f90:144:17: Error: 'sf_slope' at (1) is not a member of the 'params' structure
error: Command "/usr/local/bin/gfortran -fPIC -fPIC -O3 -funroll-loops -I/Users/Nell/programs/fsps/src -I/var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/src.macosx-10.11-x86_64-2.7 -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c -c fsps.f90 -o /var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/fsps.o -J/var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/ -I/var/folders/t2/rr3k4qm54xg2vq26yngyj7cw0000gn/T/tmpFFGdJh/" failed with exit status 1

Access to SFHSTAT?

Does python-fsps have access to the FSPS routine SFHSTAT(pos,model,ssfr6,ssfr7,ssfr8,aveage) which can return the SSFR averaged over 10^6, 10^7, and 10^8 yrs, and the mass-weighted average stellar age? If not, how do I compute the SSFR averaged over some interval along with the age (either mass- or light-weighted) for any generated CSP model?

error when trying to build -- python3.3 on mac10.9

Hello,

When I try to install python-fsps after cloning the git repo I get this error. I have already built fsps and set up SPS_HOME

[lemay:~/code/python-fsps] arh5361% python setup.py install
Traceback (most recent call last):
  File "setup.py", line 75, in <module>
    from fsps import __version__
  File "/astro/grads/arh5361/code/python-fsps/fsps/__init__.py", line 35, in <module>
    fsps_vers = int(re.match("^([0-9])+", out[0]).group(0))
IndexError: list index out of range

Weird cross-talk between IRAC & GALEX magnitudes

This is weird, but hear me out: GALEX magnitudes change depending on whether I include IRAC bands in the call to StellarPopulation.get_magnitudes().

Here's an SED with IRAC:
demo_sed_irac

And one without IRAC for the same SFH (I put WISE bands in instead):
demo_sed_wise

It also seems that the GALEX SED is more correct without the IRAC bands, and that the IRAC SED itself is quite erratic compared to WISE.

Is anyone else seeing this? I don't know what layer of the stack this is occurring in (FSPS, python-fsps, or my application).

sf_start not working properly for sfh=0?

Hi,
Based on the docs and the example on the homepage (http://dan.iel.fm/python-fsps/current/stellarpop_api/#example), I believe that sf_start should be a valid option for SSPs (sfh=0). However, I'm finding that for sfh=0, changing the value of sf_start has no effect on the output mags (i.e., it is not actually shifting the SSP in time), whereas for other SFHs (e.g., sfh=1 or sfh=4), it seems to be working.
Trying first with sfh=0:

>>> import fsps
>>> sdss_bands = fsps.find_filter('sdss')
>>> sp = fsps.StellarPopulation(sfh=0, zmet=8, sf_start=0.)
>>> sp.get_mags(tage=13.7, bands=sdss_bands)
array([ 8.8227116 ,  7.19149324,  6.13138256,  6.47717957,  5.86455388])
>>> sp = fsps.StellarPopulation(sfh=0, zmet=8, sf_start=6.)
>>> sp.get_mags(tage=13.7, bands=sdss_bands)
 COMPSP WARNING: sf_trunc<sf_start.... sf_trunc will be ignored.
array([ 8.8227116 ,  7.19149324,  6.13138256,  6.47717957,  5.86455388])

Now try the same with sfh=1:

>>> sp = fsps.StellarPopulation(sfh=1, zmet=8, sf_start=0.)
>>> sp.get_mags(tage=13.7, bands=sdss_bands)
array([ 8.70815378,  7.09042147,  6.03822671,  6.38155303,  5.77344132])
>>> sp = fsps.StellarPopulation(sfh=1, zmet=8, sf_start=6.)
>>> sp.get_mags(tage=13.7, bands=sdss_bands)
 COMPSP WARNING: sf_trunc<sf_start.... sf_trunc will be ignored.
array([ 7.88501673,  6.4355665 ,  5.51056325,  5.81249939,  5.28567069])

FSPS -fPIC

Make sure the installation documentation mentions that FSPS should be compiled with the -fPIC compiler flag. It would also be great if we could catch this error some way during the build and report it in a human readable way.

Filter indices in `.get_mags` off by 1

There seems to be a bug when using the bands keyword in the get_mags method of the StellarPopulation class. It seems that the filter indices are off by 1. For example,

fuv1 = sp.get_mags(bands=['galex_fuv'])[:,0]
mags = sp.get_mags()

# From fsps/data/FILTER_LIST, GALEX FUV is the 62nd filter, so the index is
#61. GALEX NUV is the 63rd filter, index 62.
fuv2 = mags[:,61]
fuv3 = mags[:,62]

test1 = np.all(fuv1 == fuv2)  # False, should be True
test2 = np.all(fuv1 == fuv3)  # True, should be False

I think I've tracked the issue down to line 491 in fsps.py:

inds = [FILTERS[band.lower()].index for band in bands]

which perhaps should be,

inds = [FILTERS[band.lower()].index-1 for band in bands]

Problems in adding new filters

I've added some new filters to FSPS (see here for changes) and recompiled it, but when I try to use get_mags for the new filters, it fails like so:

sp = fsps.StellarPopulation(compute_vega_mags=True, add_neb_emission=True, cloudy_dust=True, sfh=0,  zmet=2)
narrow_filts = [ 'wfc3_uvis_f373n', 'wfc3_uvis_f487n','wfc3_uvis_f502n', 'wfc3_uvis_f657n', 'wfc3_uvis_f673n']
mn = sp.get_mags(bands=narrow_filts)

/Users/pauline/anaconda/lib/python2.7/site-packages/fsps-0.2.2-py2.7-macosx-10.6-x86_64.egg/fsps/fsps.pyc in get_mags(self, zmet, tage, redshift, bands)
    606         else:
    607             if bands is not None:
--> 608                 return mags[:, user_sorted_inds]
    609             else:
    610                 return mags

IndexError: index 138 is out of bounds for axis 1 with size 138

Seems like this might be related to #46 or #15 ?

ages

For a variety of young input ages (e.g., <=0.05 Gyr, although it might extend beyond this) I keep getting the following errors:

COMPSP ERROR, maxtime too small: 10964781.961431850
chex 8:07pm > python weisz.py
COMPSP ERROR, maxtime too small: 13803842.646028839
chex 8:08pm > python weisz.py
COMPSP ERROR, maxtime too small: 10000000.000000000
chex 8:08pm > python weisz.py
COMPSP ERROR, maxtime too small: 50000000.000000000

I think the offenders are sp.get_mags and sp.get_spectrum().

Undocumented parameters

There are a few parameters that live in the pset structure but don't have any documentation. In the python-fsps docs, I've copied over all the documentation about the parameters from the FSPS PDF documentation but it's missing a few parameters (logzsol, pmetals, frac_obrun, redgb, dust1_index, masscut, and evtype).

@jonathansick: do you have any idea about what any of these are? If so should we document them or just leave them out like the original documentation does.

Installation: could not read symbols: Bad value

Hi,

After doing a git pull update, I got a weird error during installation of python-fsps that update and recompile FSPS can not solve (And, FSPS itself works fine):

/usr/bin/ld: /home/hs/code/fsps/src/add_nebular.o: relocation R_X86_64_32S against `__sps_vars_MOD_time_full' can not be used when making a shared object; recompile with -fPIC
/home/hs/code/fsps/src/add_nebular.o: error adding symbols: Bad value 
collect2: error: ld returned 1 exit status
/usr/bin/ld: /home/hs/code/fsps/src/add_nebular.o: relocation R_X86_64_32S against  `__sps_vars_MOD_time_full' can not be used when making a shared object; recompile with -fPIC
/home/hs/code/fsps/src/add_nebular.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
error: Command "/usr/bin/gfortran -Wall -g -Wall -g -shared /tmp/tmpgcV1wy/tmp/tmpgcV1wy/src.linux-x86_64-2.7/_fspsmodule.o /tmp/tmpgcV1wy/tmp/tmpgcV1wy/src.linux-x86_64-2.7/fortranobject.o /tmp/tmpgcV1wy/fsps.o /tmp/tmpgcV1wy/tmp/tmpgcV1wy/src.linux-x86_64-2.7/_fsps-f2pywrappers2.o /home/hs/code/fsps/src/add_nebular.o /home/hs/code/fsps/src/add_agb_dust.o /home/hs/code/fsps/src/getindx.o /home/hs/code/fsps/src/pz_convol.o /home/hs/code/fsps/src/funcint.o /home/hs/code/fsps/src/getmags.o /home/hs/code/fsps/src/tsum.o /home/hs/code/fsps/src/sbf.o /home/hs/code/fsps/src/linterp.o /home/hs/code/fsps/src/attn_curve.o /home/hs/code/fsps/src/ztinterp.o /home/hs/code/fsps/src/ssp_gen.o /home/hs/code/fsps/src/write_isochrone.o /home/hs/code/fsps/src/getspec.o /home/hs/code/fsps/src/mod_hb.o /home/hs/code/fsps/src/add_dust.o /home/hs/code/fsps/src/intsfr.o /home/hs/code/fsps/src/intspec.o /home/hs/code/fsps/src/add_remnants.o /home/hs/code/fsps/src/imf.o /home/hs/code/fsps/src/get_lumdist.o /home/hs/code/fsps/src/smoothspec.o /home/hs/code/fsps/src/compsp.o /home/hs/code/fsps/src/linterparr.o /home/hs/code/fsps/src/sfhstat.o /home/hs/code/fsps/src/get_tuniv.o /home/hs/code/fsps/src/vacairconv.o /home/hs/code/fsps/src/locate.o /home/hs/code/fsps/src/imf_weight.o /home/hs/code/fsps/src/mod_gb.o /home/hs/code/fsps/src/sps_vars.o /home/hs/code/fsps/src/igm_absorb.o /home/hs/code/fsps/src/sps_utils.o /home/hs/code/fsps/src/add_bs.o /home/hs/code/fsps/src/sps_setup.o -L/home/hs/anaconda/lib -lpython2.7 -lgfortran -o ./_fsps.so" failed with exit status 1

I am using gfortran:4.8.4, and it's a Ubuntun desktop.

I thought about the possibility that it is Anaconda python's bad. But it seems like I get the same error on our Unix server here, where the same gfortran version is installed, but Anaconda is not used.

Not sure if I did something wrong or it's FSPS' problem? Any help will be greatly appreciated!

Installation problem - Windows 10

Hi there,

I'm running Windows 10 on my PC, and am having issues installing python-fsps. I need it alongside other packages such as sedpy, hdf5, etc... which I have had no issue with so far in order to run the "prospector" python package.

Unfortunately, I got an error saying "$SPS_HOME" variable was not set. I've now set an environment variable with that name. I'm now getting an error saying " AttributeError: 'module' object has no attribute 'WEXITSTATUS'" which I've traced back to the init.py run_command(cmd) function. WEXITSTATUS does not exist on windows. I found the following help online but have not been able to resolve the problem!

def GetExitStatus(exit_code):
"""Returns the argument to exit(), or -1 if exit() wasn't called.

Args:
exit_code: the result value of os.system(command).
"""

if os.name == 'nt':
# On Windows, os.WEXITSTATUS() doesn't work and os.system() returns
# the argument to exit() directly.
return exit_code
else:
# On Unix, os.WEXITSTATUS() must be used to extract the exit status
# from the result of os.system().
if os.WIFEXITED(exit_code):
return os.WEXITSTATUS(exit_code)
else:
return -1

I've tried modifying run_command() but to no avail, i printed the output:

def run_command(cmd):
"""
Open a child process, and return its exit status and stdout.

"""
child = subprocess.Popen(cmd, shell=True, stderr=subprocess.PIPE,
                         stdin=subprocess.PIPE, stdout=subprocess.PIPE)
out = [s.decode("utf-8").strip() for s in child.stdout]
err = [s.decode("utf-8").strip() for s in child.stderr]
w = child.wait()
print(w, out, err)
return w, out, err

This is returning "1 [] [u'The system cannot find the path specified.']" which unsurprisingly is leading to ImportError: Your FSPS version does not seem to be under git version control. FSPS is available on github at https://github.com/cconroy20/fsps and should be cloned from there.

Could you advise how best to install python-fsps?

Thanks,

Henri

Remove requirement of parallel FSPS install?

To start with this is a "does this seem like a good idea" question... But has there been thought given to full separating out the FSPS linking so that there is no need to have the SPS_HOME environment variable at runtime?

I might be missing a subtlety, but it looks to me like all the linking is already static, so there's no need to reach the source directory of fsps. But am I right in guessing that it's still needed because fsps uses SPS_HOME internally to locate the various data files that come bundled with FSPS? If that's the case, I could imagine ways to trick the python-fsps build to use a copy of all that that gets built at install time... But before exploring this further (and possibly making a PR), my question is: has this been discussed and rejected, @dfm?

f90 error on cluster with only local access

I’ve been using python-fsps for a year or so now and have come to the point where I want to use it to run code on my department’s supercomputer.

The install on my machine was completely hassle free but not so much on the supercomputer:
1) I don’t have write access, just local
2) They have python 2.6.6 installed and an older version of numpy 1.3.0

I managed to get Charlie’s FSPS installed and compiled fine using the gfortran compiler available on the supercomputer, but when I try to install python-fsps (either from the source or using pip) I get an error I can’t figure out:

error: f90 not supported by GnuFCompiler needed for fsps.f90

A quick google tells me this is a common error (from stack exchange):

By default, f2py prefers the GNU Fortran 77 compiler --fcompiler=gnu over the GNU Fortran 95 
compiler --fcompiler=gnu95. If you have both g77 and gfortran on your path, then f2py will, use 
g77, which cannot build Fortran 90 extensions.

If you would prefer for numpy to use gfortran over g77, you can pass the --fcompiler=gnu95 flag 
to setup.py when building your code

If I try to run python setup.py install —user —fcompiler=gnu on the supercomputer I get an error from setup.py:

error: option --fcompiler not recognized

Do you know if I can change something in the setup.py file to take this an option instead? I tried to add it to the ‘flags’ variable: flags = " -m _fsps -h fsps.pyf --overwrite-signature —-fcompiler=gnu95".split() but that also triggered an error, a simple: Unknown option '--fcompiler=gnu95’ from f2py.

Ideally, I’d update python and numpy to the latest versions but I obviously don’t have write access to the whole system. Any ideas, thoughts etc on how to solve without write access?

update for FSPS on github

FSPS is now on github instead of googlecode!

This means we need to replace the svn revision check with a githash check. Also we need to update the documentation about where/how FSPS can be downloaded and installed.

DOI

I added a DOI to the README (it'll resolve soon). We should also add it to the docs.

using set_tabular_sfh

Hi,
I am going to use set_tabular_sfh option but I test it first. So I am running this script:

sp = fsps.StellarPopulation()
sdss_bands = fsps.find_filter('sdss')
mags = sp.get_mags(bands=sdss_bands)
age = (10 ** sp.log_age) * (10 ** (-9))
sfr = sp.sfr
wavelength, spectrum = sp.get_spectrum(tage=13.7)

sp1 = fsps.StellarPopulation(sfh=3)
sp1.set_tabular_sfh(age=age, sfr=sfr)
wavelength1, spectrum1 = sp1.get_spectrum(tage=13.7)

and hoping that spectrum1 and spectrum would give similar result but no, the results differ on order 20. Why is this?

zmet out of range

for py-fsps hash: e27ea2d
and fsps hash: c45124307a5ecf2fb98e07c4c4b4193ee35a4a57

(which I think should be the latest versions of each code), running the example from the py fsps docs returns an out of bounds error

In [1]: import fsps

In [2]: sp = fsps.StellarPopulation(compute_vega_mags=False, sfh=0, zmet=20,dust_type=2, dust2=0.2, sf_start=6.)
---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
<ipython-input-2-1569792ad7b1> in <module>()
----> 1 sp = fsps.StellarPopulation(compute_vega_mags=False, sfh=0, zmet=20,dust_type=2, dust2=0.2, sf_start=6.)

/ufrc/narayanan/desika.narayanan/pd/python-fsps/fsps/fsps.pyc in __init__(self, compute_vega_mags, vactoair_flag, zcontinuous, **kwargs)
    450         # Parse any input options.
    451         for k, v in self.params.iteritems():
--> 452             self.params[k] = kwargs.pop(k, v)
    453
    454         # Make sure that we didn't get any unknown options.

/ufrc/narayanan/desika.narayanan/pd/python-fsps/fsps/fsps.pyc in __setitem__(self, k, v)
    992
    993             self._params[k] = v
--> 994             self.check_params()

/ufrc/narayanan/desika.narayanan/pd/python-fsps/fsps/fsps.pyc in check_params(self)
    971         NZ = driver.get_nz()
    972         assert self._params["zmet"] in range(1, NZ + 1), \
--> 973             "zmet={0} out of range [1, {1}]".format(self._params["zmet"], NZ)
    974         assert self._params["dust_type"] in range(5), \
    975             "dust_type={0} out of range [0, 4]".format(

AssertionError: zmet=20 out of range [1, 12]

Interpolation

How do people normally interpolate the magnitudes/spectra on the age–metallicity grid? 2D linear? Something more intelligent?

Compilation error

Hi,

I am encountering an error while installing the development version of python-fsps on a Mac Pro (OS X El Capitan). I am using the Anaconda package and v3.6.1 of Python to perform the installation. I successfully installed FSPS v3.0 and have correctly set the SPS_HOME.

Here is the terminal output:

(astro) bash-3.2$ python setup.py install
running install
running bdist_egg
running egg_info
creating fsps.egg-info
writing fsps.egg-info/PKG-INFO
writing dependency_links to fsps.egg-info/dependency_links.txt
writing top-level names to fsps.egg-info/top_level.txt
writing manifest file 'fsps.egg-info/SOURCES.txt'
reading manifest file 'fsps.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'fsps/data/filter_keys.txt'
writing manifest file 'fsps.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.7-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.6
creating build/lib.macosx-10.7-x86_64-3.6/fsps
copying fsps/init.py -> build/lib.macosx-10.7-x86_64-3.6/fsps
copying fsps/filters.py -> build/lib.macosx-10.7-x86_64-3.6/fsps
copying fsps/fsps.py -> build/lib.macosx-10.7-x86_64-3.6/fsps
copying fsps/tests.py -> build/lib.macosx-10.7-x86_64-3.6/fsps
copying fsps/fsps.f90 -> build/lib.macosx-10.7-x86_64-3.6/fsps
running build_ext
Running f2py on ['fsps.f90'] with flags ['-m', '_fsps', '-h', 'fsps.pyf', '--overwrite-signature']
Reading fortran codes...
Reading file 'fsps.f90' (format:free)
rmbadname1: Replacing "const" with "const_bn".
rmbadname1: Replacing "const" with "const_bn".
Post-processing...
Block: _fsps
Block: driver
In: :_fsps:fsps.f90:driver
get_useparameters: no module sps_vars info used by driver
In: :_fsps:fsps.f90:driver
get_useparameters: no module sps_utils info used by driver
In: :_fsps:fsps.f90:driver
getarrlen:variable "ntfull" undefined
In: :_fsps:fsps.f90:driver
getarrlen:variable "nz" undefined
In: :_fsps:fsps.f90:driver
getarrlen:variable "nz" undefined
In: :_fsps:fsps.f90:driver
getarrlen:variable "nt" undefined
Block: setup
In: :_fsps:fsps.f90:driver:setup
get_useparameters: no module sps_vars info used by setup
In: :_fsps:fsps.f90:driver:setup
get_useparameters: no module sps_utils info used by setup
Block: set_ssp_params
In: :_fsps:fsps.f90:driver:set_ssp_params
get_useparameters: no module sps_vars info used by set_ssp_params
In: :_fsps:fsps.f90:driver:set_ssp_params
get_useparameters: no module sps_utils info used by set_ssp_params
Block: set_csp_params
In: :_fsps:fsps.f90:driver:set_csp_params
get_useparameters: no module sps_vars info used by set_csp_params
In: :_fsps:fsps.f90:driver:set_csp_params
get_useparameters: no module sps_utils info used by set_csp_params
Block: ssps
In: :_fsps:fsps.f90:driver:ssps
get_useparameters: no module sps_vars info used by ssps
In: :_fsps:fsps.f90:driver:ssps
get_useparameters: no module sps_utils info used by ssps
Block: ssp
In: :_fsps:fsps.f90:driver:ssp
get_useparameters: no module sps_vars info used by ssp
In: :_fsps:fsps.f90:driver:ssp
get_useparameters: no module sps_utils info used by ssp
Block: compute_zdep
In: :_fsps:fsps.f90:driver:compute_zdep
get_useparameters: no module sps_vars info used by compute_zdep
In: :_fsps:fsps.f90:driver:compute_zdep
get_useparameters: no module sps_utils info used by compute_zdep
Block: get_spec
In: :_fsps:fsps.f90:driver:get_spec
get_useparameters: no module sps_vars info used by get_spec
In: :_fsps:fsps.f90:driver:get_spec
get_useparameters: no module sps_utils info used by get_spec
Block: get_mags
In: :_fsps:fsps.f90:driver:get_mags
get_useparameters: no module sps_vars info used by get_mags
In: :_fsps:fsps.f90:driver:get_mags
get_useparameters: no module sps_utils info used by get_mags
Block: interp_ssp
In: :_fsps:fsps.f90:driver:interp_ssp
get_useparameters: no module sps_vars info used by interp_ssp
In: :_fsps:fsps.f90:driver:interp_ssp
get_useparameters: no module sps_utils info used by interp_ssp
In: :_fsps:fsps.f90:driver:interp_ssp
getarrlen:variable "nt" undefined
Block: smooth_spectrum
In: :_fsps:fsps.f90:driver:smooth_spectrum
get_useparameters: no module sps_vars info used by smooth_spectrum
In: :_fsps:fsps.f90:driver:smooth_spectrum
get_useparameters: no module sps_utils info used by smooth_spectrum
Block: stellar_spectrum
In: :_fsps:fsps.f90:driver:stellar_spectrum
get_useparameters: no module sps_vars info used by stellar_spectrum
In: :_fsps:fsps.f90:driver:stellar_spectrum
get_useparameters: no module sps_utils info used by stellar_spectrum
Block: get_ssp_spec
In: :_fsps:fsps.f90:driver:get_ssp_spec
get_useparameters: no module sps_vars info used by get_ssp_spec
In: :_fsps:fsps.f90:driver:get_ssp_spec
get_useparameters: no module sps_utils info used by get_ssp_spec
Block: set_sfh_tab
In: :_fsps:fsps.f90:driver:set_sfh_tab
get_useparameters: no module sps_vars info used by set_sfh_tab
In: :_fsps:fsps.f90:driver:set_sfh_tab
get_useparameters: no module sps_utils info used by set_sfh_tab
Block: set_ssp_lsf
In: :_fsps:fsps.f90:driver:set_ssp_lsf
get_useparameters: no module sps_vars info used by set_ssp_lsf
In: :_fsps:fsps.f90:driver:set_ssp_lsf
get_useparameters: no module sps_utils info used by set_ssp_lsf
Block: get_setup_vars
In: :_fsps:fsps.f90:driver:get_setup_vars
get_useparameters: no module sps_vars info used by get_setup_vars
In: :_fsps:fsps.f90:driver:get_setup_vars
get_useparameters: no module sps_utils info used by get_setup_vars
Block: get_nz
In: :_fsps:fsps.f90:driver:get_nz
get_useparameters: no module sps_vars info used by get_nz
In: :_fsps:fsps.f90:driver:get_nz
get_useparameters: no module sps_utils info used by get_nz
Block: get_zlegend
In: :_fsps:fsps.f90:driver:get_zlegend
get_useparameters: no module sps_vars info used by get_zlegend
In: :_fsps:fsps.f90:driver:get_zlegend
get_useparameters: no module sps_utils info used by get_zlegend
Block: get_timefull
In: :_fsps:fsps.f90:driver:get_timefull
get_useparameters: no module sps_vars info used by get_timefull
In: :_fsps:fsps.f90:driver:get_timefull
get_useparameters: no module sps_utils info used by get_timefull
Block: get_ntfull
In: :_fsps:fsps.f90:driver:get_ntfull
get_useparameters: no module sps_vars info used by get_ntfull
In: :_fsps:fsps.f90:driver:get_ntfull
get_useparameters: no module sps_utils info used by get_ntfull
Block: get_nspec
In: :_fsps:fsps.f90:driver:get_nspec
get_useparameters: no module sps_vars info used by get_nspec
In: :_fsps:fsps.f90:driver:get_nspec
get_useparameters: no module sps_utils info used by get_nspec
Block: get_nbands
In: :_fsps:fsps.f90:driver:get_nbands
get_useparameters: no module sps_vars info used by get_nbands
In: :_fsps:fsps.f90:driver:get_nbands
get_useparameters: no module sps_utils info used by get_nbands
Block: get_nemline
In: :_fsps:fsps.f90:driver:get_nemline
get_useparameters: no module sps_vars info used by get_nemline
In: :_fsps:fsps.f90:driver:get_nemline
get_useparameters: no module sps_utils info used by get_nemline
Block: get_emlambda
In: :_fsps:fsps.f90:driver:get_emlambda
get_useparameters: no module sps_vars info used by get_emlambda
In: :_fsps:fsps.f90:driver:get_emlambda
get_useparameters: no module sps_utils info used by get_emlambda
Block: get_lambda
In: :_fsps:fsps.f90:driver:get_lambda
get_useparameters: no module sps_vars info used by get_lambda
In: :_fsps:fsps.f90:driver:get_lambda
get_useparameters: no module sps_utils info used by get_lambda
Block: get_libraries
In: :_fsps:fsps.f90:driver:get_libraries
get_useparameters: no module sps_vars info used by get_libraries
In: :_fsps:fsps.f90:driver:get_libraries
get_useparameters: no module sps_utils info used by get_libraries
Block: get_isochrone_dimensions
In: :_fsps:fsps.f90:driver:get_isochrone_dimensions
get_useparameters: no module sps_vars info used by get_isochrone_dimensions
In: :_fsps:fsps.f90:driver:get_isochrone_dimensions
get_useparameters: no module sps_utils info used by get_isochrone_dimensions
Block: get_nmass_isochrone
In: :_fsps:fsps.f90:driver:get_nmass_isochrone
get_useparameters: no module sps_vars info used by get_nmass_isochrone
In: :_fsps:fsps.f90:driver:get_nmass_isochrone
get_useparameters: no module sps_utils info used by get_nmass_isochrone
Block: get_stats
In: :_fsps:fsps.f90:driver:get_stats
get_useparameters: no module sps_vars info used by get_stats
In: :_fsps:fsps.f90:driver:get_stats
get_useparameters: no module sps_utils info used by get_stats
Block: get_filter_data
In: :_fsps:fsps.f90:driver:get_filter_data
get_useparameters: no module sps_vars info used by get_filter_data
In: :_fsps:fsps.f90:driver:get_filter_data
get_useparameters: no module sps_utils info used by get_filter_data
Block: write_isoc
In: :_fsps:fsps.f90:driver:write_isoc
get_useparameters: no module sps_vars info used by write_isoc
In: :_fsps:fsps.f90:driver:write_isoc
get_useparameters: no module sps_utils info used by write_isoc
Post-processing (stage 2)...
Block: _fsps
Block: unknown_interface
Block: driver
Block: setup
Block: set_ssp_params
Block: set_csp_params
Block: ssps
Block: ssp
Block: compute_zdep
Block: get_spec
Block: get_mags
Block: interp_ssp
Block: smooth_spectrum
Block: stellar_spectrum
Block: get_ssp_spec
Block: set_sfh_tab
Block: set_ssp_lsf
Block: get_setup_vars
Block: get_nz
Block: get_zlegend
Block: get_timefull
Block: get_ntfull
Block: get_nspec
Block: get_nbands
Block: get_nemline
Block: get_emlambda
Block: get_lambda
Block: get_libraries
Block: get_isochrone_dimensions
Block: get_nmass_isochrone
Block: get_stats
Block: get_filter_data
Block: write_isoc
Saving signatures to file "./fsps.pyf"
Running f2py on ['/Users/roedigerj/models/fsps_v3.0/src/add_agb_dust.o', '/Users/roedigerj/models/fsps_v3.0/src/add_bs.o', '/Users/roedigerj/models/fsps_v3.0/src/add_dust.o', '/Users/roedigerj/models/fsps_v3.0/src/add_nebular.o', '/Users/roedigerj/models/fsps_v3.0/src/add_remnants.o', '/Users/roedigerj/models/fsps_v3.0/src/agn_dust.o', '/Users/roedigerj/models/fsps_v3.0/src/attn_curve.o', '/Users/roedigerj/models/fsps_v3.0/src/compsp.o', '/Users/roedigerj/models/fsps_v3.0/src/csp_gen.o', '/Users/roedigerj/models/fsps_v3.0/src/funcint.o', '/Users/roedigerj/models/fsps_v3.0/src/get_lumdist.o', '/Users/roedigerj/models/fsps_v3.0/src/get_tuniv.o', '/Users/roedigerj/models/fsps_v3.0/src/getindx.o', '/Users/roedigerj/models/fsps_v3.0/src/getmags.o', '/Users/roedigerj/models/fsps_v3.0/src/getspec.o', '/Users/roedigerj/models/fsps_v3.0/src/igm_absorb.o', '/Users/roedigerj/models/fsps_v3.0/src/imf.o', '/Users/roedigerj/models/fsps_v3.0/src/imf_weight.o', '/Users/roedigerj/models/fsps_v3.0/src/intsfwght.o', '/Users/roedigerj/models/fsps_v3.0/src/linterp.o', '/Users/roedigerj/models/fsps_v3.0/src/linterparr.o', '/Users/roedigerj/models/fsps_v3.0/src/locate.o', '/Users/roedigerj/models/fsps_v3.0/src/mod_gb.o', '/Users/roedigerj/models/fsps_v3.0/src/mod_hb.o', '/Users/roedigerj/models/fsps_v3.0/src/pz_convol.o', '/Users/roedigerj/models/fsps_v3.0/src/sbf.o', '/Users/roedigerj/models/fsps_v3.0/src/setup_tabular_sfh.o', '/Users/roedigerj/models/fsps_v3.0/src/sfh_weight.o', '/Users/roedigerj/models/fsps_v3.0/src/sfhinfo.o', '/Users/roedigerj/models/fsps_v3.0/src/sfhlimit.o', '/Users/roedigerj/models/fsps_v3.0/src/sfhstat.o', '/Users/roedigerj/models/fsps_v3.0/src/smoothspec.o', '/Users/roedigerj/models/fsps_v3.0/src/spec_bin.o', '/Users/roedigerj/models/fsps_v3.0/src/sps_setup.o', '/Users/roedigerj/models/fsps_v3.0/src/sps_utils.o', '/Users/roedigerj/models/fsps_v3.0/src/sps_vars.o', '/Users/roedigerj/models/fsps_v3.0/src/ssp_gen.o', '/Users/roedigerj/models/fsps_v3.0/src/tsum.o', '/Users/roedigerj/models/fsps_v3.0/src/vacairconv.o', '/Users/roedigerj/models/fsps_v3.0/src/write_isochrone.o', '/Users/roedigerj/models/fsps_v3.0/src/ztinterp.o', 'fsps.f90', 'fsps.pyf'] with flags ['-c', '-I/Users/roedigerj/models/fsps_v3.0/src', '--f90flags=-cpp', '--f90flags=-fPIC']
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "_fsps" sources
creating /var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/src.macosx-10.7-x86_64-3.6
f2py options: []
f2py: fsps.pyf
Reading fortran codes...
Reading file 'fsps.pyf' (format:free)
Post-processing...
Block: _fsps
Block: driver
In: fsps.pyf:_fsps:unknown_interface:driver
get_useparameters: no module sps_vars info used by driver
In: fsps.pyf:_fsps:unknown_interface:driver
get_useparameters: no module sps_utils info used by driver
Block: setup
In: fsps.pyf:_fsps:unknown_interface:driver:setup
get_useparameters: no module sps_vars info used by setup
In: fsps.pyf:_fsps:unknown_interface:driver:setup
get_useparameters: no module sps_utils info used by setup
Block: set_ssp_params
In: fsps.pyf:_fsps:unknown_interface:driver:set_ssp_params
get_useparameters: no module sps_vars info used by set_ssp_params
In: fsps.pyf:_fsps:unknown_interface:driver:set_ssp_params
get_useparameters: no module sps_utils info used by set_ssp_params
Block: set_csp_params
In: fsps.pyf:_fsps:unknown_interface:driver:set_csp_params
get_useparameters: no module sps_vars info used by set_csp_params
In: fsps.pyf:_fsps:unknown_interface:driver:set_csp_params
get_useparameters: no module sps_utils info used by set_csp_params
Block: ssps
In: fsps.pyf:_fsps:unknown_interface:driver:ssps
get_useparameters: no module sps_vars info used by ssps
In: fsps.pyf:_fsps:unknown_interface:driver:ssps
get_useparameters: no module sps_utils info used by ssps
Block: ssp
In: fsps.pyf:_fsps:unknown_interface:driver:ssp
get_useparameters: no module sps_vars info used by ssp
In: fsps.pyf:_fsps:unknown_interface:driver:ssp
get_useparameters: no module sps_utils info used by ssp
Block: compute_zdep
In: fsps.pyf:_fsps:unknown_interface:driver:compute_zdep
get_useparameters: no module sps_vars info used by compute_zdep
In: fsps.pyf:_fsps:unknown_interface:driver:compute_zdep
get_useparameters: no module sps_utils info used by compute_zdep
Block: get_spec
In: fsps.pyf:_fsps:unknown_interface:driver:get_spec
get_useparameters: no module sps_vars info used by get_spec
In: fsps.pyf:_fsps:unknown_interface:driver:get_spec
get_useparameters: no module sps_utils info used by get_spec
Block: get_mags
In: fsps.pyf:_fsps:unknown_interface:driver:get_mags
get_useparameters: no module sps_vars info used by get_mags
In: fsps.pyf:_fsps:unknown_interface:driver:get_mags
get_useparameters: no module sps_utils info used by get_mags
Block: interp_ssp
In: fsps.pyf:_fsps:unknown_interface:driver:interp_ssp
get_useparameters: no module sps_vars info used by interp_ssp
In: fsps.pyf:_fsps:unknown_interface:driver:interp_ssp
get_useparameters: no module sps_utils info used by interp_ssp
Block: smooth_spectrum
In: fsps.pyf:_fsps:unknown_interface:driver:smooth_spectrum
get_useparameters: no module sps_vars info used by smooth_spectrum
In: fsps.pyf:_fsps:unknown_interface:driver:smooth_spectrum
get_useparameters: no module sps_utils info used by smooth_spectrum
Block: stellar_spectrum
In: fsps.pyf:_fsps:unknown_interface:driver:stellar_spectrum
get_useparameters: no module sps_vars info used by stellar_spectrum
In: fsps.pyf:_fsps:unknown_interface:driver:stellar_spectrum
get_useparameters: no module sps_utils info used by stellar_spectrum
Block: get_ssp_spec
In: fsps.pyf:_fsps:unknown_interface:driver:get_ssp_spec
get_useparameters: no module sps_vars info used by get_ssp_spec
In: fsps.pyf:_fsps:unknown_interface:driver:get_ssp_spec
get_useparameters: no module sps_utils info used by get_ssp_spec
Block: set_sfh_tab
In: fsps.pyf:_fsps:unknown_interface:driver:set_sfh_tab
get_useparameters: no module sps_vars info used by set_sfh_tab
In: fsps.pyf:_fsps:unknown_interface:driver:set_sfh_tab
get_useparameters: no module sps_utils info used by set_sfh_tab
Block: set_ssp_lsf
In: fsps.pyf:_fsps:unknown_interface:driver:set_ssp_lsf
get_useparameters: no module sps_vars info used by set_ssp_lsf
In: fsps.pyf:_fsps:unknown_interface:driver:set_ssp_lsf
get_useparameters: no module sps_utils info used by set_ssp_lsf
Block: get_setup_vars
In: fsps.pyf:_fsps:unknown_interface:driver:get_setup_vars
get_useparameters: no module sps_vars info used by get_setup_vars
In: fsps.pyf:_fsps:unknown_interface:driver:get_setup_vars
get_useparameters: no module sps_utils info used by get_setup_vars
Block: get_nz
In: fsps.pyf:_fsps:unknown_interface:driver:get_nz
get_useparameters: no module sps_vars info used by get_nz
In: fsps.pyf:_fsps:unknown_interface:driver:get_nz
get_useparameters: no module sps_utils info used by get_nz
Block: get_zlegend
In: fsps.pyf:_fsps:unknown_interface:driver:get_zlegend
get_useparameters: no module sps_vars info used by get_zlegend
In: fsps.pyf:_fsps:unknown_interface:driver:get_zlegend
get_useparameters: no module sps_utils info used by get_zlegend
Block: get_timefull
In: fsps.pyf:_fsps:unknown_interface:driver:get_timefull
get_useparameters: no module sps_vars info used by get_timefull
In: fsps.pyf:_fsps:unknown_interface:driver:get_timefull
get_useparameters: no module sps_utils info used by get_timefull
Block: get_ntfull
In: fsps.pyf:_fsps:unknown_interface:driver:get_ntfull
get_useparameters: no module sps_vars info used by get_ntfull
In: fsps.pyf:_fsps:unknown_interface:driver:get_ntfull
get_useparameters: no module sps_utils info used by get_ntfull
Block: get_nspec
In: fsps.pyf:_fsps:unknown_interface:driver:get_nspec
get_useparameters: no module sps_vars info used by get_nspec
In: fsps.pyf:_fsps:unknown_interface:driver:get_nspec
get_useparameters: no module sps_utils info used by get_nspec
Block: get_nbands
In: fsps.pyf:_fsps:unknown_interface:driver:get_nbands
get_useparameters: no module sps_vars info used by get_nbands
In: fsps.pyf:_fsps:unknown_interface:driver:get_nbands
get_useparameters: no module sps_utils info used by get_nbands
Block: get_nemline
In: fsps.pyf:_fsps:unknown_interface:driver:get_nemline
get_useparameters: no module sps_vars info used by get_nemline
In: fsps.pyf:_fsps:unknown_interface:driver:get_nemline
get_useparameters: no module sps_utils info used by get_nemline
Block: get_emlambda
In: fsps.pyf:_fsps:unknown_interface:driver:get_emlambda
get_useparameters: no module sps_vars info used by get_emlambda
In: fsps.pyf:_fsps:unknown_interface:driver:get_emlambda
get_useparameters: no module sps_utils info used by get_emlambda
Block: get_lambda
In: fsps.pyf:_fsps:unknown_interface:driver:get_lambda
get_useparameters: no module sps_vars info used by get_lambda
In: fsps.pyf:_fsps:unknown_interface:driver:get_lambda
get_useparameters: no module sps_utils info used by get_lambda
Block: get_libraries
In: fsps.pyf:_fsps:unknown_interface:driver:get_libraries
get_useparameters: no module sps_vars info used by get_libraries
In: fsps.pyf:_fsps:unknown_interface:driver:get_libraries
get_useparameters: no module sps_utils info used by get_libraries
Block: get_isochrone_dimensions
In: fsps.pyf:_fsps:unknown_interface:driver:get_isochrone_dimensions
get_useparameters: no module sps_vars info used by get_isochrone_dimensions
In: fsps.pyf:_fsps:unknown_interface:driver:get_isochrone_dimensions
get_useparameters: no module sps_utils info used by get_isochrone_dimensions
Block: get_nmass_isochrone
In: fsps.pyf:_fsps:unknown_interface:driver:get_nmass_isochrone
get_useparameters: no module sps_vars info used by get_nmass_isochrone
In: fsps.pyf:_fsps:unknown_interface:driver:get_nmass_isochrone
get_useparameters: no module sps_utils info used by get_nmass_isochrone
Block: get_stats
In: fsps.pyf:_fsps:unknown_interface:driver:get_stats
get_useparameters: no module sps_vars info used by get_stats
In: fsps.pyf:_fsps:unknown_interface:driver:get_stats
get_useparameters: no module sps_utils info used by get_stats
Block: get_filter_data
In: fsps.pyf:_fsps:unknown_interface:driver:get_filter_data
get_useparameters: no module sps_vars info used by get_filter_data
In: fsps.pyf:_fsps:unknown_interface:driver:get_filter_data
get_useparameters: no module sps_utils info used by get_filter_data
Block: write_isoc
In: fsps.pyf:_fsps:unknown_interface:driver:write_isoc
get_useparameters: no module sps_vars info used by write_isoc
In: fsps.pyf:_fsps:unknown_interface:driver:write_isoc
get_useparameters: no module sps_utils info used by write_isoc
Post-processing (stage 2)...
Block: _fsps
Block: unknown_interface
Block: driver
Block: setup
Block: set_ssp_params
Block: set_csp_params
Block: ssps
Block: ssp
Block: compute_zdep
Block: get_spec
Block: get_mags
Block: interp_ssp
Block: smooth_spectrum
Block: stellar_spectrum
Block: get_ssp_spec
Block: set_sfh_tab
Block: set_ssp_lsf
Block: get_setup_vars
Block: get_nz
Block: get_zlegend
Block: get_timefull
Block: get_ntfull
Block: get_nspec
Block: get_nbands
Block: get_nemline
Block: get_emlambda
Block: get_lambda
Block: get_libraries
Block: get_isochrone_dimensions
Block: get_nmass_isochrone
Block: get_stats
Block: get_filter_data
Block: write_isoc
Building modules...
Building module "_fsps"...
Constructing F90 module support for "driver"...
Variables: is_setup
Constructing wrapper function "driver.setup"...
setup(compute_vega_mags0,vactoair_flag0)
Constructing wrapper function "driver.set_ssp_params"...
set_ssp_params(imf_type0,imf_upper_limit0,imf_lower_limit0,imf1,imf2,imf3,vdmc,mdave,dell,delt,sbss,fbhb,pagb,add_stellar_remnants0,tpagb_norm_type0,add_agb_dust_model0,agb_dust,redgb,masscut,fcstar,evtype,smooth_lsf0)
Constructing wrapper function "driver.set_csp_params"...
set_csp_params(smooth_velocity0,redshift_colors0,compute_light_ages0,nebemlineinspec0,dust_type0,add_dust_emission0,add_neb_emission0,add_neb_continuum0,cloudy_dust0,add_igm_absorption0,zmet,sfh,wgp1,wgp2,wgp3,tau,const_bn,tage,fburst,tburst,dust1,dust2,logzsol,zred,pmetals,dust_clumps,frac_nodust,dust_index,dust_tesc,frac_obrun,uvb,mwr,dust1_index,sf_start,sf_trunc,sf_slope,duste_gamma,duste_umin,duste_qpah,sigma_smooth,min_wave_smooth,max_wave_smooth,gas_logu,gas_logz,igm_factor,fagn,agn_tau)
Constructing wrapper function "driver.ssps"...
ssps()
Constructing wrapper function "driver.ssp"...
ssp(zi)
Constructing wrapper function "driver.compute_zdep"...
compute_zdep(ns,n_age,ztype)
Constructing wrapper function "driver.get_spec"...
spec_out = get_spec(ns,n_age)
Constructing wrapper function "driver.get_mags"...
mags = get_mags(ns,n_age,z_red,mc,[n_bands])
Constructing wrapper function "driver.interp_ssp"...
interp_ssp(zpos,tpos,spec,mass,lbol,[ns])
Constructing wrapper function "driver.smooth_spectrum"...
smooth_spectrum(wave,spec,sigma_broad,minw,maxw,[ns])
Constructing wrapper function "driver.stellar_spectrum"...
stellar_spectrum(mact,logt,lbol,logg,phase,ffco,lmdot,wght,spec_out,[ns])
Constructing wrapper function "driver.get_ssp_spec"...
get_ssp_spec(ssp_spec_out,ssp_mass_out,ssp_lbol_out,[ns,n_age,n_z])
Constructing wrapper function "driver.set_sfh_tab"...
set_sfh_tab(age,sfr,met,[ntab])
Constructing wrapper function "driver.set_ssp_lsf"...
set_ssp_lsf(sigma,wlo,whi,[nsv])
Constructing wrapper function "driver.get_setup_vars"...
cvms,vta_flag = get_setup_vars()
Constructing wrapper function "driver.get_nz"...
n_z = get_nz()
Constructing wrapper function "driver.get_zlegend"...
z_legend = get_zlegend(n_z)
Constructing wrapper function "driver.get_timefull"...
timefull = get_timefull(n_age)
Constructing wrapper function "driver.get_ntfull"...
n_age = get_ntfull()
Constructing wrapper function "driver.get_nspec"...
ns = get_nspec()
Constructing wrapper function "driver.get_nbands"...
nb = get_nbands()
Constructing wrapper function "driver.get_nemline"...
nline = get_nemline()
Constructing wrapper function "driver.get_emlambda"...
em_lambda = get_emlambda(nline)
Constructing wrapper function "driver.get_lambda"...
lambda = get_lambda(ns)
Constructing wrapper function "driver.get_libraries"...
isocname,specname = get_libraries()
Constructing wrapper function "driver.get_isochrone_dimensions"...
n_age,n_mass = get_isochrone_dimensions()
Constructing wrapper function "driver.get_nmass_isochrone"...
nmass = get_nmass_isochrone(zz,tt)
Constructing wrapper function "driver.get_stats"...
age,mass_csp,lbol_csp,sfr,mdust,mformed,emlines = get_stats(n_age,nline)
Constructing wrapper function "driver.get_filter_data"...
wave_eff,mag_vega,mag_sun = get_filter_data(nb)
Constructing wrapper function "driver.write_isoc"...
write_isoc(outfile)
Wrote C/API module "_fsps" to file "/var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/src.macosx-10.7-x86_64-3.6/_fspsmodule.c"
Fortran 90 wrappers are saved to "/var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/src.macosx-10.7-x86_64-3.6/_fsps-f2pywrappers2.f90"
adding '/var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/src.macosx-10.7-x86_64-3.6/fortranobject.c' to sources.
adding '/var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/src.macosx-10.7-x86_64-3.6' to include_dirs.
copying /Users/roedigerj/anaconda/envs/astro/lib/python3.6/site-packages/numpy/f2py/src/fortranobject.c -> /var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/src.macosx-10.7-x86_64-3.6
copying /Users/roedigerj/anaconda/envs/astro/lib/python3.6/site-packages/numpy/f2py/src/fortranobject.h -> /var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/src.macosx-10.7-x86_64-3.6
adding '/var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/src.macosx-10.7-x86_64-3.6/_fsps-f2pywrappers2.f90' to sources.
build_src: building npy-pkg config files
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize Gnu95FCompiler
Found executable /usr/local/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
building '_fsps' extension
compiling C sources
C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/roedigerj/anaconda/envs/astro/include -arch x86_64 -I/Users/roedigerj/anaconda/envs/astro/include -arch x86_64

creating /var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/var
creating /var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/var/folders
creating /var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/var/folders/df
creating /var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp
creating /var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T
creating /var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2
creating /var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/src.macosx-10.7-x86_64-3.6
compile options: '-I/Users/roedigerj/models/fsps_v3.0/src -I/var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/src.macosx-10.7-x86_64-3.6 -I/Users/roedigerj/anaconda/envs/astro/lib/python3.6/site-packages/numpy/core/include -I/Users/roedigerj/anaconda/envs/astro/include/python3.6m -c'
gcc: /var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/src.macosx-10.7-x86_64-3.6/_fspsmodule.c
In file included from /usr/local/lib/gcc/x86_64-apple-darwin13.3.0/5.0.0/include-fixed/syslimits.h:7:0,
from /usr/local/lib/gcc/x86_64-apple-darwin13.3.0/5.0.0/include-fixed/limits.h:34,
from /Users/roedigerj/anaconda/envs/astro/include/python3.6m/Python.h:11,
from /var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/src.macosx-10.7-x86_64-3.6/_fspsmodule.c:18:
/usr/local/lib/gcc/x86_64-apple-darwin13.3.0/5.0.0/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
compilation terminated.
In file included from /usr/local/lib/gcc/x86_64-apple-darwin13.3.0/5.0.0/include-fixed/syslimits.h:7:0,
from /usr/local/lib/gcc/x86_64-apple-darwin13.3.0/5.0.0/include-fixed/limits.h:34,
from /Users/roedigerj/anaconda/envs/astro/include/python3.6m/Python.h:11,
from /var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/src.macosx-10.7-x86_64-3.6/_fspsmodule.c:18:
/usr/local/lib/gcc/x86_64-apple-darwin13.3.0/5.0.0/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
compilation terminated.
error: Command "gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/roedigerj/anaconda/envs/astro/include -arch x86_64 -I/Users/roedigerj/anaconda/envs/astro/include -arch x86_64 -I/Users/roedigerj/models/fsps_v3.0/src -I/var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/src.macosx-10.7-x86_64-3.6 -I/Users/roedigerj/anaconda/envs/astro/lib/python3.6/site-packages/numpy/core/include -I/Users/roedigerj/anaconda/envs/astro/include/python3.6m -c /var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/src.macosx-10.7-x86_64-3.6/_fspsmodule.c -o /var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/var/folders/df/05fvdp1x7235ft9x3f3c3lmw0000gp/T/tmpv7ng2eh2/src.macosx-10.7-x86_64-3.6/_fspsmodule.o" failed with exit status 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.