Go to file
Pat Wick 618d9687c2 edited transform.py and modified test_transform.py
I was getting errors when running test_transform.py not because of transform.py
(I think) but instead because of how the arguments were being passed into the
functions within. I removed the list-in-a-list from the clamp(), ratio(), and
scale() tests and things seem to be working as expected.

A lot of the extra thinking for checkpoint 2 was related to my attempt to avoid
overthinking the problem. I found myself more than once starting to rewrite functions
that I had already made, so upon taking another look at my plan, I realized the
easier route would be to use things like the clamp() or minimum() function, for example,
in order to save myself time and possible hard-to-diagnose bugs later on. Keeping
with the theme of top-down design, breaking the problem up into smaller, simpler pieces
also makes things easier to test as progress is made. The biggest strategy I employed
was writing down, in English/pseudocode, what I wanted to do, then as I started to write
out my code, I would explain to myself what was supposed to happen, which is where I
started to go back to my previous functions to continue using them in the next function
to be made.
2023-08-03 14:26:42 -04:00
.commit_template Initial commit 2023-07-31 13:35:14 +00:00
.gitignore Initial commit 2023-07-31 13:35:14 +00:00
constants.py Initial commit 2023-07-31 13:35:14 +00:00
generate_data.py Initial commit 2023-07-31 13:35:14 +00:00
planning_scatter.md Completed planning breakdown for scatterplot 2023-08-03 11:16:33 -04:00
plotting.py Initial commit 2023-07-31 13:35:14 +00:00
poetry.lock Completed planning breakdown for scatterplot 2023-08-03 11:16:33 -04:00
pyproject.toml Initial commit 2023-07-31 13:35:14 +00:00
scatterplot.py Initial commit 2023-07-31 13:35:14 +00:00
test_transform.py edited transform.py and modified test_transform.py 2023-08-03 14:26:42 -04:00
ticks.py Initial commit 2023-07-31 13:35:14 +00:00
transform.py edited transform.py and modified test_transform.py 2023-08-03 14:26:42 -04:00