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

Add --flow-rate-factor option #35

Merged
merged 3 commits into from
Sep 1, 2023
Merged

Conversation

johannesring
Copy link
Collaborator

This change adds a compute_flow_rate function and a --flow-rate-factor option to fsipy-mesh. The default value is 0.31. The function is copied more or less from VaMPy and maybe this change should be added in VaMPy instead.

@keiyamamo
Copy link
Collaborator

@johannesring - Looks nice! Out of curiosity, where does 0.31 come from ?
@hkjeldsberg - Is this something that might be useful in VaMPy? If so, I think it should go to VaMPy instead.

@hkjeldsberg
Copy link

@keiyamamo this could definitely be useful in VaMPy too. Regarding the value 0.31 I can see that it is currently set to 0.27 in Vampy, but the source of either of these values are vague. I think one or both of them stem from this paper: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2943236/pdf/nihms232282.pdf – See Table 1, VFR_avg for ICA. I could be wrong though. KVS´paper also uses this value (245 ml/min): https://link.springer.com/article/10.1007/s10439-015-1288-5
So I think this value (245) somehow translates into one of the above.

@johannesring
Copy link
Collaborator Author

@keiyamamo - 0.31 is what we have been using in our simulations. @KristianValen-Sendstad can elaborate.
@hkjeldsberg - Ok, I will make a pull request in VaMPy.

@keiyamamo
Copy link
Collaborator

@johannesring @hkjeldsberg Thank you for the explanation!

@KristianValen-Sendstad
Copy link
Collaborator

KristianValen-Sendstad commented Aug 31, 2023 via email

@keiyamamo
Copy link
Collaborator

@KristianValen-Sendstad Thank you for the detailed explanation!

@johannesring johannesring changed the title Add compute_flow_rate function and --flow-rate-factor option Add --flow-rate-factor option Aug 31, 2023
@johannesring
Copy link
Collaborator Author

I have removed the compute_flow_rate function and reverted back to use the one in VaMPY instead. This requires the latest VaMPY from the master branch to work. The --flow-rate-factor is still needed in our code and the default flow rate factor is set to 0.31,

@johannesring
Copy link
Collaborator Author

I see that the test fails because it uses VaMPY from before pull request #120 was merged. It looks like this is because the conda environment is cached and I will try to figure out how to clear the cache.

@johannesring
Copy link
Collaborator Author

I restarted the failing jobs and now they are all green (I didn't have to clear the cache), so I am merging this now.

@johannesring johannesring merged commit 4d67e71 into master Sep 1, 2023
7 checks passed
@johannesring johannesring deleted the johannr/flow-rate-factor branch September 1, 2023 06:15
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.

4 participants