diff --git a/WorkshopGuide.md b/WorkshopGuide.md index ee6366f..fcee2ea 100644 --- a/WorkshopGuide.md +++ b/WorkshopGuide.md @@ -19,19 +19,19 @@ In this workshop, you will: ## Table of Contents  [Workshop Requirements](#H_34C2FB57) - [Part 1: Getting the workshop files and configuring GitHub for automated testing and results publishing](#TMP_6b94) + [Part 1: Getting the workshop files and configuring GitHub for automated testing and results publishing](#TMP_9d15) - [Part 2: Generating your first tests](#TMP_8e08) + [Part 2: Generating your first tests](#TMP_2c65) - [Part 3: Finding existing tests and measuring coverage](#TMP_5a14) + [Part 3: Finding existing tests and measuring coverage](#TMP_8697) - [Part 4: Updating badges, committing our changes, and pushing to GitHub](#TMP_6cc2) + [Part 4: Updating badges, committing our changes, and pushing to GitHub](#TMP_4b51) - [Part 5: Create a pull request, watch GitHub Actions automatically test your changes and publish results](#TMP_4e06) + [Part 5: Create a pull request, watch GitHub Actions automatically test your changes and publish results](#TMP_70e8) - [Part 6: Compile the App in the CI workflow and download the artifact](#TMP_121c) + [Part 6: Compile the App in the CI workflow and download the artifact](#TMP_4ce6) - [Workshop wrap\-up and additional information](#TMP_1dbf) + [Workshop wrap\-up and additional information](#TMP_3265) @@ -56,7 +56,7 @@ The following steps cover all of the things you will need to successfully comple - The workshop leverages the free repository and CI capabilities offered by GitHub and GitHub Actions - Go to: [**https://github.com/signup**](https://github.com/signup) - + # Part 1: Getting the workshop files and configuring GitHub for automated testing and results publishing @@ -308,7 +308,7 @@ Click on the 'Run App' shortcut to start the app in MATLAB: ![image_20.png](WorkshopGuide_media/image_20.png) - + # Part 2: Generating your first tests @@ -530,7 +530,7 @@ Congratulations! You just created multiple tests for your MATLAB code! It was easier than you thought, right? - + # Part 3: Finding existing tests and measuring coverage @@ -869,7 +869,7 @@ It looks like we've achieved full statement coverage for [`generateSimFun`](./co ![image_65.png](WorkshopGuide_media/image_65.png) - + # Part 4: Updating badges, committing our changes, and pushing to GitHub @@ -1084,7 +1084,7 @@ At this point, all of your changes will be pushed to GitHub. ![image_84.png](WorkshopGuide_media/image_84.png) - + # Part 5: Create a pull request, watch GitHub Actions automatically test your changes and publish results @@ -1245,7 +1245,7 @@ The code coverage report looks like this: Now anyone that visits your repository can immediately see the quality of your code, explore your test and code coverage results, and will have more confidence in the code you are writing! - + # Part 6: Compile the App in the CI workflow and download the artifact @@ -1349,7 +1349,7 @@ You can now download the CTF file and upload it to your Web App Server using you [https://vdi\-wd1ah2\-348.dhcp.mathworks.com:9999/webapps/home/login.html](https://vdi-wd1ah2-348.dhcp.mathworks.com:9999/webapps/home/login.html) - + # Workshop wrap\-up and additional information diff --git a/code/LampView.m b/code/LampView.m index 736d3b4..5bb823b 100644 --- a/code/LampView.m +++ b/code/LampView.m @@ -25,7 +25,11 @@ methods function obj = LampView(parent,model) - + + arguments + parent + model (1,1) SimulationModel + end lampObj = uilamp(parent); lampObj.Tooltip = compose("Target occupancy does not remain\n between thresholds"); lampObj.Color = obj.LampColorFailure; diff --git a/code/SimulationModel.m b/code/SimulationModel.m index 3759d44..740c68e 100644 --- a/code/SimulationModel.m +++ b/code/SimulationModel.m @@ -39,11 +39,6 @@ methods function obj = SimulationModel() - - % check whether there is a MAT file - if ~exist("simFunction_Dose.mat","file") - generateSimFun(); - end % load Simfunction and dosing information load('simFunction_Dose.mat', 'simFun', 'doseTable'); diff --git a/code/TMDDApp.mlapp b/code/TMDDApp.mlapp index af8bfa9..d6145aa 100644 Binary files a/code/TMDDApp.mlapp and b/code/TMDDApp.mlapp differ