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

129 lcs plot #231

Merged
merged 90 commits into from
Feb 24, 2021
Merged

129 lcs plot #231

merged 90 commits into from
Feb 24, 2021

Conversation

vhirtham
Copy link
Collaborator

@vhirtham vhirtham commented Jan 25, 2021

Changes

Describe changes in this PR

Related Issues

Closes #129

Checks

  • updated CHANGELOG.md
  • updated tests
  • updated doc/
  • update example/tutorial notebooks

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@vhirtham
Copy link
Collaborator Author

Here is a quick test script for the CSM plot function:

import matplotlib.pyplot as plt
import pandas as pd

from weldx import CoordinateSystemManager

csm = CoordinateSystemManager("root")

csm.create_cs("lcs 1", "root", coordinates=[2, 5, 6])
csm.create_cs_from_euler(
    "lcs 2",
    "root",
    sequence="z",
    angles=[0, 90, 270],
    degrees=True,
    coordinates=[[4, -2, 1], [-5, 6, 2], [3, 4, 2]],
    time=["2010-02-01", "2010-02-05", "2010-02-08"],
)

new_times = pd.date_range(start="2010-02-01", end="2010-02-8", freq="6H")

csm.plot_coordinate_systems(
    reference_system="root", time=new_times, show_axes=True, show_trace=True
)
plt.show()

It's really interesting to see the trajectories if you change the reference coordinate system in the plot function to "lcs 1" :D

@codecov
Copy link

codecov bot commented Jan 25, 2021

Codecov Report

Merging #231 (ebc5ab1) into master (1b6ebc0) will increase coverage by 0.04%.
The diff coverage is 98.24%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #231      +/-   ##
==========================================
+ Coverage   99.34%   99.39%   +0.04%     
==========================================
  Files          72       71       -1     
  Lines        3968     3942      -26     
==========================================
- Hits         3942     3918      -24     
+ Misses         26       24       -2     
Impacted Files Coverage Δ
weldx/__init__.py 100.00% <ø> (ø)
weldx/geometry.py 99.05% <92.30%> (+0.32%) ⬆️
weldx/asdf/tags/weldx/core/geometry/__init__.py 100.00% <100.00%> (ø)
...eldx/asdf/tags/weldx/core/geometry/spatial_data.py 100.00% <100.00%> (ø)
weldx/transformations.py 99.39% <100.00%> (+<0.01%) ⬆️
weldx/utility.py 95.97% <100.00%> (-0.08%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b6ebc0...ebc5ab1. Read the comment docs.

Co-authored-by: Cagtay Fabry <43667554+CagtayFabry@users.noreply.github.com>
@pep8speaks
Copy link

pep8speaks commented Jan 26, 2021

Hello @vhirtham! Thanks for updating this PR.

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-02-24 10:59:38 UTC

@vhirtham vhirtham linked an issue Feb 23, 2021 that may be closed by this pull request
@vhirtham vhirtham added this to the 0.3.0 milestone Feb 23, 2021
@vhirtham vhirtham marked this pull request as ready for review February 23, 2021 13:45
tests/test_geometry.py Outdated Show resolved Hide resolved
weldx/visualization.py Outdated Show resolved Hide resolved
weldx/visualization.py Outdated Show resolved Hide resolved
.github/workflows/pytest.yml Show resolved Hide resolved
@vhirtham
Copy link
Collaborator Author

do we add this back in before merging?

@CagtayFabry Not sure here. In this PR, adding pull_request double triggered the actions. So I removed it.

@vhirtham vhirtham merged commit cd4c0db into master Feb 24, 2021
@marscher
Copy link
Collaborator

👍

@marscher marscher deleted the 129_lcs_plot branch February 24, 2021 13:29
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.

add LCS plot functions
4 participants