File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ def main():
32
32
from nanoplot .filteroptions import filter_and_transform_data
33
33
from nanoplotter .plot import Plot
34
34
utils .make_output_dir (args .outdir )
35
+ import pickle
35
36
utils .init_logs (args )
36
37
# args.format = nanoplotter.check_valid_format(args.format)
37
38
if args .pickle :
38
- import pickle
39
39
datadf = pickle .load (open (args .pickle , "rb" ))
40
40
elif args .feather :
41
41
from nanoget import combine_dfs
@@ -157,7 +157,7 @@ def make_plots(datadf, settings):
157
157
plotdict_legacy = {}
158
158
plots = []
159
159
160
- subdf = utils .subsample_datasets (datadf )
160
+ subdf = utils .subsample_datasets (datadf ) if "start_time" in datadf else None
161
161
if settings ["N50" ]:
162
162
n50 = nanomath .get_N50 (np .sort (datadf ["lengths" ]))
163
163
else :
You can’t perform that action at this time.
0 commit comments