Repository navigation
Adds doc for interface, examples also fix bug with export script #256
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
Merged
StephenNneji
merged 3 commits into
RascalSoftware:main
from
StephenNneji:more_docs_again
Sep 30, 2026
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,30 @@ | ||
| Examples | ||
| ======== | ||
| A few examples are available in RasCAL-2 which demonstrate the supported model and calculation types. These | ||
| example projects are created from the |RAT examples| where more explanations about each example can be found. | ||
|
|
||
| To open an example: | ||
|
|
||
| .. image:: /images/load_examples.png | ||
| :scale: 80 | ||
| :alt: Open example project | ||
| :align: center | ||
|
|
||
| 1. Click **File > Open Project** in the main menu to open the load project dialog. | ||
| 2. In the dialog, click the Examples tab to reveal a list of examples and click on the desired entry in the | ||
| examples list. | ||
|
|
||
| This will copy the selected example project to a temporary directory so the user does not modify the original, then | ||
| open the copied project in RasCAL-2. The following examples are available in the examples list: | ||
|
|
||
| 1. **DSPC standard layers**: Reflectivity analysis of a floating bilayer of DSPC using standard layer model. | ||
| 2. **DSPC custom layers**: Reflectivity analysis of a floating bilayer of DSPC using custom layer model. | ||
| 3. **DSPC custom XY**: Reflectivity analysis of a floating bilayer of DSPC using custom XY model. | ||
| 4. **domains standard layers**: Incoherent summing ('domains') from standard layer model. | ||
| 5. **domains custom layers**: Incoherent summing ('domains') from custom layer model. | ||
| 6. **domains custom XY**: Incoherent summing ('domains') from custom XY model. | ||
| 7. **absorption**: Shows absorption (imaginary SLD) effect usually seen below the critical edge. | ||
|
|
||
| .. |RAT Examples| raw:: html | ||
|
|
||
| <a href="https://rascalsoftware.github.io/RAT-Docs/1.0/python_examples/index.html" target="_blank">RAT API Examples</a> |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,56 @@ | ||
| User Guide | ||
| ========== | ||
|
|
||
| RasCAL-2 is available for windows, linux, and macOS. Follow the instructions on the :doc:`/install` page to install and | ||
| start the software on your system. The following pages describe the user interface and features of RasCAL-2. | ||
|
|
||
| .. toctree:: | ||
| :titlesonly: | ||
|
|
||
| user/overview | ||
| user/interface | ||
| user/structure | ||
| user/control | ||
| user/plot | ||
| user/project | ||
| user/terminal | ||
| user/features | ||
| user/settings | ||
|
|
||
| Check for RasCAL-2 Updates | ||
| -------------------------- | ||
| RasCAL-2 automatically checks for updates when the software is opened. You can manually check for update by clicking | ||
| **Help > Check for Update** in the main menu | ||
|
|
||
| After an update check, the software will notify the user if a new release is available and provide a hyperlink to | ||
| download the installer for the new version. | ||
|
|
||
| .. image:: /images/update_dialog.png | ||
| :scale: 80 | ||
| :alt: Update Dialog showing Successful Check | ||
| :align: center | ||
|
|
||
| .. note:: You can also stop the automatic update checks by unchecking the **Check for updates on startup** checkbox. | ||
|
|
||
| Report Issues | ||
| ------------- | ||
| When reporting a bug or crash, it is important to report the version of RasCAL-2 and provide the software logs so it is | ||
| easier to replicate and fix the issue. These information are present in the about dialog which can be opened by clicking | ||
| **Help > About** in the main menu. | ||
|
|
||
| .. image:: /images/about_dialog.png | ||
| :scale: 80 | ||
| :alt: About Dialog | ||
| :align: center | ||
|
|
||
| Exiting RasCAL-2 | ||
| ---------------- | ||
| RasCAL-2 can be closed by clicking the **File > Exit** on the main menu in the software. If the current rasCAL-2 project | ||
| has been modified or has unsaved results, a message will pop up to prompt saving the Project. Press the **Save** button | ||
| to specify saving the project, the **Discard** button to specify not saving the project, or Cancel to abort the | ||
| operation and return to the software. | ||
|
|
||
| .. image:: /images/unsaved_changes_dialog.png | ||
| :scale: 80 | ||
| :alt: Unsaved Changes Dialog | ||
| :align: center | ||
|
|
||
| .. note:: This dialog could look slightly different on linux or macOS. | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| Other Features | ||
| ============== | ||
| This page describes other useful features available in RasCAL-2 | ||
|
|
||
| Undo and Redo | ||
| ------------- | ||
| RasCAL-2 is designed so that changes made to the project, controls and results can be undone. You can undo | ||
| and redo an action by clicking the |undo| or redo |redo| buttons from the toolbar respectively. The history of | ||
| reversible actions can be viewed by clicking **Edit > Undo History**. This will open the undo history dialog which | ||
| shows a list of actions performed and the current action will be highlighted. Clicking on any entry in the list will | ||
| make that entry the current action by undoing or redoing until that action is reached. | ||
|
|
||
| .. image:: /images/undo_history.png | ||
| :scale: 80 | ||
| :alt: Undo History Dialog | ||
| :align: center | ||
|
|
||
| The following operations cannot be undone: | ||
|
|
||
| * Visualization actions (e.g. changing the plot zoom, or arrangement of windows), | ||
| * Changes to the settings, | ||
| * Exporting plot, project or fits. | ||
|
|
||
|
|
||
| .. |undo| image:: /images/undo.png | ||
| :scale: 10 | ||
|
|
||
| .. |redo| image:: /images/redo.png | ||
| :scale: 10 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,77 @@ | ||
| User Interface | ||
| ============== | ||
| Starting the RasCAL-2 software would show a splash screen while the software is loading. When loading is complete, | ||
| the startup screen will be shown. | ||
|
|
||
| .. image:: /images/startup_screen.png | ||
| :scale: 80 | ||
| :alt: RasCAL Startup Screen | ||
| :align: center | ||
|
|
||
| At the top of the startup screen is the title bar which will show the name of the software and the project name and | ||
| path if a project is opened. Below the title bar is the menu bar and toolbar, which provides access to a number of | ||
| operations. At the center of the screen are options for creating or loading a RasCAL project. | ||
|
|
||
| .. note:: Some operating systems can change the location and look of title and menu bar. | ||
|
|
||
| Menus and Toolbar | ||
| ----------------- | ||
| RasCAL-2 provides access to some actions in a menu bar under the tile bar. These actions are grouped into 5 | ||
| groups explained below. Clicking on a menu item will perform its associated action. | ||
|
|
||
| .. note:: On startup, some menu items like the **Windows** menu will be disabled. These menu items will be enabled | ||
| after a project is created or loaded. | ||
|
|
||
| 1. **File** | ||
| * **New Project**: Create a new project. | ||
| * **Open Project**: Open a existing project or example project | ||
| * **Open RasCAL-1 Project**: Open a RasCAL-1 project. | ||
| * **Save**: Save changes to the current project. | ||
| * **Save To Folder**: Save current project to another folder. | ||
| * **Export as Script**: Export the project as a python script. | ||
| * **Export Fits**: Export the results as CSV files. | ||
| * **Settings**: Open the settings dialog. | ||
| * **Exit**: Close the RasCAL application. | ||
| 2. **Edit** | ||
| * **Undo**: Undo the last action. | ||
| * **Redo**: Redo the last undone action. | ||
| * **Undo History**: View the action history. | ||
| 3. **Windows** | ||
| * **Tile Windows**: Arrange windows in a tile formation. | ||
| * **Reset to Default**: Reset the windows locations and sizes to the user saved defaults. | ||
| * **Save Current Window Positions**: Save the current positions and sizes of the windows as the user default. | ||
| 4. **Tools** | ||
| * **Show Sliders/Hide Sliders**: Show or hide slider view in the project window. see :ref:`about_sliders`. | ||
| * **Clear Terminal**: Clears the text in the terminal window. | ||
| 5. **Help** | ||
| * **Help**: Open the documentation website in the browser. | ||
| * **Check for Update**: Check online for new RasCAL-2 version. | ||
| * **About**: Show information about RasCAL-2. | ||
|
|
||
| RasCAL-2 also provides access to some actions in a toolbar below the menu bar. The toolbar actions are **New Project**, | ||
| **Open Project**, **Save**, **Undo**, **Redo**, **Settings**, and **Help**. Clicking on the appropriate icon in the | ||
| toolbar will perform its associated action. | ||
|
|
||
| Window Management | ||
| ----------------- | ||
| After creating or loading a project, the interface will display 4 sub-windows arranged by default in 2x2 irregular | ||
| grid. The sub-windows are | ||
|
|
||
| * Plot window (top left) | ||
| * Project window (top right) | ||
| * Terminal window (bottom left) | ||
| * Controls window (bottom right) | ||
|
|
||
| These sub-windows can be rearranged by clicking on the title bar of the sub-window and dragging the sub-window. The | ||
| sub-window can also be resized, minimised and maximized similar to the main window. It can be useful to make a | ||
| sub-window bigger or smaller to suit a workflow, after which the arrangement can be saved by clicking | ||
| **Windows > Save Current Window Positions** in the menu, this will make that arrangement the default and RasCAL will | ||
| use that saved arrangement whenever the software is started. | ||
|
|
||
| If you move a sub-window and want to revert back to you saved arrangement, click **Windows > Reset to Default** in the | ||
| menu. If you want to revert to the original arrangement, click **Windows > Tile Windows** then click | ||
| **Windows > Save Current Window Positions** in the menu to save the arrangement. | ||
|
|
||
|
|
||
| .. note:: The sub-windows cannot be dragged outside the boundary of the main software window but only within the | ||
| centre area of the main window. |
This file was deleted.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| Settings | ||
| ======== | ||
| The settings for RasCAL-2 can be configured by clicking |options| in the toolbar or clicking File > Settings in the | ||
| main menu. The settings dialog has 3 tabs: | ||
|
|
||
| 1. **General**: | ||
|
|
||
| .. image:: /images/settings_general.png | ||
| :scale: 80 | ||
| :alt: General Settings | ||
| :align: center | ||
|
|
||
| * **Style**: This sets the active theme of RasCAL-2. The software can use the default **system** theme, a **light** | ||
| or a **dark** theme. | ||
| * **Editor Fontsize**: This is the font size of the internal custom file editor. | ||
| * **Matlab As Default Editor**: This indicates that should if Matlab should be used to open both Python and Matlab | ||
| custom files. | ||
| * **Live Recalculate**: This indicates the results should be recalculated and plotted whenever the user changes values | ||
| outside edit mode. This can be disabled if running the calculation is expensive. | ||
| * **Show Stop Calculation Warning**: This indicates a warning should be shown to user when stopping a run will lead | ||
| to result being lost. | ||
|
|
||
| .. image:: /images/confirm_stop_dialog.png | ||
| :scale: 80 | ||
| :alt: Confirm Calculation Stop Dialog | ||
| :align: center | ||
|
|
||
| 2. **Plotting**: Setting related to plots. | ||
|
|
||
| .. image:: /images/settings_plot.png | ||
| :scale: 80 | ||
| :alt: Plot Settings | ||
| :align: center | ||
|
|
||
| * **Export Background Colour**: indicates if exported plot background should be white or transparent. | ||
|
|
||
|
|
||
| 3. **Matlab**: Setting related to running Matlab custom files. | ||
|
|
||
| .. image:: /images/settings_matlab.png | ||
| :scale: 80 | ||
| :alt: Matlab Settings | ||
| :align: center | ||
|
|
||
| * **Current Matlab Directory**: This tells RasCAL-2 where the Matlab installation for custom files is located. On | ||
| Windows and Linux, this should be the folder path e.g *C:\\Program Files\\MATLAB\\R2023a* while on MacOS should be | ||
| the app e.g */Applications/MATLAB_R2023b.app*. The minimum supported MATLAB is 2023b. | ||
| * **Matlab RAT directory**: This tells RasCAL-2 to use the provided Matlab RAT files when running a Matlab custom | ||
| file. This could provide improved performance by avoiding switching in and out of Matlab code. Download and use | ||
| the latest version of RAT, set this to the path of the RAT folder e.g *C:\\RAT*. |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.