-
Notifications
You must be signed in to change notification settings - Fork 9
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
Discussion on patterns. #438
Comments
so Aerosol could be something like Template Method PatternThe Template Method Pattern could be employed to define the skeleton of an aerosol process algorithm, letting subclasses redefine certain steps of the algorithm without changing its structure. For instance, a generic Factory Method PatternThe Factory Method Pattern can facilitate the creation of objects without specifying the exact class of object that will be created. This is particularly useful for aerosol modeling, where different processes might be selected based on atmospheric conditions or other criteria. A Composition of Runnable ObjectsAerosol modeling processes could be structured as a series of runnable objects, where each process (e.g., coagulation, condensation) is encapsulated as a runnable that can be executed in sequence or parallel, depending on the model's requirements. |
I was looking a LangChain, and I kind of like how they setup their process.
They have a template to generate runnable objects (or process), then compose them in a series, then evaluate the composed object. Each step can be modified, run, or composed in a different order.
From LangChain doc: https://github.com/langchain-ai/langchain/blob/master/libs/core/langchain_core/runnables/base.py
"""A sequence of runnables, where the output of each is the input of the next.
The text was updated successfully, but these errors were encountered: