* Enable ruff PGH003 rule
* Fix
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Enable ruff ICN001 rule
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* The window will now remain open after the fractal is finished being drawn, and will only close upon your click.
* Update fractals/sierpinski_triangle.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* pre-commit: Upgrade psf/black for stable style 2023
Updating https://github.com/psf/black ... updating 22.12.0 -> 23.1.0 for their `2023 stable style`.
* https://github.com/psf/black/blob/main/CHANGES.md#2310
> This is the first [psf/black] release of 2023, and following our stability policy, it comes with a number of improvements to our stable style…
Also, add https://github.com/tox-dev/pyproject-fmt and https://github.com/abravalheri/validate-pyproject to pre-commit.
I only modified `.pre-commit-config.yaml` and all other files were modified by pre-commit.ci and psf/black.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* updating DIRECTORY.md
* Update sierpinski_triangle.py header doc
* Remove unused PROGNAME var in sierpinski_triangle.py
The PROGNAME var was used to print an image description in the reference
code that this implementation was taken from, but it's entirely unused
here
* Refactor triangle() function to not use list of vertices
Since the number of vertices is always fixed at 3, there's no need to
pass in the vertices as a list, and it's clearer to give the vertices
distinct names rather than index them from the list
* Refactor sierpinski_triangle.py to use tuples
Tuples make more sense than lists for storing coordinate pairs
* Flip if-statement condition in sierpinski_triangle.py to avoid nesting
* Add type hints to sierpinski_triangle.py
* Add doctests to sierpinski_triangle.py
* Fix return types in doctests
* Update fractals/sierpinski_triangle.py
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
* Added Julia sets drawing
* Forgot the .py extension
* Update julia_sets.py
Added online sources for comparison.
Added more examples of fractal Julia sets.
Added all type hints.
Only show one picture
Silented RuntuleWarning's (there's no way of avoiding them and they're not an issue per se)
* Added doctest example for "show_results"
* Filtering Nan's and infinites
* added 1 missing type hint
* in iterate_function, convert to dtype=complex64
* RuntimeWarning (fine) filtering
* Type hint, test for ignore_warnings function, typo in header
* Update julia_sets.py
Type of expected output value for iterate function int array -> complex array (throws an error on test)
* Update julia_sets.py
- More accurate type for tests cases in eval_quadratic_polynomial and iterate_function
- added more characters for variables c & z in eval_quadratic_polynomial and eval_exponential to silent bot warnings
* Function def formatting
Blocked by black
* Update julia_sets.py
* Update fractals/julia_sets.py
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Update fractals/julia_sets.py
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Update fractals/julia_sets.py
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Update fractals/julia_sets.py
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Update fractals/julia_sets.py
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Update fractals/julia_sets.py
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Update fractals/julia_sets.py
Co-authored-by: John Law <johnlaw.po@gmail.com>
* added more doctests for eval_exponential
* Update fractals/julia_sets.py
Co-authored-by: John Law <johnlaw.po@gmail.com>
Co-authored-by: John Law <johnlaw.po@gmail.com>