Skip to content

Commit

Permalink
Merge pull request jeromekelleher#326 from jeromekelleher/bugfix
Browse files Browse the repository at this point in the history
Don't depend on new site metadata
  • Loading branch information
jeromekelleher authored Oct 2, 2024
2 parents 1e8f0df + eb6f64e commit 94386b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sc2ts/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ def _preprocess_sites(self, show_progress):
self.sites_num_missing_samples = np.zeros(self.ts.num_sites, dtype=int)
if self.ts.table_metadata_schemas.site.schema is not None:
for site in self.ts.sites():
self.sites_num_missing_samples[site.id] = site.metadata["missing_samples"]
self.sites_num_missing_samples[site.id] = site.metadata.get("missing_samples", -1)
else:
warnings.warn("Site QC metadata unavailable")

Expand Down

0 comments on commit 94386b2

Please sign in to comment.