Skip to content
Snippets Groups Projects

Develop marc

Merged Andi Gerken requested to merge develop_marc into master
2 files
+ 31
25
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -19,7 +19,7 @@ import robofish.io
def convertTrajectory(path, save_path, categories):
ar = pd.read_csv(path, sep=";").to_numpy()
new = robofish.io.File(world_size_cm=[100, 100], frequency_hz=20)
new = robofish.io.File(world_size_cm=[100, 100], frequency_hz=25)
# convert x,y from m to cm
ar[:, [0, 1, 3, 4]] = ar[:, [0, 1, 3, 4]] * 100
@@ -37,5 +37,4 @@ def convertTrajectory(path, save_path, categories):
category=categories[1], positions=ar[:, [3, 4]], orientations=ar[:, [5]]
)
new.validate()
new.save(save_path)
new.save_as(save_path)
Loading