-
Notifications
You must be signed in to change notification settings - Fork 11
Refactor to standard Python package structure #19
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
91d378a
Initial plan
Copilot 3e7a4da
Refactor: organize repository into traditional Python package structure
Copilot a9fbe03
Add modern Python packaging files (pyproject.toml and MANIFEST.in)
Copilot 6126853
Fix review comments: remove duplicate imports and unnecessary setupto…
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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,12 @@ | ||
| include README.md | ||
| include License.md | ||
| include CONTRIBUTING.md | ||
| include CHANGES_SUMMARY.md | ||
| include TESTING.md | ||
| include requirements.txt | ||
| include pytest.ini | ||
| recursive-include examples *.ipynb | ||
| recursive-include tests *.py | ||
| global-exclude __pycache__ | ||
| global-exclude *.py[co] | ||
| global-exclude .DS_Store |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,30 @@ | ||
| """ | ||
| pyDIWASP - DIrectional WAve SPectrum analysis in Python | ||
|
|
||
| Python conversion of the DIWASP package (DIrectional WAve SPectrum analysis Version 1.4) | ||
|
|
||
| Main Functions: | ||
| - dirspec: Main directional wave spectrum estimation | ||
| - infospec: Calculate wave statistics from spectrum | ||
| - plotspec: Plot directional spectrum | ||
| - interpspec: Interpolate spectrum to different grid | ||
| - writespec: Write spectrum to file | ||
| """ | ||
|
|
||
| __version__ = "0.1.0" | ||
|
|
||
| # Import main API functions | ||
| from .dirspec import dirspec | ||
| from .infospec import infospec, compangle | ||
| from .plotspec import plotspec | ||
| from .interpspec import interpspec | ||
| from .writespec import writespec | ||
|
|
||
| __all__ = [ | ||
| 'dirspec', | ||
| 'infospec', | ||
| 'compangle', | ||
| 'plotspec', | ||
| 'interpspec', | ||
| 'writespec', | ||
| ] |
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| import numpy as np | ||
| from private.hsig import hsig | ||
| from .private.hsig import hsig | ||
|
|
||
| def infospec(SM): | ||
| """ | ||
|
|
||
This file contains hidden or 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
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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,6 @@ | ||
| """ | ||
| Private internal functions for pyDIWASP. | ||
|
|
||
| This module contains internal functions used by the main analysis routines. | ||
| These are not part of the public API and may change without notice. | ||
| """ |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| from private.velz import velz | ||
| from .velz import velz | ||
|
|
||
| def vels(ffreqs, dirs, wns, z, depth): | ||
| """ | ||
|
|
||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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,38 @@ | ||
| [build-system] | ||
| requires = ["setuptools>=45", "wheel"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "pyDIWASP" | ||
| version = "0.1.0" | ||
| description = "Python conversion of DIWASP: DIrectional WAve SPectrum analysis" | ||
| readme = "README.md" | ||
| authors = [ | ||
| {name = "SBFRF", email = "support@sbfrf.org"} | ||
| ] | ||
| license = {text = "GPL-3.0"} | ||
| classifiers = [ | ||
| "Development Status :: 3 - Alpha", | ||
| "Intended Audience :: Science/Research", | ||
| "Topic :: Scientific/Engineering :: Physics", | ||
| "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.8", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| ] | ||
| requires-python = ">=3.8" | ||
| dependencies = [ | ||
| "numpy>=1.20.0,<2.0", | ||
| "scipy>=1.7.0,<2.0", | ||
| "matplotlib>=3.3.0,<4.0", | ||
| ] | ||
|
|
||
| [project.urls] | ||
| Homepage = "https://github.com/SBFRF/pyDIWASP" | ||
| Repository = "https://github.com/SBFRF/pyDIWASP" | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| include = ["pydiwasp*"] | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.