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

Turn Fan(discard_warning) into an error #11627

Closed
vbraun opened this issue Jul 26, 2011 · 14 comments
Closed

Turn Fan(discard_warning) into an error #11627

vbraun opened this issue Jul 26, 2011 · 14 comments

Comments

@vbraun
Copy link
Member

vbraun commented Jul 26, 2011

There is no easy way to re-enable the warning after it has been shown once. A typical use case is that you have a mistake in your fan data and you want to fix it. The fact that the warning for duplicate cones is only shown once in the Sage session is very annoying.

Apply attachment: trac_11627_alternative.patch

CC: @novoselt

Component: geometry

Author: Andrey Novoseltsev

Reviewer: Volker Braun

Merged: sage-4.7.2.alpha3

Issue created by migration from https://trac.sagemath.org/ticket/11627

@novoselt
Copy link
Member

comment:1

OK, I'll change it ;-)

@vbraun
Copy link
Member Author

vbraun commented Jul 27, 2011

comment:2

I do have a patch, I just haven't had the time to finish it.

@novoselt
Copy link
Member

comment:3

Namewise, how about replacing disacard_warning, which will not make sense anymore, with discard_faces=False that can be set to True to allow it?

@vbraun
Copy link
Member Author

vbraun commented Jul 27, 2011

Attachment: trac_11627_make_fan_raise_errors.patch.gz

Initial patch

@vbraun
Copy link
Member Author

vbraun commented Jul 27, 2011

comment:4

Here is my take on it. I renamed it to check_duplicate_cones=<bool> to make clear that it is related to the check optional argument.

@vbraun
Copy link
Member Author

vbraun commented Aug 1, 2011

Author: Volker Braun

@vbraun
Copy link
Member Author

vbraun commented Aug 1, 2011

comment:5

Any thoughts on the patch?

@novoselt
Copy link
Member

novoselt commented Aug 3, 2011

comment:6

Hi Volker, sorry for the delay - travel/jetlag/work ;-)

Discarding faces and repeated cones is quite natural when they come from some construction and I have already wished a few times that it would be possible to drop them without using check=True option which does much more work. In fact, that's the reason why there is a function discard_faces. So I propose this patch which adds a discard_faces=False keyword which works independently of check. I have also fixed the code and documentation pieces that were relying on the old behaviour, I don't get now any errors for tests in geometry or schemes directories.

@novoselt
Copy link
Member

novoselt commented Aug 3, 2011

Attachment: trac_11627_alternative.patch.gz

@vbraun

This comment has been minimized.

@vbraun
Copy link
Member Author

vbraun commented Aug 11, 2011

comment:7

Looks good!

@vbraun
Copy link
Member Author

vbraun commented Aug 11, 2011

Changed author from Volker Braun to Andrey Novoseltsev

@vbraun
Copy link
Member Author

vbraun commented Aug 11, 2011

Reviewer: Volker Braun

@nexttime
Copy link
Mannequin

nexttime mannequin commented Sep 17, 2011

Merged: sage-4.7.2.alpha3

@nexttime nexttime mannequin removed the s: positive review label Sep 17, 2011
@nexttime nexttime mannequin closed this as completed Sep 17, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants