parent
4698e68ce7
commit
2859e531e1
@ -0,0 +1 @@ |
||||
__pycache__ |
@ -0,0 +1,34 @@ |
||||
import pandas as pd |
||||
import numpy as np |
||||
import importer as imp |
||||
import trajectory as tr |
||||
|
||||
|
||||
class SamplePath(): |
||||
|
||||
def __init__(self, files_path): |
||||
self.importer = imp.Importer(files_path) |
||||
self.trajectories = [] |
||||
|
||||
|
||||
def build_trajectories(self): |
||||
self.importer.import_data_from_csv() |
||||
self.importer.merge_value_columns_in_all_frames() |
||||
for data_frame in self.importer.get_data_frames(): |
||||
trajectory = tr.Trajectory(data_frame) |
||||
self.trajectories.append(trajectory) |
||||
self.importer.clear_data_frames() |
||||
|
||||
def get_number_trajectories(self): |
||||
return len(self.trajectories) |
||||
|
||||
|
||||
|
||||
######Veloci Tests####### |
||||
|
||||
s1 = SamplePath("../data") |
||||
s1.build_trajectories() |
||||
print(s1.get_number_trajectories()) |
||||
print(type(s1.trajectories[0].get_trajectory()[0][1])) |
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in new issue