Improve normal_cone to support multiple vertices as input, and provide an option for calculating outer or inner normal cones.#5610
Conversation
… vertices like in polymake. 2. Putting an option to change from calculating outer to inner normal cone. 3. Edited the documentation above the function.
lkastner
left a comment
There was a problem hiding this comment.
Thank you, this will be a valuable contribution. Once the tests run I will have another look.
|
I manually changed the things you have said, I am not sure whether there is an easier way to do it but, looking forward to your new suggestions! |
Co-authored-by: Max Horn <max@quendi.de>
Co-authored-by: Lars Kastner <lkastner@users.noreply.github.com>
|
Thank you! Unfortunately code formatting is off, this can be fixed by running Also, may I suggest that you use the "Resolve conversation" on any discussion you already addressed? That makes it a bit easier to follow along (I did it for some this morning, but more things have been changed by now) |
normal_cone to allow specifying multiple vertices, and permit choosing between calculating outer and inner normal cones
|
I've modified the title to be in a form usable for our release notes; but I don't know enough about this topic to decide if it is sensible, so please double-check and edit it as needed. |
2. Also added a condition to check whether any element in F is out of range 3. Changed the length of F condition to "Face index out of range"
normal_cone to allow specifying multiple vertices, and permit choosing between calculating outer and inner normal conesnormal_cone to allow multiple vertices for input, and an option for calculating outer or inner normal cones.
normal_cone to allow multiple vertices for input, and an option for calculating outer or inner normal cones.normal_cone to support multiple vertices as input, and provide an option for calculating outer or inner normal cones.
|
Thanks for all the help and patience. I have only book-tests (nightly) error in the checks now. Didn't understand much about it, can you help me. |
|
The booktest failures with Julia nightly are "normal" (see #5592); in general any tests against Julia normal can fail, and you don't need to worry about that (basically only those tests marked as "Required" are, well, required :-)) |
|
I also rewrote the title like you said, its just rewording but felt more natural this way. Thank you for your patience, this was my first commit. Looks everything fine now then? |
benlorenz
left a comment
There was a problem hiding this comment.
Can you also add a few testcases in the proper testsuite (in addition to the doctest), e.g. below this one:
Oscar.jl/test/PolyhedralGeometry/polyhedron.jl
Lines 282 to 284 in e1327cf
These will run in more different configurations than the doctests.
1. Added testcases for normal_cone with list input and outer option. 2. Changed doc to include the option outer 3. Restricted Abstract Vector to integers 64 4. Deleted the requirement of number of elements of the face.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5610 +/- ##
==========================================
+ Coverage 84.06% 84.07% +0.01%
==========================================
Files 744 744
Lines 101320 101373 +53
==========================================
+ Hits 85170 85229 +59
+ Misses 16150 16144 -6
🚀 New features to boost your workflow:
|
Do I have to do anything about it? |
No, this is fine. Also the two failures on nightly are tracked in other issues. |
|
Thank you all for the feedbacks and help! :-) |
This is the first time I am doing it so I am open to any tips.
The things I have done: