Small changes in looper.
epsi-builds/msspec_python3/pipeline/head This commit looks good Details

This commit is contained in:
Sylvain Tricot 2021-06-24 09:13:47 +02:00
parent 605f3fda0e
commit 1899020178
1 changed files with 6 additions and 5 deletions

View File

@ -168,7 +168,7 @@ class SweepRange:
class Looper: class Looper:
def __init__(self): def __init__(self):
pass self.data = None
@property @property
def pipeline(self): def pipeline(self):
@ -235,6 +235,7 @@ class Looper:
df = pd.DataFrame(dfdata, columns=columns) df = pd.DataFrame(dfdata, columns=columns)
self.data = df
return df return df
@ -284,4 +285,4 @@ if __name__ == "__main__":
data = looper.run(emitter, emitter_plane, uij, theta, levels, ncpu=1, data = looper.run(emitter, emitter_plane, uij, theta, levels, ncpu=1,
passindex=True) passindex=True)
print(data) print(data[data.emitter_plane.eq(0)].theta.unique())