alex #1

Merged
awendt merged 5 commits from alex into master 2023-01-13 15:04:26 +00:00
Showing only changes of commit 5ccf6b8d79 - Show all commits

25
code/behavior.py Normal file
View File

@ -0,0 +1,25 @@
from pathlib import Path
awendt marked this conversation as resolved
Review

please sort your imports

please sort your imports
import os
import numpy as np
from IPython import embed
from pandas import read_csv
class Behavior:
def __init__(self, datapath: str):
csv_file = str(sorted(Path(datapath).glob('**/*.csv'))[0])
self.dataframe = read_csv(csv_file, delimiter=',')
embed()
def main(datapath:str):
behavior = Behavior(datapath)
if __name__ == '__main__':
# Path to the data
datapath = '../data/mount_data/2020-03-13-10_00/'
main(datapath)