ScatteringSystem: show particles

Former-commit-id: 3a8397dd3dc1f459df3edd79a8c79d0ed2c4d90b
This commit is contained in:
Marek Nečada 2019-03-03 01:39:10 +00:00
parent 97843e2a3a
commit a71fa23a75
1 changed files with 7 additions and 0 deletions

View File

@ -1338,6 +1338,13 @@ cdef class ScatteringSystem:
def __dealloc__(self): def __dealloc__(self):
qpms_scatsys_free(self.s) qpms_scatsys_free(self.s)
def particles_tmi(self):
r = list()
cdef qpms_ss_pi_t pi
for pi in range(self.s[0].p_count):
r.append(self.s[0].p[pi])
return r
def tlm2uvswfi(t, l, m): def tlm2uvswfi(t, l, m):
''' TODO doc ''' TODO doc
And TODO this should rather be an ufunc. And TODO this should rather be an ufunc.