Skip to content

Commit d7eaf9f

Browse files
committed
Fix US authority edges with detailed_crossrefs
1 parent 5158772 commit d7eaf9f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

__main__.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,11 @@ def get_subseqitem_conf(subseqitems):
202202
"--snapshot 2001"
203203
)
204204

205+
if detailed_crossreferences and regulations:
206+
raise Exception(
207+
"Combining detailed cross-references and regulations is not tested."
208+
)
209+
205210
if "prepare_input" in steps:
206211
if dataset == "us":
207212
if regulations:
@@ -360,10 +365,11 @@ def get_subseqitem_conf(subseqitems):
360365
items = step.get_items(overwrite, snapshots)
361366
step.execute_items(items)
362367
elif dataset == "us" and regulations:
368+
assert not detailed_crossreferences
363369
step = UsAuthorityEdgelist(
364370
detailed_crossreferences=detailed_crossreferences,
365-
processes=processes,
366-
regulations=regulations
371+
processes=processes,
372+
regulations=regulations,
367373
)
368374
items = step.get_items(overwrite, snapshots)
369375
step.execute_items(items)

0 commit comments

Comments
 (0)