pyfm2d 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. pyfm2d-0.1.0/.gitignore +47 -0
  2. pyfm2d-0.1.0/CMakeLists.txt +8 -0
  3. pyfm2d-0.1.0/LICENSE +24 -0
  4. pyfm2d-0.1.0/PKG-INFO +12 -0
  5. pyfm2d-0.1.0/examples/FMM_demo Surface Wave.ipynb +661 -0
  6. pyfm2d-0.1.0/examples/FMM_demo checkerboard.ipynb +677 -0
  7. pyfm2d-0.1.0/examples/FMM_demo_borehole.ipynb +878 -0
  8. pyfm2d-0.1.0/examples/FMM_demo_borehole_parallel.ipynb +397 -0
  9. pyfm2d-0.1.0/examples/datasets/cb/gridt_ex1.vtx +814 -0
  10. pyfm2d-0.1.0/examples/datasets/cb/receivers_ex1.dat +36 -0
  11. pyfm2d-0.1.0/examples/datasets/cb/sources_ex1.dat +15 -0
  12. pyfm2d-0.1.0/examples/datasets/cbmod.txt +32 -0
  13. pyfm2d-0.1.0/examples/datasets/sw/gridi.vtx +1060 -0
  14. pyfm2d-0.1.0/examples/datasets/sw/gridt.vtx +814 -0
  15. pyfm2d-0.1.0/examples/datasets/sw/gridt_ex2.vtx +1027 -0
  16. pyfm2d-0.1.0/examples/datasets/sw/receivers_ex2.dat +209 -0
  17. pyfm2d-0.1.0/examples/datasets/sw/sources_ex2.dat +209 -0
  18. pyfm2d-0.1.0/gallery/images/borehole1_raypaths.jpg +0 -0
  19. pyfm2d-0.1.0/gallery/images/borehole2_raypaths.jpg +0 -0
  20. pyfm2d-0.1.0/gallery/images/borehole2_wavefronts.jpg +0 -0
  21. pyfm2d-0.1.0/gallery/images/checkerboard_raypaths.jpg +0 -0
  22. pyfm2d-0.1.0/gallery/images/checkerboard_rays_wavefronts.jpg +0 -0
  23. pyfm2d-0.1.0/gallery/images/pyfm2d_parallel_M1_Ultra.png +0 -0
  24. pyfm2d-0.1.0/gallery/images/simple_raypaths.jpg +0 -0
  25. pyfm2d-0.1.0/gallery/images/simple_wavefronts.jpg +0 -0
  26. pyfm2d-0.1.0/gallery/images/surfacewave_raypaths.jpg +0 -0
  27. pyfm2d-0.1.0/gallery/images/surfacewave_rays_wavefronts.jpg +0 -0
  28. pyfm2d-0.1.0/gallery/readme.md +32 -0
  29. pyfm2d-0.1.0/prior_art/waveTracker.py +508 -0
  30. pyfm2d-0.1.0/pyproject.toml +26 -0
  31. pyfm2d-0.1.0/readme.md +104 -0
  32. pyfm2d-0.1.0/src/fm2d/CMakeLists.txt +5 -0
  33. pyfm2d-0.1.0/src/fm2d/fm2dss.f90 +3843 -0
  34. pyfm2d-0.1.0/src/pyfm2d/__init__.py +1 -0
  35. pyfm2d-0.1.0/src/pyfm2d/bases.py +376 -0
  36. pyfm2d-0.1.0/src/pyfm2d/fastmarching.py +401 -0
  37. pyfm2d-0.1.0/src/pyfm2d/wavetracker.py +890 -0
  38. pyfm2d-0.1.0/test/.gitignore +1 -0
  39. pyfm2d-0.1.0/test/fm2dss.in +24 -0
  40. pyfm2d-0.1.0/test/gridc.vtx +814 -0
  41. pyfm2d-0.1.0/test/otimes.dat +490 -0
  42. pyfm2d-0.1.0/test/receivers.dat +36 -0
  43. pyfm2d-0.1.0/test/sources.dat +15 -0
  44. pyfm2d-0.1.0/test/test_fastmarching.py +263 -0
  45. pyfm2d-0.1.0/test/test_wavetracker.py +96 -0
  46. pyfm2d-0.1.0/validation/fm2dss.in +24 -0
  47. pyfm2d-0.1.0/validation/frechet.out +38346 -0
  48. pyfm2d-0.1.0/validation/otimes.dat +490 -0
  49. pyfm2d-0.1.0/validation/raypath.out +10546 -0
  50. pyfm2d-0.1.0/validation/receivers.dat +36 -0
  51. pyfm2d-0.1.0/validation/rtravel.out +490 -0
  52. pyfm2d-0.1.0/validation/sources.dat +15 -0
  53. pyfm2d-0.1.0/validation/travelt.out +40148 -0
@@ -0,0 +1,47 @@
1
+ # Editor temporary/working/backup files #
2
+ #########################################
3
+ .vscode/
4
+ *.swp
5
+
6
+ # Compiled source #
7
+ ###################
8
+ *.a
9
+ *.o
10
+ *.so
11
+ *.mod
12
+
13
+ # Doc generated files #
14
+ #######################
15
+ docs/_build
16
+ docs/api/generated
17
+
18
+ # Python files #
19
+ ################
20
+ # setup.py working directory
21
+ build
22
+ # setup.py dist directory
23
+ dist
24
+ # Egg metadata
25
+ *.egg-info
26
+ # other temporary files
27
+ .coverage
28
+ coverage.xml
29
+ .deps
30
+ .libs
31
+ .eggs
32
+ pip-wheel-metadata
33
+ wheelhouse
34
+ .tox
35
+ MANIFEST
36
+
37
+ # pytest cache #
38
+ ################
39
+ *.cache
40
+ .pytest_cache
41
+ *__pycache__
42
+ .ipynb_checkpoints
43
+ *.pyc
44
+
45
+ # OS generated files #
46
+ ######################
47
+ .DS_Store*
@@ -0,0 +1,8 @@
1
+ cmake_minimum_required(VERSION 3.15...3.26)
2
+
3
+
4
+ SET(CMAKE_Fortran_FLAGS "-fbounds-check -fbacktrace -fdiagnostics-color=auto")
5
+
6
+ set(CMAKE_VERBOSE_MAKEFILE on)
7
+ project(pyfm2d)
8
+ add_subdirectory(src/fm2d)
pyfm2d-0.1.0/LICENSE ADDED
@@ -0,0 +1,24 @@
1
+ BSD 2-Clause License
2
+
3
+ Copyright (c) 2024, InLab
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
19
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
pyfm2d-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,12 @@
1
+ Metadata-Version: 2.1
2
+ Name: pyfm2d
3
+ Version: 0.1.0
4
+ Requires-Python: >=3.9
5
+ Requires-Dist: cartopy>=0.23.0
6
+ Requires-Dist: matplotlib>=3.9.4
7
+ Requires-Dist: numpy>=2.0.2
8
+ Requires-Dist: pyrr>=0.10.3
9
+ Requires-Dist: scipy>=1.13.1
10
+ Requires-Dist: tqdm>=4.67.1
11
+ Requires-Dist: jupyterlab>=4.3.4; extra == "notebooks"
12
+ Provides-Extra: notebooks