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

Path Error #9

Closed
alantes opened this issue Mar 1, 2021 · 7 comments
Closed

Path Error #9

alantes opened this issue Mar 1, 2021 · 7 comments
Assignees

Comments

@alantes
Copy link

alantes commented Mar 1, 2021

The examples/Visualization/ContinuumSnakeVisualisation/continuum_snake_render.py file cannot run correctly. The error is: ModuleNotFoundError: No module named 'examples'.
I think it may be be path error.

@armantekinalp
Copy link
Contributor

@alantes Thanks for pointing out this issue. PR #10 should solve this problem.

@alantes
Copy link
Author

alantes commented Mar 2, 2021

@alantes Thanks for pointing out this issue. PR #10 should solve this problem.

Thank you for your marvelous work! But I have to remind that there are some other files share the same issue, too (e.g. helicalbuckling.py). It would be particularly nice if you can reexamine the files.

@armantekinalp armantekinalp self-assigned this Mar 2, 2021
@armantekinalp
Copy link
Contributor

@alantes Are you using the current master branch, or did you pip install PyElastica? Also can you share the error message here. Thank you.

@alantes
Copy link
Author

alantes commented Mar 2, 2021

I am using the current master branch. Downloaded the source code and run in the terminal
python continuum_snake.py
python continuum_snake_render.py
The first one is okay but the second one is followed by:
from examples.Visualization._povmacros import Stages, pyelastica_rod, render
ModuleNotFoundError: No module named 'examples'
Sorry for my unfamiliarity with coding, otherwise I can debug it myself.

@armantekinalp
Copy link
Contributor

Okay can you clone again from the master branch and run python continuum_snake_render.py. Path for examples directory was added with our last PR.

@alantes
Copy link
Author

alantes commented Mar 2, 2021

Thanks a lot for your patience!! It's now working.

@armantekinalp
Copy link
Contributor

You are welcome. I am closing this issue if you have any more question please feel free to open this issue or create a new one.

skim0119 added a commit that referenced this issue Dec 30, 2021
## Changes

* Rigid Body:
  * Rigid sphere and cylinder test cases
    * New test cases to test rotational and translational
  * Remove internal forces and torques in rigid body: not used
motion of rigid cylinder and sphere.
* Update gitignore for zip and csv file formats

## Enhancement
* Linalg numba faster functions for block structure.
* Factory function updated for new block structure.
* New wrapper to call memory block added
* Time-stepper interfaces are changed for block-structure implementation.
* Block-structure functions for Cosserat rod and reset ghosts.
* Memory block for the rigid body imp
* Memory block validity test cases added
* Governing equation tests for block structure

## Fix
* Rod intialization test fixed
* Stepper interface tests fixed for block structure
* Time-stepper analytic solution tests fixed
  * This commit fixes time-stepper tests using Harmonic oscillator test
cases for block structure implementation.
* Fix a bug in torque calculation. Transport term Jwxw was missing and with this commit we are adding this term.
* Fix: interaction routines for rigid body
* Fix: contact with rigid body
  * Due to the new implementation of rigid body block structure, radius and length are now are 1d arrays with 1 element, Before, they were scalar. This commit fixes the shape problems because of the array implementation.

## Note
This commit is the final version of rigid body block-structure implementation.
Issues and errors are fixed and code is tested.

## Order
Resolve #9 

Co-authored-by: armantekinalp <armant2@illinois.edu>
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

No branches or pull requests

2 participants