Skip to content

Conversation

@brunorosilva
Copy link
Contributor

@brunorosilva brunorosilva commented Jul 13, 2024

Fixes #181

Describe your changes

Add option to preserve the median when morphing

Checklist

  • Test cases have been modified/added to cover any code changes.
  • Docstrings have been modified/created for any code changes.
  • All linting and formatting checks pass (see the contributing guidelines for more information).

@github-actions github-actions bot added testing Relating to the testing suite data Work relating to data module plotting Work relating to plotting module labels Jul 13, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Congratulations on making your first pull request to Data Morph! Please familiarize yourself with the contributing guidelines, if you haven't already.

@stefmolin stefmolin added this to the 0.3.0 milestone Jul 13, 2024
@codecov
Copy link

codecov bot commented Jul 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.82%. Comparing base (18ae0bb) to head (81f69e9).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #188      +/-   ##
==========================================
+ Coverage   98.80%   98.82%   +0.01%     
==========================================
  Files          84       84              
  Lines        2099     2128      +29     
  Branches      123      128       +5     
==========================================
+ Hits         2074     2103      +29     
  Misses         24       24              
  Partials        1        1              
Files with missing lines Coverage Δ
src/data_morph/__init__.py 100.00% <100.00%> (ø)
src/data_morph/cli.py 100.00% <100.00%> (ø)
src/data_morph/data/stats.py 100.00% <100.00%> (ø)
src/data_morph/morpher.py 100.00% <100.00%> (ø)
src/data_morph/plotting/static.py 100.00% <100.00%> (ø)
tests/data/test_stats.py 100.00% <100.00%> (ø)
tests/plotting/test_animation.py 100.00% <ø> (ø)
tests/plotting/test_static.py 100.00% <100.00%> (ø)
tests/test_cli.py 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Owner

@stefmolin stefmolin left a comment

Choose a reason for hiding this comment

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

I'm running this on multiple different shapes to make sure this doesn't constrict things, but I do have some comments for now.

The statistics here are way too close together it is hard to read. Can we space them out more vertically?

Screenshot 2024-07-13 at 2 51 34 PM

@stefmolin stefmolin removed this from the 0.3.0 milestone Feb 17, 2025
res = get_summary_statistics(data)

labels = ('X Mean', 'Y Mean', 'X SD', 'Y SD', 'Corr.')
labels = ('X Mean', 'Y Mean', 'X Med.', 'Y Med.', 'X SD', 'Y SD', 'Corr.')
Copy link
Owner

Choose a reason for hiding this comment

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

Maybe doing this in groups would fix the spacing issue:

X Mean
X Med.
X SD.

Y Mean
Y Med.
Y SD.

Corr.

@github-actions github-actions bot added morpher Work relating to morpher module cli Work relating to the cli packaging Relating to packaging labels May 21, 2025
@stefmolin stefmolin changed the title feat: add x and y medians to plot Add option to preserve the median when morphing May 21, 2025
@stefmolin stefmolin merged commit ebdec3d into stefmolin:main May 21, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Work relating to the cli data Work relating to data module morpher Work relating to morpher module packaging Relating to packaging plotting Work relating to plotting module testing Relating to the testing suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add median

2 participants