Skip to content

Commit

Permalink
Add flatchain property and bump version number
Browse files Browse the repository at this point in the history
  • Loading branch information
arm61 committed Jan 6, 2022
1 parent 35d2568 commit 37b8bed
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ license: MIT
message: "If you use this software, please cite it using these metadata."
repository-code: "https://github.com/arm61/uravu"
title: uravu
version: "1.2.4"
version: "1.2.5"
2 changes: 1 addition & 1 deletion uravu/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MAJOR = 1
MINOR = 2
MICRO = 4
MICRO = 5
__version__ = f'{MAJOR}.{MINOR}.{MICRO}'
7 changes: 7 additions & 0 deletions uravu/relationship.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,13 @@ def nested_sampling_done(self):
return True
return False

@property
def flatchain(self) -> np.ndarray:
"""
:return: Sampling flatchain.
"""
return np.array([i.samples for i in self.variables]).T

def get_sample(self, i):
"""
Return the variable values for a given sample.
Expand Down

0 comments on commit 37b8bed

Please sign in to comment.