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

Use kwargs for settings #85

Merged
merged 2 commits into from
Mar 13, 2020
Merged

Use kwargs for settings #85

merged 2 commits into from
Mar 13, 2020

Conversation

prisae
Copy link
Member

@prisae prisae commented Mar 13, 2020

All settings (xdirect, ht, htarg, ft, ftarg, loop, verb) are now extracted from kwargs. This makes it possible that all model-functions take the same keyword-arguments; warnings are raised if a particular parameter is not used in this function, but it doesn't fail (it fails, however, for unknown parameters). Pure positional calls including those parameters will therefore not work any longer.

@prisae prisae linked an issue Mar 13, 2020 that may be closed by this pull request
@prisae prisae mentioned this pull request Mar 13, 2020
12 tasks
@coveralls
Copy link

Coverage Status

Coverage increased (+0.0008%) to 99.903% when pulling d75e13c on kwargs into 20b4cf3 on v2-dev.

@prisae prisae merged commit 87a8a4c into v2-dev Mar 13, 2020
@prisae prisae deleted the kwargs branch March 13, 2020 14:15
prisae added a commit that referenced this pull request Apr 29, 2020
- Remove Python 3.5 from testing.
- Remove deprecated functions.
- Use f-strings for printing.
* Replace numexpr by numba (#77)
* Shorten runtime of examples
* Deg/Unwrap/Lag => closes #76 (#78)
* f-strings: fix existing and implement forgotten (#80)
* Change `htarg`/`ftarg` to dicts internally (#81)
* Always assume isotropy for {e;m}perm by default
* Rename `transform.get_spline_values` -> `transform.get_dlf_points`
* Undo #26 for consistency reasons
* Documentation (#82)
* Ensure src/rec are not altered (#83)
* Renaming (#84)
* Renaming all Hankel- and Fourier-routines
* `factAng` -> `ang_fact`
* `{fht;qwe;quad}arg{s}` -> `htarg`
* `{qwe}arg{s}` -> `ftarg`
* Closes #13
* Use `kwargs` for settings (#85)
* All settings (`xdirect`, `ht`, `htarg`, `ft`, `ftarg`, `loop`, `verb`) are now extracted from `kwargs`. This makes it possible that all model-functions take the same keyword-arguments; warnings are raised if a particular parameter is not used in this function, but it doesn't fail (it fails, however, for unknown parameters). Pure positional calls including those parameters will therefore not work any longer. Closes #14
* Adjust manual and docstrings, intersphinx (#86)
* EMArray: .amp and .pha are now methods (#87)
* Fix dlf if 'fht' provided (#88)
* Replace outer by broadcasting
* htarg and ftarg MUST be dicts (#89)
* Only one possibility for each method of `ht` and `ft`
* Undo #7a9437ca
* Reduce top namespace (#91)
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

Successfully merging this pull request may close these issues.

Abstraction
2 participants