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

ENH: annotate graph edges as optionals #20

Closed
wants to merge 6 commits into from

Conversation

ankostis
Copy link

@ankostis ankostis commented Sep 30, 2019


I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Usefull when 2 (or more) operations provifing the same output,
and only one has fully satisfied inputs.
Before it would fail trying to evaluate the un-satisfied ones.

+ New TC added.
.
were writing in text-mode in PY3. and failing as encoding error.
@codecov-io
Copy link

Codecov Report

Merging #20 into master will increase coverage by 0.43%.
The diff coverage is 84.61%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #20      +/-   ##
=========================================
+ Coverage   77.87%   78.3%   +0.43%     
=========================================
  Files           5       5              
  Lines         348     355       +7     
=========================================
+ Hits          271     278       +7     
  Misses         77      77
Impacted Files Coverage Δ
graphkit/functional.py 93.82% <100%> (+0.07%) ⬆️
graphkit/base.py 79.68% <100%> (+0.32%) ⬆️
graphkit/network.py 70.93% <77.77%> (+0.73%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e70718b...f492e41. Read the comment docs.

@ankostis ankostis changed the title ENH(optional): same *need* used by 2 *operations*, and only for one of them to be optional. ENH(optional): allow same need for 2 operations, only one of them optional. Sep 30, 2019
@ankostis ankostis changed the title ENH(optional): allow same need for 2 operations, only one of them optional. ENH(selective optionals): allow same need for 2 operations, only one of them optional. Sep 30, 2019
@ankostis
Copy link
Author

ankostis commented Oct 5, 2019

My mistake, this enhancement is not needed.
(it is though towards implementing #22-2.2).

Will scavenge TC.

@ankostis ankostis closed this Oct 5, 2019
ankostis added a commit to ankostis/graphtik that referenced this pull request Oct 5, 2019
@ankostis ankostis changed the title ENH(selective optionals): allow same need for 2 operations, only one of them optional. ENH: annotate graph edges as optionals Oct 9, 2019
@ankostis
Copy link
Author

ankostis commented Oct 9, 2019

Eventually merged.

ankostis added a commit to ankostis/graphtik that referenced this pull request Oct 11, 2019
but still annotate edges with optional edge data-attribute.

Reverted bc Operation must not know its network, to belong to more than one.
Also the `Operation.net` contradicted `NetwotkOperation.net`;
the later indeed is the network it wraps
(not the net it is part of).
ankostis added a commit to ankostis/graphtik that referenced this pull request Oct 11, 2019
but still annotate edges with optional edge data-attribute.

Reverted bc Operation must not know its network, to belong to more than one.
Also the `Operation.net` contradicted `NetwotkOperation.net`;
the later indeed is the network it wraps
(not the net it is part of).
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