Closed ortk95 closed 3 months ago
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
planetmapper/base.py | 26 | 27 | 96.3% | ||
<!-- | Total: | 58 | 59 | 98.31% | --> |
Totals | |
---|---|
Change from base Build 9416842717: | -0.02% |
Covered Lines: | 2955 |
Relevant Lines: | 2968 |
String representations (e.g. from
str()
orrepr()
) of objects now include any extra arguments used to customise the object. These arguments are only included in the string if they have been changed from their default values, keeping the string concise. For example:This is implemented for all objects by defining a (private) dictionary of the default argument values used to initialise the object, then using this to automatically include non-default arguments in the string. Therefore, any new objetcs/subclasses simply need to add any new arguments to
_get_default_init_kwargs
, then_generate_repr
can be used to automatically generate a desired string.Closes #351.
Pull request checklist
requirements.txt
are reflected insetup.py
and conda-forge feedstockrun_ci.sh
or check GitHub Actions)See CONTRIBUTING.md for more details.