Skip to content

Commit 59854ff

Browse files
committed
Do not update p_counts with existing data
1 parent c231f25 commit 59854ff

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)