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

Change default value in code #2060

Merged
merged 2 commits into from
Jan 18, 2022
Merged

Conversation

msevestre
Copy link
Member

This needs to be changed in the DB but I cna't do this until we merge the Urine stuff

@msevestre msevestre requested a review from Yuri05 January 18, 2022 12:47
@@ -35,15 +35,15 @@ public override IndividualMolecule AddMoleculeTo(ISimulationSubject simulationSu

AddGlobalExpression(molecule,
RelExpParam(REL_EXP_BLOOD_CELLS),
FractionParam(FRACTION_EXPRESSED_BLOOD_CELLS, CoreConstants.Rate.ZERO_RATE),
FractionParam(FRACTION_EXPRESSED_BLOOD_CELLS, CoreConstants.Rate.ONE_RATE),
Copy link
Member Author

Choose a reason for hiding this comment

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

We are not using the DB For this. I would love to update that to make sure we are relying only one one source of truth. I might get a stab at it in the next PR

Base automatically changed from 2039-red-blood-cells to develop January 18, 2022 15:53
@Yuri05
Copy link
Member

Yuri05 commented Jan 18, 2022

conflicts...

@msevestre
Copy link
Member Author

ok no problem

@msevestre
Copy link
Member Author

I need to fix in the DB as well

@msevestre msevestre force-pushed the 2053-default-value-fraction-expressed branch from 48d2c9b to e0b4cd9 Compare January 18, 2022 21:26
@@ -54899,8 +54899,8 @@ INSERT INTO tab_container_parameter_rates VALUES(5011,'GENERAL','MoleculePropert
INSERT INTO tab_container_parameter_rates VALUES(1678,'COMPOUND','DRUG','Enable supersaturation','CompoundCommon','Zero_Rate',0.0,1,1.0,1,NULL);
INSERT INTO tab_container_parameter_rates VALUES(5015,'GENERAL','PROTEIN','Fraction expressed on tissue-side membrane of vascular endothelium','ExpressionParameters','PARAM_f_exp_vasc_tissue_side',0.0,1,1.0,1,NULL);
INSERT INTO tab_container_parameter_rates VALUES(5015,'GENERAL','PROTEIN','Fraction expressed on plasma-side membrane of vascular endothelium','ExpressionParameters','Zero_Rate',0.0,1,1.0,1,NULL);
INSERT INTO tab_container_parameter_rates VALUES(5015,'GENERAL','PROTEIN','Fraction expressed in blood cells','ExpressionParameters','Zero_Rate',0.0,1,1.0,1,NULL);
INSERT INTO tab_container_parameter_rates VALUES(5015,'GENERAL','PROTEIN','Fraction expressed in endosomes','ExpressionParameters','Zero_Rate',0.0,1,1.0,1,NULL);
INSERT INTO tab_container_parameter_rates VALUES(5015,'GENERAL','PROTEIN','Fraction expressed in blood cells','ExpressionParameters','One_Rate',0.0,1,1.0,1,NULL);
Copy link
Member Author

Choose a reason for hiding this comment

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

One rate here. But it's not used since it's all read from the code. I am going to tackle that tomorrow. It won't be all good, but at least we won't duplicate all info like this

Copy link
Member Author

@msevestre msevestre left a comment

Choose a reason for hiding this comment

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

Ready to merge

@msevestre msevestre merged commit 28334fd into develop Jan 18, 2022
@msevestre msevestre deleted the 2053-default-value-fraction-expressed branch January 18, 2022 22:30
@msevestre
Copy link
Member Author

Boom

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