Skip to content

Commit 037eb9e

Browse files
committed
Removed extraneous comments from Python tests
1 parent 206dc3a commit 037eb9e

3 files changed

Lines changed: 5 additions & 14 deletions

File tree

apis/python/tests/test_delete.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def test_delete_samples(tmp_path, stats_v3_dataset, stats_sample_names):
4545
assert "fifth" in stats_sample_names
4646
assert "third" in stats_sample_names
4747
ds = tiledbvcf.Dataset(uri=os.path.join(tmp_path, "stats_test"), mode="w")
48-
# tiledbvcf.config_logging("trace")
4948
ds.delete_samples(["second", "fifth"])
5049
ds = tiledbvcf.Dataset(uri=os.path.join(tmp_path, "stats_test"), mode="r")
5150
sample_names = ds.samples()

apis/python/tests/test_formats.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ def test_flag_export(tmp_path):
8282
@pytest.mark.parametrize("use_arrow", [False, True], ids=["pandas", "arrow"])
8383
def test_bed_filestore(tmp_path, v4_dataset, use_arrow):
8484
"""Verify reading with a BED file stored as a TileDB Filestore."""
85-
# tiledbvcf.config_logging("debug")
86-
85+
# Expected DataFrame
8786
expected_df = pd.DataFrame(
8887
{
8988
"sample_name": pd.Series(

apis/python/tests/test_ingest.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def test_ingestion_tasks(tmp_path):
6969
if platform.system() != "Linux":
7070
return
7171

72-
# query allele_count array with TileDB
72+
# Query allele_count array with TileDB
7373
ac_uri = tiledb.Group(uri)["allele_count"].uri
7474

7575
skip_if_incompatible(ac_uri)
@@ -83,7 +83,7 @@ def test_ingestion_tasks(tmp_path):
8383
assert df["alt"].array == "C"
8484
assert df["count"].array == 1
8585

86-
# query variant_stats array with TileDB
86+
# Query variant_stats array with TileDB
8787
vs_uri = tiledb.Group(uri)["variant_stats"].uri
8888

8989
contig = "1"
@@ -263,15 +263,14 @@ def test_ingest_merging(tmp_path):
263263

264264
def test_ingest_mode_merged(tmp_path):
265265
"""Verify contig_mode='merged' ingests only pseudo-contigs."""
266-
# tiledbvcf.config_logging("debug")
267266
# Create the dataset
268267
uri = os.path.join(tmp_path, "dataset_merging")
269268
ds = tiledbvcf.Dataset(uri, mode="w")
270269
samples = [
271270
os.path.join(TESTS_INPUT_DIR, s) for s in ["v2-DjrIAzkP-downsampled.vcf.gz"]
272271
]
273272
ds.create_dataset()
274-
# ingest only merged contigs (pseudo-contigs)
273+
# Ingest only merged contigs (pseudo-contigs)
275274
ds.ingest_samples(samples, contig_mode="merged")
276275

277276
# Open it back in read mode and check some queries
@@ -283,12 +282,10 @@ def test_ingest_mode_merged(tmp_path):
283282
@skip_if_no_bcftools
284283
def test_ingest_with_stats_v2(tmp_path, bgzip_and_index_vcfs):
285284
"""Verify ingestion with v2 stats, AF filtering, scan_all_samples, and allele counts."""
286-
# tiledbvcf.config_logging("debug")
287285
shutil.copytree(
288286
os.path.join(TESTS_INPUT_DIR, "stats"), os.path.join(tmp_path, "stats")
289287
)
290288
bgzipped_inputs = bgzip_and_index_vcfs(os.path.join(tmp_path, "stats"))
291-
# tiledbvcf.config_logging("trace")
292289
ds = tiledbvcf.Dataset(uri=os.path.join(tmp_path, "stats_test"), mode="w")
293290
ds.create_dataset(enable_variant_stats=True, enable_allele_count=True)
294291
ds.ingest_samples(bgzipped_inputs)
@@ -337,15 +334,13 @@ def test_ingest_with_stats_v2(tmp_path, bgzip_and_index_vcfs):
337334
assert sum(df["count"] == (8, 5, 3, 4, 2, 2, 1)) == 7
338335

339336

340-
# Ok to skip is missing bcftools in Windows CI job
341337
@skip_if_no_bcftools
342338
def test_ingest_polyploid(tmp_path, bgzip_and_index_vcfs):
343339
"""Smoke Test: Verify ingestion and AF filtering on polyploid VCF data."""
344340
shutil.copytree(
345341
os.path.join(TESTS_INPUT_DIR, "polyploid"), os.path.join(tmp_path, "polyploid")
346342
)
347343
bgzipped_inputs = bgzip_and_index_vcfs(os.path.join(tmp_path, "polyploid"))
348-
# tiledbvcf.config_logging("trace")
349344
ds = tiledbvcf.Dataset(uri=os.path.join(tmp_path, "polyploid_test"), mode="w")
350345
ds.create_dataset(enable_variant_stats=True)
351346
ds.ingest_samples(bgzipped_inputs)
@@ -356,20 +351,18 @@ def test_ingest_polyploid(tmp_path, bgzip_and_index_vcfs):
356351
attrs=["contig", "pos_start", "id", "qual", "info_TILEDB_IAF", "sample_name"],
357352
set_af_filter="<0.8",
358353
)
359-
# print(data_frame)
360354

361355

362356
def test_ingest_mode_separate(tmp_path):
363357
"""Verify contig_mode='separate' ingests only non-merged contigs."""
364-
# tiledbvcf.config_logging("debug")
365358
# Create the dataset
366359
uri = os.path.join(tmp_path, "dataset_merging")
367360
ds = tiledbvcf.Dataset(uri, mode="w")
368361
samples = [
369362
os.path.join(TESTS_INPUT_DIR, s) for s in ["v2-DjrIAzkP-downsampled.vcf.gz"]
370363
]
371364
ds.create_dataset()
372-
# ingest only merged contigs (pseudo-contigs)
365+
# Ingest only merged contigs (pseudo-contigs)
373366
ds.ingest_samples(
374367
samples, contigs_to_keep_separate=["chr1"], contig_mode="separate"
375368
)

0 commit comments

Comments
 (0)