Skip to content

Commit

Permalink
Describe how to add new parameters in src/README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Jun 20, 2022
1 parent 9d786d7 commit 2d43363
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
If you are looking for the main loop, start with `function _EquationSearch` in `SymbolicRegression.jl`. You can proceed from there.
All functions are imported at the top using `import {filename}Module` syntax, which should help you navigate the codebase.

If you are looking to add a new parameter, add a new attribute to the `Options` struct in `OptionsStruct.jl`.
Then, add a new argument to the `Options` function in `Options.jl`, and pass that argument to the constructor at the bottom of the function.
That parameter will then be available any where `Options` is used.

If you are trying to pass a function as a parameter, things get a bit complicated.
Check out the function `move_functions_to_workers` in `Configure.jl` to see how functions are passed to workers.

The file system is structured as follows. Indentation
shows dependencies.

Expand Down

0 comments on commit 2d43363

Please sign in to comment.