1
0
Fork 0

Modify gitignore and SamplePath class

parallel_struct_est
philpMartin 4 years ago
parent 4698e68ce7
commit 2859e531e1
  1. 1
      .gitignore
  2. 34
      main_package/classes/sample_path.py
  3. 1864
      main_package/data/esempio_dataset_2.csv

1
.gitignore vendored

@ -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