Skip to content

PR: Resource allocation plots in util.py#3382

Merged
charles-cowart merged 9 commits intoqiita-spots:devfrom
Gossty:resource-allocation-plot
Mar 27, 2024
Merged

PR: Resource allocation plots in util.py#3382
charles-cowart merged 9 commits intoqiita-spots:devfrom
Gossty:resource-allocation-plot

Conversation

@Gossty
Copy link
Copy Markdown
Contributor

@Gossty Gossty commented Mar 14, 2024

No description provided.

@coveralls
Copy link
Copy Markdown

coveralls commented Mar 14, 2024

Coverage Status

coverage: 92.847% (+0.03%) from 92.813%
when pulling bf8ca21 on Gossty:resource-allocation-plot
into 62292ca on qiita-spots:dev.

Copy link
Copy Markdown
Member

@antgonza antgonza left a comment

Choose a reason for hiding this comment

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

Looking good, a few comments/requests.

Comment thread qiita_db/util.py Outdated
Comment thread qiita_db/util.py Outdated
Comment thread qiita_db/util.py Outdated
Comment thread qiita_db/util.py Outdated
Comment thread qiita_db/util.py Outdated
Comment thread qiita_db/util.py Outdated
Comment thread qiita_db/util.py Outdated
Comment thread qiita_db/util.py
Comment thread qiita_db/util.py Outdated
Comment thread qiita_db/util.py Outdated
Copy link
Copy Markdown
Member

@antgonza antgonza left a comment

Choose a reason for hiding this comment

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

Approved but it will be great if @charles-cowart can also do a pass. Thank you.

Copy link
Copy Markdown
Contributor

@charles-cowart charles-cowart left a comment

Choose a reason for hiding this comment

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

Some questions.

Comment thread qiita_db/test/test_util.py Outdated
Comment thread qiita_db/test/test_util.py Outdated
Comment thread qiita_db/test/test_util.py Outdated
Comment thread qiita_db/util.py
Comment thread qiita_db/util.py Outdated
Comment thread qiita_db/util.py Outdated
Comment thread qiita_db/util.py Outdated
Comment thread qiita_db/util.py Outdated
@charles-cowart
Copy link
Copy Markdown
Contributor

@Gossty it might be good to change the name of this PR if it's no longer a WIP and no longer just an initial commit.

@Gossty Gossty changed the title WIP: Initial commit to resource allocation plots PR: Resource allocation plots in util.py Mar 26, 2024
Comment thread qiita_db/util.py Outdated

ax = axs[0]
# models for memory
mem_model1 = (lambda x, k, a, b: k * np.log(x) + x * a + b)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's not desirable to have these defined once in utils and once in tests. If you need them for tests, I would suggest moving them out of this function and defining them at the top of util.py. Then you can still use them in this function, but you can also import them into test_util.py (actually I think you just need to import the model_mem and model_time arrays) and use them there. In that way you're treating util.py as the place to go to define and get that information. Currently you have to know that this is defined in two places and make changes to both as needed.

Copy link
Copy Markdown
Contributor

@charles-cowart charles-cowart left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for all your hard work!

@charles-cowart charles-cowart merged commit 8c91945 into qiita-spots:dev Mar 27, 2024
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