-
Notifications
You must be signed in to change notification settings - Fork 17
exports-v2 - Updates from image review #1058
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
Merged
Merged
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
1d37d70
remove duplicate rename calls
shapiromatron 62c0652
add ci calculation
shapiromatron 16d0ae8
update treatment period calculation
shapiromatron f346794
add back space; fix caused too many false positives in comparison
shapiromatron 6da15e6
properly handle a 500 response from the server in a data pivot
shapiromatron 4b82247
fix epi logic from plot review
shapiromatron 17d5508
fix invitro export when category id is null; remove category id from …
shapiromatron 973d59f
add unique rob columns
shapiromatron ab64dd6
use same method for categories
shapiromatron 8eba988
refactor into a reusable method
shapiromatron a5d0f61
remove pytest warning "Marks applied to fixtures have no effect"
shapiromatron 6be4f6d
refactor; write tests
shapiromatron 4099371
add tests
shapiromatron f60780f
rewrite animal export test using same pattern
shapiromatron 1d827fa
add udf to openapi
shapiromatron dcd0d0c
remove extra whitespace (will change visuals; known change)
shapiromatron File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| import pandas as pd | ||
|
|
||
| from ..common.helper import unique_text_list | ||
| from .models import FinalRiskOfBiasScore | ||
|
|
||
|
|
||
| def get_final_score_df(assessment_id: int, ids: list[int], model: str) -> pd.DataFrame: | ||
| rob_headers, rob_data = FinalRiskOfBiasScore.get_dp_export(assessment_id, ids, model) | ||
| return pd.DataFrame( | ||
| data=[[rob_data[(id, metric_id)] for metric_id in rob_headers.keys()] for id in ids], | ||
| columns=unique_text_list(list(rob_headers.values())), | ||
| index=ids, | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -98,7 +98,6 @@ def vcr_cassette_dir(request): | |
|
|
||
|
|
||
| @pytest.fixture | ||
| @pytest.mark.django_db | ||
| def pm_user(): | ||
| return get_user_model().objects.get(email="[email protected]") | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.