Skip to content

Commit

Permalink
Supress userwarning: label 'included' not exported (asreview#24)
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan de Bruin <jonathandebruinos@gmail.com>
  • Loading branch information
gimoAI and J535D165 authored Nov 18, 2022
1 parent 9e499e4 commit c2b5272
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion asreviewcontrib/datatools/stack.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import argparse
import warnings
from pathlib import Path

import pandas as pd
Expand Down Expand Up @@ -30,7 +31,10 @@ def vstack(output_file, input_files):
df_vstacked = pd.concat(list_dfs).reset_index(drop=True)
as_vstacked = ASReviewData(df=df_vstacked)

as_vstacked.to_file(output_file)
# supress warning about certain columns not exported to .ris output
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=UserWarning)
as_vstacked.to_file(output_file)


def _parse_arguments_vstack():
Expand Down

0 comments on commit c2b5272

Please sign in to comment.