Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Mikhail Astafev <[email protected]>
  • Loading branch information
jenshnielsen and astafan8 authored Feb 1, 2024
1 parent 0d0ea2c commit 9ad966e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/qcodes/dataset/data_set_in_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ def _set_cache_from_netcdf(cls, ds: DataSetInMem, xr_path: Path | None) -> bool:
if xr_path is not None and xr_path.is_file():
ds._cache = DataSetCacheDeferred(ds, xr_path)
elif xr_path is not None and not xr_path.is_file():
success = False
warnings.warn(
"Could not load raw data for dataset with guid : {ds.guid} from location {xr_path}"
)
Expand Down

0 comments on commit 9ad966e

Please sign in to comment.