Comments (4)
Thanks for the comment/feedback, Adam. Let me post here what I exchanged in chat with you, as a starting point:
The dict representations can store "anything" (dec files are wild) but a DecayChain is in the present incantation a simple thing, only for a decay chain, not for n possible decay chains. If I understand quickly you rather want some splitting function that spits out a set/list of DecayChain instances?
This is very fair and something that has been on the list in my head since a while ... Actually for the same reason as you, meaning when I think in terms of searches of final states for some use-case ...
Let's try and get something worked out.
from decaylanguage.
Yes, that's what I'd like. I was thinking of the word "flattening" but this is used already in another context, so how about "expanding" the decay dicts to a list of unique decay chains.
Chris and I have written some similar logic already for the NTuple Wizard decays.py#L509-579 where it traverses down to the bottom of the tree (the final state) and works its way back up, collecting all combinations that arise from multiple decay modes (and PID substitutions, although that's not relevant here).
from decaylanguage.
I mean, they don't have to be DecayChain
objects since I'm unsure if it can handle e.g.
from decaylanguage.
Yes "expanding" sounds good to me, and it is easiest in a first implementation to only provide the output as a string (or a DaughtersDict on which you call to_string, if you prefer) .
Indeed there are some limitations and right now your decay Bs -> phi phi with 2 different phi decays would need to have the phi's aliased to different names. This is not too crazy if one things that the decays are different, but it is for sure a limitation in certain contexts.
Let's sort in the immediate future your use-case. I guess you will need a release as soon as this is done. Just let me know.
Thanks again,
from decaylanguage.
Related Issues (20)
- Replace pydot with graphviz HOT 7
- Remove constraint on Lark version and update to most recent ones HOT 3
- Update importlib.resources usage HOT 7
- CI clean-up + enhancement needed
- Either or type decay chains HOT 7
- Numbers in decay models are parsed as parameters HOT 1
- tox --> nox now? HOT 7
- Support for decay descriptors HOT 10
- _repr_svg_() is deprecated from graphviz v0.19 HOT 4
- Test notebooks in the CI
- Dead link in readme HOT 2
- How to extract branching fractions? HOT 9
- Add a CITATION.cff file
- Adapt to Lark 1.x
- restore AmpGen2GooFit conversion HOT 6
- New version? HOT 2
- Enhance test suite to verify all EvtGen models HOT 1
- Update README for recently added functionality
- Reduce or remove completely type: ignore statements
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from decaylanguage.