MCPcopy Create free account
hub / github.com/TimSchell98/PyWorld3-03 / __init__

Method __init__

pyworld3/population.py:232–241  ·  view source on GitHub ↗
(self, year_min=1900, year_max=1975, dt=1, iphst=1940,
                 verbose=False)

Source from the content-addressed store, hash-verified

230 """
231
232 def __init__(self, year_min=1900, year_max=1975, dt=1, iphst=1940,
233 verbose=False):
234 self.iphst = iphst
235 self.dt = dt
236 self.year_min = year_min
237 self.year_max = year_max
238 self.verbose = verbose
239 self.length = self.year_max - self.year_min
240 self.n = int(self.length / self.dt)
241 self.time = np.arange(self.year_min, self.year_max, self.dt)
242
243 def init_population_constants(self, p1i=65e7, p2i=70e7, p3i=19e7, p4i=6e7,
244 dcfsn=3.8, fcest=4000, hsid=20, ieat=3, len=28,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected