-
Notifications
You must be signed in to change notification settings - Fork 0
Fix magnitude scaling module to allow array types for magnitude to area functions #56
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
base: main
Are you sure you want to change the base?
Changes from all commits
a79273e
b73f0a8
fd7b25e
9bf37aa
be67921
b16ed36
5bd2ece
809ddd5
02eaecd
829b53c
8725e6e
1a57dfa
c11b536
564d726
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. gdal is required for fiona now. |
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. uv sync is not necessary, uv run does that by default. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,8 +22,5 @@ jobs: | |
| with: | ||
| enable-cache: true | ||
|
|
||
| - name: Install project with types | ||
| run: uv sync --all-extras --dev | ||
|
|
||
| - name: Run type checking with ty | ||
| run: uv run ty check --exclude source_modelling/ccldpy.py --exclude setup.py | ||
| run: uv run --all-extras ty check --exclude source_modelling/ccldpy.py --exclude setup.py | ||
|
Comment on lines
28
to
+26
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ name = "source-modelling" | |
| authors = [{ name = "ucgmsim" }] | ||
| description = "Source modelling library" | ||
| readme = "README.md" | ||
| requires-python = ">=3.11,<3.14" | ||
| requires-python = ">=3.11" | ||
| dynamic = ["version"] | ||
| dependencies = [ | ||
| "fiona", | ||
|
|
@@ -36,9 +36,16 @@ types = [ | |
| "scipy-stubs", | ||
| "pandas-stubs", | ||
| "types-networkx", | ||
| "ty", | ||
| ] | ||
| dev = ["ty", "ruff", "deptry"] | ||
|
|
||
| [tool.deptry] | ||
| pep621_dev_dependency_groups = ["test", "dev", "types"] | ||
|
|
||
|
|
||
| [tool.ty.rules] | ||
| # Downgraded to warning because operators -,+,*,/ are too annoying to type properly | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A bunch of the subtractions in magnitude scaling module are technically invalid only because of the cursed way numpy operates. It can't really handle the case where you do something like |
||
| unsupported-operator = "warn" | ||
|
|
||
| [tool.setuptools.package-data] | ||
| source_modelling = ['NZ_CFM/*'] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just moved this config to pyproject.toml.