py4sci

This Page

population – Creates/stores a population

class population.Population
Population.__init__([pDistType, radialDistType, lumDistType, pmean, psigma, simean, sisigma, lummean, lumsigma, zscale, electronModel, gpsFrac, gpsA, brokenFrac, brokenSI, ref_freq])

Initialise the population object

Population.__str__()

Defines how the operation print Population is performed

Population.size()

Returns the number of pulsars in the population object

Population.join(poplist)

Joins each of the populations in list poplist to the current population

Population.write(outf)

Uses cPickle to dump the population to file outf

Population.write_asc(outf)

Writes the population to an ascii file in the old psrpop way