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

adapting output of FiniteStateMachine.process and __call__ to Automaton and Transducer #16132

Closed
dkrenn opened this issue Apr 11, 2014 · 24 comments

Comments

@dkrenn
Copy link
Contributor

dkrenn commented Apr 11, 2014

Currently, there is only .process and .__call__ in the abstract base class FiniteStateMachine. The outputs do not depend on the actual type (automaton/transducer). The aim of this ticket is to change this and produce an appropriate output for each type of finite state machine. When using .__call__ in an automaton this is whether an input was accepted (and not more); a transducer gives the only the produces output.

(Since there is a change in the output, we give a deprecation warning.)

Depends on #16128
Depends on #16061
Depends on #15990

CC: @cheuberg @sagetrac-skropf

Component: combinatorics

Keywords: finite state machine, process, output

Author: Daniel Krenn

Branch/Commit: afc15e5

Reviewer: Clemens Heuberger

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

@dkrenn dkrenn added this to the sage-6.2 milestone Apr 11, 2014
@dkrenn
Copy link
Contributor Author

dkrenn commented Apr 11, 2014

Author: Daniel Krenn

@dkrenn
Copy link
Contributor Author

dkrenn commented Apr 11, 2014

Commit: 70294bf

@dkrenn
Copy link
Contributor Author

dkrenn commented Apr 11, 2014

Last 10 new commits:

83b0341corrected one whitespace error
7633cacTransducer.cartesian_product: small correction in docstring
ab93aedMerge branch 'fsm/cartesian-product-intersection' into fsm/process_output_new
75aa9e1corrected doctests (after change of output)
d18312eMerge branch 'fsm/state_color' into fsm/process_output_new
2d43fddFiniteStateMachine: add failing doctests: non-hashable colors
547968aFiniteStateMachine.product_FiniteStateMachine, composition: fix unhashable colors
d51be51Automaton.determinisation(): docstring on hashable colors
c5dd860Merge branch 'fsm/state_color' into fsm/process_output_new
70294bftrac ticket number added

@dkrenn
Copy link
Contributor Author

dkrenn commented Apr 11, 2014

Branch: u/dkrenn/fsm/process_output_new

@dkrenn
Copy link
Contributor Author

dkrenn commented Apr 11, 2014

Dependencies: #15963, #16061

@cheuberg

This comment has been minimized.

@cheuberg
Copy link
Contributor

Changed branch from u/dkrenn/fsm/process_output_new to u/cheuberg/ticket/16132

@cheuberg
Copy link
Contributor

Changed dependencies from #15963, #16061 to #16128, #16061

@cheuberg
Copy link
Contributor

Changed commit from 70294bf to ed93dd3

@cheuberg
Copy link
Contributor

comment:6

Reviewed this patch, made minor modifications.

Replaced dependency on #15963 by #16128: #16128 is a revision of #15963 (see explanation in #16128 for background) and this patch is actually based on #16128.

@cheuberg
Copy link
Contributor

Reviewer: Clemens Heuberger

@dkrenn
Copy link
Contributor Author

dkrenn commented Apr 15, 2014

Changed branch from u/cheuberg/ticket/16132 to u/dkrenn/ticket/16132

@dkrenn
Copy link
Contributor Author

dkrenn commented Apr 15, 2014

comment:7

Cross-reviewed your changes; corrected one whitespaceerror. Feel free to set its status to positive_review.


Last 10 new commits:

ab93aedMerge branch 'fsm/cartesian-product-intersection' into fsm/process_output_new
75aa9e1corrected doctests (after change of output)
d18312eMerge branch 'fsm/state_color' into fsm/process_output_new
2d43fddFiniteStateMachine: add failing doctests: non-hashable colors
547968aFiniteStateMachine.product_FiniteStateMachine, composition: fix unhashable colors
d51be51Automaton.determinisation(): docstring on hashable colors
c5dd860Merge branch 'fsm/state_color' into fsm/process_output_new
70294bftrac ticket number added
ed93dd3Minor changes during review.
3820c49corrected whitespaceerror

@dkrenn
Copy link
Contributor Author

dkrenn commented Apr 15, 2014

Changed commit from ed93dd3 to 3820c49

@dkrenn
Copy link
Contributor Author

dkrenn commented Apr 16, 2014

comment:9

Does not merge on beta8.

@dkrenn
Copy link
Contributor Author

dkrenn commented Apr 16, 2014

Changed dependencies from #16128, #16061 to #16128, #16061, #15990

@dkrenn
Copy link
Contributor Author

dkrenn commented Apr 16, 2014

comment:11

Is now working on beta8. Please review changes.


Last 10 new commits:

75aa9e1corrected doctests (after change of output)
d18312eMerge branch 'fsm/state_color' into fsm/process_output_new
2d43fddFiniteStateMachine: add failing doctests: non-hashable colors
547968aFiniteStateMachine.product_FiniteStateMachine, composition: fix unhashable colors
d51be51Automaton.determinisation(): docstring on hashable colors
c5dd860Merge branch 'fsm/state_color' into fsm/process_output_new
70294bftrac ticket number added
ed93dd3Minor changes during review.
3820c49corrected whitespaceerror
a14dd81Merge remote-tracking branch 'origin/u/dkrenn/ticket/16132' into fsm/process_output_new-on-beta8

@dkrenn
Copy link
Contributor Author

dkrenn commented Apr 16, 2014

@dkrenn
Copy link
Contributor Author

dkrenn commented Apr 16, 2014

Changed commit from 3820c49 to a14dd81

@cheuberg
Copy link
Contributor

@cheuberg
Copy link
Contributor

comment:13

Reviewed the above merge with develop, merge is fine, doctests pass.

Replaced two raise E, V by raise E(V) in the spirit of #15990 which had been merged previously.

@cheuberg
Copy link
Contributor

Changed commit from a14dd81 to afc15e5

@dkrenn
Copy link
Contributor Author

dkrenn commented Apr 18, 2014

comment:14

Replying to @cheuberg:

Replaced two raise E, V by raise E(V) in the spirit of #15990 which had been merged previously.

Cross-reviewed: ok.

@vbraun
Copy link
Member

vbraun commented Apr 20, 2014

Changed branch from u/cheuberg/fsm_process_output_new-on-beta8 to afc15e5

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