|
|
@@ -3,15 +3,7 @@ import json
|
|
|
import sys
|
|
|
from datetime import datetime
|
|
|
import matplotlib.pyplot as plt
|
|
|
-
|
|
|
-def import_array(filename):
|
|
|
- # Load the JSON file
|
|
|
- with open(filename, 'r') as f:
|
|
|
- data = json.load(f)
|
|
|
-
|
|
|
- # Access the "messages" array
|
|
|
- array = data['messages']
|
|
|
- return array
|
|
|
+from outils import import_array
|
|
|
|
|
|
def create_hist(messages):
|
|
|
# Initialize the dict in which we'll store the
|