+ accessions = []
+ uuids = []
+ for i, new_object in to_create:
+ if new_object:
+ accession = new_object.get('accession')
+ uuid = new_object.get('uuid')
+ description = new_object.get('description')
+
+ posted_object = self.post_object_from_row(
+ collection, i, new_object, dry_run, verbose
+ )
+ created.append(posted_object)
+
+ if posted_object:
+ accession = posted_object.get('accession')
+ uuid = posted_object.get('uuid')
+ description = posted_object.get('description')
+
+ accessions.append(accession)
+ uuids.append(uuid)
+
+ LOGGER.info('row {} ({}) -> {}'.format(
+ (i+2), description, accession))
+ # +2 comes from python row index + 1 to convert to
+ # one based indexing + 1 to account for
+ # row removed by header parsing
+ else:
+ accessions.append(numpy.nan)
+ uuids.append(numpy.nan)
+
+ if accession_name in sheet.columns:
+ sheet[accession_name] = accessions
+ if 'uuid' in sheet.columns:
+ sheet['uuid'] = uuids