@@ -122,8 +122,8 @@ class MatchResults(collections.abc.Sequence):
122
122
123
123
>>> with scorefile as score_df:
124
124
... x = MatchResult.from_ipc(fout.name, dataset="goodmatch")
125
- ... MatchResults(x).write_scorefiles(directory=foutdir, score_df=score_df)
126
- ... MatchResults(x).write_scorefiles(directory=splitfoutdir, split=True, score_df=score_df)
125
+ ... _ = MatchResults(x).write_scorefiles(directory=foutdir, score_df=score_df)
126
+ ... _ = MatchResults(x).write_scorefiles(directory=splitfoutdir, split=True, score_df=score_df)
127
127
>>> MatchResults(x) # doctest: +ELLIPSIS
128
128
MatchResults([MatchResult(dataset=goodmatch, matchresult=None, ipc_path=...])
129
129
@@ -275,12 +275,14 @@ def write_scorefiles(
275
275
self ._log_OK = check_log_count (scorefile = score_df , summary_log = self .summary_log )
276
276
277
277
plink = PlinkFrames .from_matchresult (self .df )
278
-
278
+ outfs = []
279
279
for frame in plink :
280
- frame .write (directory = directory , split = split , dataset = self .dataset )
280
+ f = frame .write (directory = directory , split = split , dataset = self .dataset )
281
+ outfs .append (f )
281
282
282
283
# collect after joining in check_log_count (can't join df and lazy df)
283
284
self .summary_log = self .summary_log .collect ()
285
+ return outfs
284
286
285
287
def full_variant_log (self , score_df , ** kwargs ):
286
288
"""Generate a log for each variant in a scoring file
0 commit comments