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

PR: Resource allocation plots in util.py #3382

Merged
merged 9 commits into from
Mar 27, 2024

Conversation

Gossty
Copy link
Contributor

@Gossty Gossty commented Mar 14, 2024

No description provided.

@coveralls
Copy link

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
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.

qiita_db/util.py Outdated Show resolved Hide resolved
qiita_db/util.py Outdated Show resolved Hide resolved
qiita_db/util.py Outdated Show resolved Hide resolved
qiita_db/util.py Outdated Show resolved Hide resolved
qiita_db/util.py Outdated Show resolved Hide resolved
qiita_db/util.py Outdated Show resolved Hide resolved
qiita_db/util.py Outdated Show resolved Hide resolved
qiita_db/util.py Show resolved Hide resolved
qiita_db/util.py Outdated Show resolved Hide resolved
qiita_db/util.py Outdated Show resolved Hide resolved
Copy link
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
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.

qiita_db/test/test_util.py Outdated Show resolved Hide resolved
qiita_db/test/test_util.py Outdated Show resolved Hide resolved
qiita_db/test/test_util.py Outdated Show resolved Hide resolved
qiita_db/util.py Show resolved Hide resolved
qiita_db/util.py Outdated Show resolved Hide resolved
qiita_db/util.py Outdated Show resolved Hide resolved
qiita_db/util.py Outdated Show resolved Hide resolved
qiita_db/util.py Outdated Show resolved Hide resolved
@charles-cowart
Copy link
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
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
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
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
4 checks passed
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