cofdb_submit/main.py
def mint_cof_id(paper_id, charge, dimensionality):
    """Check the list of CURATED-COF IDs and assign a new one accordingly."""

    frameworks_df = get_frameworks_df()
    other_cofs = [ id for id in frameworks_df["CURATED-COFs ID"] if id.startswith(paper_id[1:])]
    counter = len(other_cofs)
    return "{paper}{counter}{charge}{dim}".format(paper=paper_id[1:], counter=str(counter), charge=charge,
                                                  dim=dimensionality)
Check the list of CURATED-COF IDs and assign a new one accordingly.
Check the list of CURATED-COF IDs and assign a new one accordingly.
Check the list of CURATED - COF IDs and assign a new one accordingly .
def mint_cof_id(paper_id, charge, dimensionality):
    frameworks_df = get_frameworks_df()
    other_cofs = [ id for id in frameworks_df["CURATED-COFs ID"] if id.startswith(paper_id[1:])]
    counter = len(other_cofs)
    return "{paper}{counter}{charge}{dim}".format(paper=paper_id[1:], counter=str(counter), charge=charge,
                                                  dim=dimensionality)
def mint_cof_id ( paper_id , charge , dimensionality ) : frameworks_df = get_frameworks_df ( ) other_cofs = [ id for id in frameworks_df [ "CURATED-COFs ID" ] if id . startswith ( paper_id [ 1 : ] ) ] counter = len ( other_cofs ) return "{paper}{counter}{charge}{dim}" . format ( paper = paper_id [ 1 : ] , counter = str ( counter ) , charge = charge , dim = dimensionality )
Check the list of CURATED-COF IDs and assign a new one accordingly.
Check the list of CURATED - COF IDs and assign a new one accordingly .
"""Check the list of CURATED-COF IDs and assign a new one accordingly."""
paper_id
charge
dimensionality