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

Curve cleanup #73

Merged
merged 3 commits into from
Oct 23, 2023
Merged

Curve cleanup #73

merged 3 commits into from
Oct 23, 2023

Conversation

GeraldIr
Copy link
Member

@GeraldIr GeraldIr commented Oct 23, 2023

Cleanup: Cleaned up code and made it easier to add various functions in the future
Fix: Array_element didn't support actual arrays
Added: test for function generation
Fix: Generate function wasn't being used for predict_curve

Gerald Walter Irsiegler added 2 commits October 23, 2023 11:43
…unctions in the future, predict_curves function will now also be replaced in the same way as fit_curves
@codecov
Copy link

codecov bot commented Oct 23, 2023

Codecov Report

Merging #73 (c7d7970) into main (53b3aae) will increase coverage by 0.69%.
The diff coverage is 97.05%.

@@            Coverage Diff             @@
##             main      #73      +/-   ##
==========================================
+ Coverage   91.39%   92.09%   +0.69%     
==========================================
  Files           6        6              
  Lines         686      683       -3     
==========================================
+ Hits          627      629       +2     
+ Misses         59       54       -5     
Files Coverage Δ
openeo_pg_parser_networkx/graph.py 84.18% <100.00%> (-0.15%) ⬇️
openeo_pg_parser_networkx/utils.py 94.52% <96.96%> (+3.36%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

"data": [
3,
2
],
"index": 2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't index: 2 out of range for data = [3,2]? This probably doesn't matter to test the functionality :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea I forgot I changed that and never changed it back, it would matter if the compiled function from fit_curve would ever be executed, which it's not. We don't check for potential runtime errors when compiling, that's out of scope.

The actual testing of the functions execution happens in the new test!

@GeraldIr GeraldIr merged commit 689ab92 into main Oct 23, 2023
5 checks passed
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.

2 participants