-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalyze_data.py
42 lines (38 loc) · 1.55 KB
/
analyze_data.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import os
from path import DATA_PATH
import numpy as np
# Import numpy files for faces, groups, and vertices
npy_faces_files = sorted([file for file in os.listdir(DATA_PATH) if file.endswith("faces.npy")])
npy_groups_files = sorted([file for file in os.listdir(DATA_PATH) if file.endswith("groups.npy")])
npy_vertices_files = sorted([file for file in os.listdir(DATA_PATH) if file.endswith("vertices.npy")])
if __name__ == "__main__":
# Definition of areas for Faces
print("----Faces-----")
# Select a sample vector in data
npy_faces_file_path = DATA_PATH / npy_faces_files[0] # Construct the full path using pathlib
somevector = np.load(npy_faces_file_path)
# Print shape of vector
print(somevector.shape)
# Print example vector
print(somevector)
print("----END-----")
# Definition of areas for Vertices
print("----Vertices-----")
# Select a sample vector in data
npy_vertices_file_path = DATA_PATH / npy_vertices_files[0] # Construct the full path using pathlib
somevector = np.load(npy_vertices_file_path)
# Print shape of vector
print(somevector.shape)
# Print example vector
print(somevector)
print("----END-----")
# Definition of areas for Groups
print("----Groups-----")
# Select a sample vector in data
npy_groups_file_path = DATA_PATH / npy_groups_files[0] # Construct the full path using pathlib
somevector = np.load(npy_groups_file_path)
# Print shape of vector
print(somevector.shape)
# Print example vector
print(somevector)
print("----END-----")