Skip to content

Commit

Permalink
images regen (#98)
Browse files Browse the repository at this point in the history
* images regen

* lint
  • Loading branch information
LamAdr authored May 1, 2024
1 parent a8f8a41 commit 85394c4
Show file tree
Hide file tree
Showing 23 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion marginaleffects/comparisons.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ def applyfun(x, by, wts=None):

# maintain_order is extremely important
by = [x for x in by if x in tmp.columns]
tmp = tmp.group_by(*by, maintain_order=True).map_groups(function=lambda x: applyfun(x, by=by, wts=wts))
tmp = tmp.group_by(*by, maintain_order=True).map_groups(
function=lambda x: applyfun(x, by=by, wts=wts)
)

tmp = get_hypothesis(tmp, hypothesis=hypothesis)

Expand Down
Binary file modified tests/images/jss/jss_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed tests/images/plot_comparisons/continous_01.png
Binary file not shown.
Binary file removed tests/images/plot_comparisons/continous_02.png
Binary file not shown.
Binary file added tests/images/plot_comparisons/continuous_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/images/plot_comparisons/continuous_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/images/plot_comparisons/continuous_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/images/plot_comparisons/discrete_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/images/plot_comparisons/discrete_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/images/plot_comparisons/discrete_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/images/plot_predictions/by_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/images/plot_predictions/by_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/images/plot_predictions/condition_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/images/plot_predictions/condition_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/images/plot_predictions/issue_57_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/images/plot_predictions/issue_57_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/images/plot_predictions/issue_57_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/images/plot_predictions/issue_57_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/images/plot_slopes/condition_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/images/plot_slopes/condition_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/images/plot_slopes/condition_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/images/plot_slopes/condition_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tests/test_plot_comparisons.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ def test_continuous():
variables="bill_length_mm",
by="island",
)
assert assert_image(fig, "continous_01", "plot_comparisons") is None
assert assert_image(fig, "continuous_01", "plot_comparisons") is None

fig = plot_comparisons(
mod, variables="bill_length_mm", condition=["flipper_length_mm", "species"]
)
assert assert_image(fig, "continous_02", "plot_comparisons") is None
assert assert_image(fig, "continuous_02", "plot_comparisons") is None

fig = plot_comparisons(mod, variables="bill_length_mm", condition="species")
assert assert_image(fig, "continuous_03", "plot_comparisons") is None
Expand Down

0 comments on commit 85394c4

Please sign in to comment.