Skip to content

sensitivity analysis branch#1913

Draft
JoeWaddell wants to merge 93 commits intodevfrom
sobol
Draft

sensitivity analysis branch#1913
JoeWaddell wants to merge 93 commits intodevfrom
sobol

Conversation

@JoeWaddell
Copy link
Collaborator

@JoeWaddell JoeWaddell commented Aug 10, 2024

Context

Issue(s) closed by this pull request: closes #

How big are the changes in the PR? Would you nominate it for a major version upgrade?

  • Yes
  • No

What

Why

How

Test plan

Copy link
Contributor

Choose a reason for hiding this comment

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

not the kind of input you are asking for, but this seems like a tight boundary. I'd expand to at least 400, probably even 440, as the upper bound

Copy link
Contributor

Choose a reason for hiding this comment

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

and this one is a little aggressively low - tighten up a bit. 200-230 is probably the set of bounds you want here.

Copy link
Contributor

Choose a reason for hiding this comment

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

is this one in here twice?

Copy link
Contributor

Choose a reason for hiding this comment

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

why include this one if you are running conventional semen instead of sexed?

Copy link
Contributor

Choose a reason for hiding this comment

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

1?! wowie you are very optimistic haha. maybe 0.6 would be a better upper limit, or 0.7 if you really want to push it in the adult herd.

Copy link
Contributor

Choose a reason for hiding this comment

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

probably reasonable to expand this to 30

Copy link
Contributor

Choose a reason for hiding this comment

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

28 to 40 would be better

Copy link
Contributor

Choose a reason for hiding this comment

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

why keep these so small? don't they impact nutrient requirements of the cows? some cows walk 0.25-0.5 miles to the parlor on dry lot dairies

Copy link
Contributor

Choose a reason for hiding this comment

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

hehe, I wondered what ME was :) makes perfect sense now!

Copy link
Collaborator

Choose a reason for hiding this comment

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

If there's no linked issue to this, either the issue should be created or the comment should be deleted.

Comment on lines +724 to +725
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you're trying to catch division by zero error here. that could be more specific in the except statement.

Comment on lines +21 to +23
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a particular reason for leaving this here?

Comment on lines +36 to +39
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
intnames = [str(x).replace("(", "") for x in intnames]
intnames = [str(x).replace(")", "") for x in intnames]
intnames = [str(x).replace(",", "*") for x in intnames]
intnames = [str(x).replace(" ", "") for x in intnames]
trans_table = str.maketrans({"(": "", ")": "", ",": "*", " ": ""})
intnames = [str(x).translate(trans_table) for x in intnames]

Comment on lines +80 to +82
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# print(a)
for i in a:
# print(i)
for i in a:

Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
pass

Copy link
Collaborator

Choose a reason for hiding this comment

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

Using str.startwith() is a lot safer to check if it actually starts with a particular pattern.

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.

5 participants