ContactEngineering / ce-ui

User interface of contact.engineering
https://contact.engineering
MIT License
0 stars 0 forks source link

Changing units in the plot? #16

Open tdbjacobs opened 2 years ago

tdbjacobs commented 2 years ago

It seems that the web app tries to pick natural units (e.g. m or mm or microns), but it sometimes picks different units even for similar surfaces.

Is there a way to change the choice of units for the plots?

mcrot commented 2 years ago

Do you mean interactively? For this, would it be okay to reload the page? Related to ContactEngineering/ce-ui#31.

tdbjacobs commented 2 years ago

Definitely ok to reload the page!

Tevis Jacobs William Kepler Whiteford Faculty Fellow and Associate Professor Mechanical Engineering and Materials Science University of Pittsburgh http://www.engineering.pitt.edu/JacobsLab/ Mail: 636 Benedum Hall, 3700 O'Hara St., Pittsburgh, PA 15261 Office: 538-E Benedum Hall, 412-624-9736 @.***

On Thu, Sep 23, 2021 at 4:06 AM Michael Röttger @.***> wrote:

Do you mean interactively? For this, would it be okay to reload the page? Related to ContactEngineering/topobank#447 https://github.com/ContactEngineering/TopoBank/issues/447.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ContactEngineering/TopoBank/issues/726#issuecomment-925590520, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOUYWUBTPYUAPKONHA6M5DUDLN2BANCNFSM5ER5ERMA .

pastewka commented 1 year ago

We should augment all analysis result data with a conversion factor to SI units. I've already implemented this in a separate branch - will pull that over to develop.

Without this, we need to do unit conversion in JS which is a pain in the neck. I would prefer to keep that on the Python side.