Skip to content
Snippets Groups Projects
Commit 80718c06 authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Add extractRefData.py

parent 00983e2b
Branches
Tags
2 merge requests!58Develop,!45Resolve "Move references to GUDMAP/RBK"
Pipeline #8095 failed with stages
in 1 minute and 49 seconds
#!/usr/bin/env python3
import argparse
import pandas as pd
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
def main():
refQuery=pd.read_json("refQuery.json")
if refQuery["File_URL"].count() == 1:
print(refQuery["File_URL"].values[0])
else:
raise Exception("Multple references found: \n%s" %
refQuery["RID"])
if __name__ == '__main__':
main()
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment