Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in retrieving samples #70

Merged
merged 2 commits into from
Jul 18, 2023

Conversation

TolisChal
Copy link
Member

This PR fixes a bug in retrieving the sampled points in functions:

i) generate_steady_states_no_multiphase()
ii) sample_from_polytope_no_multiphase()

Copy link
Member

@vissarion vissarion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only have a comment. Thanks.

@@ -203,6 +203,7 @@ def generate_steady_states_no_multiphase(
P = HPolytope(self._A, self._b)

samples = P.generate_samples(method, n, burn_in, thinning, self._parameters["fast_computations"])
samples = samples.T
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is more clear to call it by a different name than change the "type" and keep the same name. e.g.
samples_T = samples.T

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Done.

@TolisChal TolisChal merged commit f5440b6 into GeomScale:develop Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants