tpism_Timeseries.i - pism - [fork] customized build of PISM, the parallel ice sheet model (tillflux branch)
HTML git clone git://src.adamsgaard.dk/pism
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
tpism_Timeseries.i (344B)
---
1 %{
2 #include "util/Timeseries.hh"
3 using pism::Time;
4 using pism::TimeseriesMetadata;
5 %}
6
7 %extend pism::Timeseries
8 {
9 %ignore operator[];
10 double getitem(unsigned int i)
11 {
12 return (*$self)[i];
13 }
14
15 %pythoncode {
16 def __getitem__(self,*args):
17 return self.getitem(*args)
18 }
19 };
20
21 %include "util/Timeseries.hh"