diff --git a/docs/pyerrors/obs.html b/docs/pyerrors/obs.html
index b11b6d11..66b95288 100644
--- a/docs/pyerrors/obs.html
+++ b/docs/pyerrors/obs.html
@@ -400,8 +400,10 @@
if idl is not None:
if len(idl) != len(names):
raise Exception('Length of idl incompatible with samples and names.')
- if len(names) != len(set(names)):
- raise Exception('names are not unique.')
+ name_length = len(names)
+ if name_length > 1:
+ if name_length != len(set(names)):
+ raise Exception('names are not unique.')
if not all(isinstance(x, str) for x in names):
raise TypeError('All names have to be strings.')
if min(len(x) for x in samples) <= 4:
@@ -2099,8 +2101,10 @@
if idl is not None:
if len(idl) != len(names):
raise Exception('Length of idl incompatible with samples and names.')
- if len(names) != len(set(names)):
- raise Exception('names are not unique.')
+ name_length = len(names)
+ if name_length > 1:
+ if name_length != len(set(names)):
+ raise Exception('names are not unique.')
if not all(isinstance(x, str) for x in names):
raise TypeError('All names have to be strings.')
if min(len(x) for x in samples) <= 4:
@@ -2892,8 +2896,10 @@ this overwrites the standard value for that ensemble.
if idl is not None:
if len(idl) != len(names):
raise Exception('Length of idl incompatible with samples and names.')
- if len(names) != len(set(names)):
- raise Exception('names are not unique.')
+ name_length = len(names)
+ if name_length > 1:
+ if name_length != len(set(names)):
+ raise Exception('names are not unique.')
if not all(isinstance(x, str) for x in names):
raise TypeError('All names have to be strings.')
if min(len(x) for x in samples) <= 4: