Skip to content

Commit 813ec2a

Browse files
authored
Update utils
1 parent 4db0225 commit 813ec2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

baro/utility.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import requests
55
import json
66
import zipfile
7-
from os.path import join, basename, dirname
7+
from os.path import join, basename, dirname, exists
88

99
import numpy as np
1010
from tqdm import tqdm
@@ -178,7 +178,7 @@ def read_data(data_path, strip=True):
178178
}
179179
)
180180

181-
if strip is True:
181+
if strip is True and exists(join(data_dir, "inject_time.txt")):
182182
# cut the data into 10 mins
183183
data_length = 300
184184
with open(join(data_dir, "inject_time.txt")) as f:

0 commit comments

Comments
 (0)