cofdb_submit/main.py
def mint_framework_id(self, event):
        """Get the paper id, and warn if not paper info is given."""
        if not inp_paper_id.value:
            self.inp_cof_id.value = "ERROR: add DOI of the paper first."
            return
        # Remove "(already present)" if present
        paper_id = inp_paper_id.value.split()[0]
        self.inp_cof_id.value = mint_cof_id(paper_id, self.inp_charge.value, self.inp_dimensionality.value[0])
Get the paper id, and warn if not paper info is given.
Get the paper id, and warn if not paper info is given.
Get the paper id and warn if not paper info is given .
def mint_framework_id(self, event):
        if not inp_paper_id.value:
            self.inp_cof_id.value = "ERROR: add DOI of the paper first."
            return
        paper_id = inp_paper_id.value.split()[0]
        self.inp_cof_id.value = mint_cof_id(paper_id, self.inp_charge.value, self.inp_dimensionality.value[0])
def mint_framework_id ( self , event ) : if not inp_paper_id . value : self . inp_cof_id . value = "ERROR: add DOI of the paper first." return paper_id = inp_paper_id . value . split ( ) [ 0 ] self . inp_cof_id . value = mint_cof_id ( paper_id , self . inp_charge . value , self . inp_dimensionality . value [ 0 ] )
Get the paper id, and warn if not paper info is given.
Get the paper id and warn if not paper info is given .
"""Get the paper id, and warn if not paper info is given.""" # Remove "(already present)" if present
self
event