moved data files to separate folder

This commit is contained in:
Louis Heredero 2024-04-17 17:57:16 +02:00
parent 452f6ad041
commit 7c3700168a
Signed by: HEL
GPG Key ID: 8D83DE470F8544E7
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -160,3 +160,4 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder. # option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/ #.idea/
data/

View File

@ -108,7 +108,7 @@ if __name__ == '__main__':
(Vec2(7.001849, 46.216559), "Saint-Maurice", "right") (Vec2(7.001849, 46.216559), "Saint-Maurice", "right")
] ]
data = GPSLoader.load_data(f"{name}.csv") data = GPSLoader.load_data(f"data/{name}.csv")
speeds = list(map(lambda s: s.convert(Unit.KM_H).value, data["speeds"])) speeds = list(map(lambda s: s.convert(Unit.KM_H).value, data["speeds"]))
path = Path(data["points"], speeds) path = Path(data["points"], speeds)