Compare commits
2 Commits
514ed1aa32
...
14ab3d9dfe
Author | SHA1 | Date |
---|---|---|
Anne de Jong | 14ab3d9dfe | |
Anne de Jong | 695a05b262 |
|
@ -5,7 +5,7 @@ requires-python = ">=3.10"
|
|||
description = "Library for Acoustic Signal Processing"
|
||||
license = { "file" = "LICENSE" }
|
||||
authors = [{ "name" = "J.A. de Jong", "email" = "j.a.dejong@ascee.nl" }]
|
||||
version = "1.3.0"
|
||||
version = "1.3.1"
|
||||
|
||||
keywords = ["DSP", "DAQ", "Signal processing"]
|
||||
|
||||
|
|
|
@ -986,7 +986,13 @@ class Measurement:
|
|||
"""
|
||||
# See if the base part of the filename is referring to a file that is already open
|
||||
with h5.File(fn, 'r') as f:
|
||||
uuid = f.attrs['UUID']
|
||||
try:
|
||||
uuid = f.attrs['UUID']
|
||||
except AttributeError:
|
||||
# No UUID stored in measurement. This is an old measurement that did not have UUID's
|
||||
# We create a new UUID here such that the file is opened from the filesystem
|
||||
# anyhow.
|
||||
uuid = str(uuid.uuid1())
|
||||
|
||||
if uuid in Measurement.uuid_s.keys():
|
||||
return Measurement.uuid_s[uuid]
|
||||
|
|
Loading…
Reference in New Issue