-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
223 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
""" | ||
This example introduces the different ways that a FracAbility entity can be exported. | ||
""" | ||
|
||
import os | ||
import sys | ||
|
||
cwd = os.path.dirname(os.getcwd()) | ||
sys.path.append(cwd) | ||
|
||
from fracability import DATADIR # import the path of the sample data | ||
from fracability import Entities # import the Entities class | ||
|
||
|
||
# Import a fracture entity set | ||
fracture_set1 = Entities.Fractures(shp=f'{DATADIR}/cava_pontrelli/Set_a.shp', set_n=1) | ||
|
||
|
||
# Export such set as a shapefile | ||
|
||
fracture_set1.save_shp(path='Basics') | ||
|
||
# Export such set as a csv | ||
|
||
fracture_set1.save_csv(path='Basics', sep=';') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
""" | ||
This example introduces the different ways that a fracture network can be imported. We then visualize such | ||
network using vtk and matplotlib | ||
""" | ||
|
||
import os | ||
import sys | ||
|
||
cwd = os.path.dirname(os.getcwd()) | ||
sys.path.append(cwd) | ||
|
||
from fracability import DATADIR # import the path of the sample data | ||
from fracability import Entities # import the Entities class | ||
|
||
|
||
# Import a fracture entity set | ||
fracture_set1 = Entities.Fractures(shp=f'{DATADIR}/cava_pontrelli/Set_a.shp', set_n=1) | ||
|
||
# Plot such fracture entity using vtk | ||
|
||
fracture_set1.vtk_plot() | ||
|
||
# Plot such fracture entity using matplotlib | ||
|
||
fracture_set1.mat_plot() | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.. image:: ../../images/logo.png | ||
|
||
------------------------------------- | ||
|
||
Nodes | ||
------------------ | ||
.. autoclass:: fracability.Entities.Nodes | ||
:members: | ||
:inherited-members: | ||
:undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.