-
Couldn't load subscription status.
- Fork 39
Add Custom Pathfinding #303
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
Open
chuksys
wants to merge
4
commits into
bitcoin-dev-project:main
Choose a base branch
from
chuksys:custom-pathfinding
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
4a74f9f
simln-lib/feat: Add Pathfinder trait
sangbida 8c43804
simln-lib/test: Add tests for custom pathfinding
sangbida e5b94fa
sim_node/feat: Add a default implementation for DefaultPathFinder
sangbida 04842b1
sim_node/feat: Implement Scoring for DefaultPathfinder
chuksys File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not pass the pathfinder to
create_simulation_with_network? there should be a way to create a simulation with a custom one.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that makes sense though since
DefaultPathFinderdepends on the network graph, we would probably have to pass the graph intocreate_simulation_with_networktoo which seems unnecessary to me.If a user needs to create a simulation with a custom pathfinder, don't you think they can simply instantiate their custom pathfinder here? Moreso, if they have a custom pathfinder, they would probably be comfortable using
simln-libdirectly, no?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah... don't see any other way.
here how? If using
simlnas a lib, thiscreate_simulation_with_networkfunction is the one they would use to create aSimulation. They can setup their own custom pathfinder but would need a way to pass it somehow tosimln-libso that aSimulationcan be setup using their custom pathfinder.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's my perspective -
sim-cliis the application layer which should have the default settings which can be used to run a simulation out-of-the-box andsimln-libis the library which users can depend on and which they can pass custom values to, to run custom simulations that are not possible with the defaultsim-cliapplication. From what you are saying, the user would be expected to depend on bothsim-clias well assimln-lib. Shouldn't the user just depend onsimln-lib(this is making me thinkcreate_simulationandcreate_simulation_with_networkmethods belong tosimln-liband notsim-cli)?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hehe woops, my bad, I just realized that
create_simulationandcreate_simulation_with_networkare insim-cli.I saw those (
create_simulationandcreate_simulation_with_network) as lib utils since having users do everything that is in there seemed like a handful. But you made me realize they are not insimln-lib😅 so what you said makes sense.