Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ The rules for this file:
* YYYY-MM-DD date format (following ISO 8601)
* accompany each entry with github issue/PR number (Issue #xyz)
-->
## [1.1.4] - unpublished

### Authors
* @orbeckst

### Fixed
* Have cluster.ProcessProtein.reprocess() record "no result" if
the gibbs.Gibbs.process_gibbs() step fails due to insufficient
number of samples. Otherwise `python -m cluster` fails to process
whole proteins.

## [1.1.3] - 2025-09-11

### Authors
Expand Down
17 changes: 15 additions & 2 deletions basicrta/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,22 @@ def _single_residue(self, adir, process=False):
# Total skip interval = g.g * g.gskip, giving niter // (g.g * g.gskip) independent samples
g.gskip = ggskip # process every g.g * g.gskip samples from full chain
g.burnin = self.burnin
g.process_gibbs()
tau = g.estimate_tau()
try:
g.process_gibbs()
except ValueError:
# HACK: triggered when we do not have enough samples for clustering
# TODO: make sure elsewhere that we do not save pickle files
# with insufficient data
# TODO: use a logger and say that we failed for this residue even though
# sampler data was (supposedly) available
result = None
tau = [0, 0, 0]
else:
tau = g.estimate_tau()
else:
tau = g.estimate_tau()
else:
# if the pkl files do not exist
result = None
tau = [0, 0, 0]

Expand Down
Loading