-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds code to construct inputs for the compiled code (#25)
* Tidies up configs for pydantic models * Moves enums into "utils/enums.py" * First draft of "inputs.py" code to construct inputs for compiled code * Renames enums * Moves definition of dataclasses to "utils/dataclasses.py" * Tidies up "inputs" module with "make_problem"2" and "make_cells" routines * Adds offset to the "index" routine in "classList.py" * Adds "NaNList" class to "tests/utils.py" * Adds "test_inputs.py", and corrects code in "inputs.py" * Adjusts tests to fit with pybind example * Updates code to ensure tests pass * Renames parameters to match matlab updates * Converts "inputs.py" to use C++ objects directly. * Renames "misc.py" as "wrappers.py" and "Calc" enum as "Calculations" * Adds background actions to the contrast model * Adds file wrappers to "make"cells" * Adds additional examples to "test_inputs.py" to improve test coverage" * Adds code to support recording custom files in "make_cells" * Updates submodule and tidying up * Updates requirements * . . .and "pyproject.toml" * Fixes pydantic to version 2.6.4 * . . . and "setup.py" * Sort out version requirements * Addresses review comments and import statements * Changes parameters from optional to compulsory in "Layer" and "AbsorptionLayer" models * Enables optional hydration in layer models
- Loading branch information
1 parent
b62c5d4
commit f635416
Showing
22 changed files
with
1,595 additions
and
627 deletions.
There are no files selected for viewing
This file contains 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import os | ||
from RAT.classlist import ClassList | ||
from RAT.project import Project | ||
import RAT.controls | ||
from RAT.controls import set_controls | ||
import RAT.models | ||
|
||
|
||
dir_path = os.path.dirname(os.path.realpath(__file__)) | ||
os.environ["RAT_PATH"] = os.path.join(dir_path, '') |
This file contains 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 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 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.