cofdb_submit/main.py
def info_dict(self):
        """Dictionary containing all the information assigned (automatically or manually) for the new COF."""
        if self.inp_source.value == "CSD":
            source = "CSD, {}".format(self.inp_csd.value)
        else:
            source = self.inp_source.value
        return {
            'cof_id': self.inp_cof_id.value,
            'source': source,
            'name': self.inp_name.value,
            'dimensionality': self.inp_dimensionality.value,
            'elements': self.inp_elements.value,
            'modifications': self.inp_modifications.value,
            'charge': self.inp_charge.value,
        }
Dictionary containing all the information assigned (automatically or manually) for the new COF.
Dictionary containing all the information assigned (automatically or manually) for the new COF.
Dictionary containing all the information assigned ( automatically or manually ) for the new COF .
def info_dict(self):
        if self.inp_source.value == "CSD":
            source = "CSD, {}".format(self.inp_csd.value)
        else:
            source = self.inp_source.value
        return {
            'cof_id': self.inp_cof_id.value,
            'source': source,
            'name': self.inp_name.value,
            'dimensionality': self.inp_dimensionality.value,
            'elements': self.inp_elements.value,
            'modifications': self.inp_modifications.value,
            'charge': self.inp_charge.value,
        }
def info_dict ( self ) : if self . inp_source . value == "CSD" : source = "CSD, {}" . format ( self . inp_csd . value ) else : source = self . inp_source . value return { 'cof_id' : self . inp_cof_id . value , 'source' : source , 'name' : self . inp_name . value , 'dimensionality' : self . inp_dimensionality . value , 'elements' : self . inp_elements . value , 'modifications' : self . inp_modifications . value , 'charge' : self . inp_charge . value , }
Dictionary containing all the information assigned (automatically or manually) for the new COF.
Dictionary containing all the information assigned ( automatically or manually ) for the new COF .
"""Dictionary containing all the information assigned (automatically or manually) for the new COF."""
self