mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-16 04:23:41 +02:00
fix: covobs names can no longer contain replica separator '|'. Tests
added.
This commit is contained in:
parent
ed47d50286
commit
a324a7f195
3 changed files with 71 additions and 59 deletions
|
@ -32,6 +32,8 @@ class Covobs:
|
|||
raise Exception('Covariance matrix has to be a square matrix!')
|
||||
else:
|
||||
raise Exception('Covariance matrix has to be a 2 dimensional square matrix!')
|
||||
if '|' in name:
|
||||
raise Exception("Covobs name must not contain replica separator '|'.")
|
||||
self.name = name
|
||||
if grad is None:
|
||||
if pos is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue