You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: GEXF-export.py
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
importmatplotlib.pyplotasplt
5
5
6
6
# --- CONFIG ---
7
-
url=url="https://raw.githubusercontent.com/SingularityNET-Archive/SingularityNET-Archive/refs/heads/main/Data/Snet-Ambassador-Program/Meeting-Summaries/2025/meeting-summaries-array.json"# Replace with your URL
7
+
url="https://raw.githubusercontent.com/SingularityNET-Archive/SingularityNET-Archive/refs/heads/main/Data/Snet-Ambassador-Program/Meeting-Summaries/2025/meeting-summaries-array.json"# Replace with your URL
8
8
output_gexf="all_workgroups_graph_sanitized.gexf"
9
9
10
10
# --- 1. Fetch remote JSON safely ---
@@ -22,6 +22,10 @@
22
22
else:
23
23
raiseException("Unexpected JSON structure; expected dict or list")
24
24
25
+
# --- NEW: Count top-level values ---
26
+
top_level_count=len(workgroups)
27
+
print(f"🔹 Number of top-level workgroup entries: {top_level_count}")
0 commit comments