Skip to content

Commit afd9416

Browse files
committed
Merge branch 'master' of https://github.com/EMPD2/EMPD-data into empd1
2 parents c8f2f99 + 59854ff commit afd9416

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

postgres/scripts/import_into_empd2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,9 @@ def clean_doi(doi):
401401
res = cursor.fetchall()
402402
TAXON_ID = (res[0][0] or 0) + 1
403403

404-
for samplename in METADATA.SampleName:
404+
# TODO: Updating samples is not yet supported!
405+
for samplename in filter(lambda s: s not in existing_samples,
406+
METADATA.SampleName):
405407
COUNTS = pd.read_csv(os.path.join(samples_dir, samplename + '.tsv'),
406408
sep='\t')
407409
for x, row in COUNTS.iterrows():

0 commit comments

Comments
 (0)