Describe the bug
The TsDB object fails to calculate common path for time series located on different drives (different drive letters). This is key to automatically create readable labels when plotting the time series, PSDs etc.
To Reproduce
Steps to reproduce the behavior:
Load two time series files located on different drives (different drive letters)
db = TsDB()
db.load('G:\....')
db.load('C:\....')
Check common path of timeseries using db.common or list all paths using db.list()
See error
Expected behavior
In the case where the time series are on different drives the common path should be an empty string.
Screenshots
Desktop (please complete the following information):
OS: Windows 10
Version: 4.9.2
Additional context
I propose to catch the ValueError raised in TsDB.common if paths contain both absolute and relative pathnames, the paths are on the different drives or if paths is empty. And return an empty string "".
Describe the bug The
TsDB
object fails to calculate common path for time series located on different drives (different drive letters). This is key to automatically create readable labels when plotting the time series, PSDs etc.To Reproduce Steps to reproduce the behavior:
db.common
or list all paths usingdb.list()
Expected behavior In the case where the time series are on different drives the common path should be an empty string.
Screenshots
Desktop (please complete the following information):
Additional context I propose to catch the ValueError raised in
TsDB.common
if paths contain both absolute and relative pathnames, the paths are on the different drives or if paths is empty. And return an empty string "".