Skip to content

Commit 4837e42

Browse files
astafan8Copilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent d9aa18f commit 4837e42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plottr/apps/autoplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def setDefaults(self, data: DataDictBase) -> None:
377377
super().setDefaults(data)
378378
# qcodes datasets carry their shape in the metadata; when available,
379379
# grid the data using that shape instead of guessing it.
380-
if data.meta_val('qcodes_shape') is not None:
380+
if data.has_meta('qcodes_shape') and data.meta_val('qcodes_shape') is not None:
381381
self.fc.nodes()['Grid'].grid = GridOption.metadataShape, {}
382382

383383
def refreshData(self) -> None:

0 commit comments

Comments
 (0)