Skip to content

Commit 7bcf40e

Browse files
committed
Debug
1 parent c445365 commit 7bcf40e

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

src/dartsort/cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def dartsort_cli():
4545
cli_util.dataclass_to_argparse(
4646
config.DeveloperConfig,
4747
parser=dev_args,
48-
prefix="_",
4948
skipnames=cli_util.fieldnames(config.DARTsortUserConfig),
5049
)
5150

src/dartsort/peel/peel_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ def check_resuming(self, output_hdf5_filename, overwrite=False):
650650
exists = output_hdf5_filename.exists()
651651
last_chunk_start = -1
652652
if exists and not overwrite:
653-
with h5py.File(output_hdf5_filename, "r") as h5:
653+
with h5py.File(output_hdf5_filename, "r", locking=False) as h5:
654654
last_chunk_start = h5["last_chunk_start"][()]
655655
return last_chunk_start
656656

src/dartsort/util/internal_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ class RefinementConfig:
338338
# if None, switches to bimodality
339339
merge_criterion_threshold: float | None = 0.0
340340
merge_criterion: Literal[
341-
"heldout_loglik", "heldout_ccl", "loglik", "ccl", "aic", "bic", "icl"
341+
"heldout_loglik", "heldout_ccl", "loglik", "ccl", "aic", "bic", "icl", "bimodality"
342342
] = "heldout_ccl"
343343
merge_bimodality_threshold: float = 0.05
344344
em_converged_prop: float = 0.02

src/dartsort/util/noise_util.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,9 @@ def marginal_covariance(
432432
if device is not None and device != res.device:
433433
res = res.to(device)
434434
self.cache[cache_key] = res
435+
# TODO: why is this necessary? I thought that calling solve would cache this.
436+
if not hasattr(res, '_memoize_cache'):
437+
res.cholesky()
435438
return res
436439
if channels is None or channels == slice(None):
437440
if self._full_cov is None:

0 commit comments

Comments
 (0)