10 Commits (main)
 

Author SHA1 Message Date
Manish 5a9f73d729 Solution 11 months ago
Kristofer Koishigawa 23e51762fc
fix: bump Python version to 3.8 (#10) 1 year ago
Prince Mendiratta fadd0a8384
fix: remove .replit and replit.nix files (#9)
Signed-off-by: Prince Mendiratta <prince.mendi@gmail.com>

Signed-off-by: Prince Mendiratta <prince.mendi@gmail.com>
1 year ago
Krzysztof G e07823cf8f
fix(config): add replit.nix config (#8)
* fix(config): add replit.nix config

* fix: add matplotlib

Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>

Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2 years ago
Naomi Carrigan 05c1179bf5
chore: clean up readme (#7) 2 years ago
Chris DiCarlo d23928ece0
fixed test_plot_data_points and test_plot_lines (#3)
* Fixed test_plot_data_points to match given data

Some of the expected values in test_plot_data_points have extra digits.  The second data point had a y value of 0.22047244100000002 instead of 0.220472441 as given in the csv data file.  These cause errors with assertEqual.  It works fine with just this change, but it is still checking floats for equality which could be brittle. I also modified the assert line to use np.testing.assert_almost_equal which checks lists in an element-by-element fashion with tolerance and should be more robust.

* fixed test_plot_lines

Question asks for regression line "Through the year 2050" but the expected lists stops at the y-value for 2049.  Added datapoint for 2050 in both lines.  assertEqual was throwing errors for differences in 10th digit, changing this to np.testing.assert_almost_equal checks the first 7 digits which is a more robust way to check a regression calculated value.

* Added numpy import at top

added numpy import at top for np.testing.assert_almost_equal
3 years ago
Nabeel Raza c35e9d25c0
Fixing typo: scipi should be scipy (#5) 3 years ago
Tom 77806286e6
feat: add description to pyproject.toml (#2) 4 years ago
Tom 76a954000d
feat: add replit config (#1) 4 years ago
moT01 e4811795bd init 4 years ago