Skip to content

Commit 4264cd6

Browse files
authored
Merge pull request #2 from QuantLaw/beckedorf-patch-1
Fix US authority edges with detailed_crossrefs
2 parents c5462ba + d7eaf9f commit 4264cd6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

__main__.py

Lines changed: 11 additions & 1 deletion
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,7 +365,12 @@ def get_subseqitem_conf(subseqitems):
360365
items = step.get_items(overwrite, snapshots)
361366
step.execute_items(items)
362367
elif dataset == "us" and regulations:
363-
step = UsAuthorityEdgelist(processes=processes, regulations=regulations)
368+
assert not detailed_crossreferences
369+
step = UsAuthorityEdgelist(
370+
detailed_crossreferences=detailed_crossreferences,
371+
processes=processes,
372+
regulations=regulations,
373+
)
364374
items = step.get_items(overwrite, snapshots)
365375
step.execute_items(items)
366376
print("Create authority edgelist: done")

0 commit comments

Comments
 (0)