Skip to content

Commit

Permalink
narrative matching: support for formatting structural blocks results
Browse files Browse the repository at this point in the history
  • Loading branch information
Aethor committed Mar 10, 2024
1 parent 16abe9c commit 97e1619
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/matching/plot/format_structural_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
action="store_true",
help="if specified, use cumulative results",
)
parser.add_argument(
"-b", "--blocks", action="store_true"
)
args = parser.parse_args()

dfs_dict = {}
Expand All @@ -31,6 +34,8 @@
path = (
f"{root_dir}/out/matching/plot/{medias}_structural_cumulative/df.pickle"
)
if args.blocks:
path = f"{root_dir}/out/matching/plot/{medias}_structural_blocks/df.pickle"
with open(path, "rb") as f:
df = pickle.load(f)
df = df.loc[
Expand Down

0 comments on commit 97e1619

Please sign in to comment.