Skip to content
This repository was archived by the owner on Oct 11, 2021. It is now read-only.

fix: allow Iterable in Topology constructor#498

Merged
redeboer merged 1 commit intomasterfrom
iterable-nodes
Feb 17, 2021
Merged

fix: allow Iterable in Topology constructor#498
redeboer merged 1 commit intomasterfrom
iterable-nodes

Conversation

@redeboer
Copy link
Copy Markdown
Member

Even though the constructor Topology allows one to use nodes={0, 1} (the set is cast internally to a frozenset), mypy says this is not allowed. This PR fixes this behaviour.

@redeboer redeboer added the Bug Something isn't working label Feb 17, 2021
@redeboer redeboer self-assigned this Feb 17, 2021
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 17, 2021

Codecov Report

Merging #498 (ed60b5a) into master (200385d) will decrease coverage by 0.04%.
The diff coverage is 60.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #498      +/-   ##
==========================================
- Coverage   89.26%   89.21%   -0.05%     
==========================================
  Files          22       22              
  Lines        3334     3338       +4     
  Branches      844      845       +1     
==========================================
+ Hits         2976     2978       +2     
- Misses        194      195       +1     
- Partials      164      165       +1     
Flag Coverage Δ
unittests 89.21% <60.00%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/expertsystem/reaction/topology.py 90.30% <60.00%> (-0.55%) ⬇️
src/expertsystem/amplitude/helicity_decay.py 89.57% <0.00%> (-0.78%) ⬇️
src/expertsystem/reaction/conservation_rules.py 92.15% <0.00%> (+0.58%) ⬆️

@redeboer redeboer merged commit 2061d31 into master Feb 17, 2021
@redeboer redeboer deleted the iterable-nodes branch February 17, 2021 17:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant