Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
- name: Run buildtool
uses: matlab-actions/run-build@v2
with:
tasks: compile # change to compile
tasks: test # change to compile

# Configure GitHub Pages to accept your artifact uploads
- name: Setup Pages
Expand All @@ -105,12 +105,12 @@ jobs:
with:
path: results # Upload results

# Upload compiled CTF file to deploy Web App
- name: Upload CTF file
uses: actions/upload-artifact@v6
with:
name: WebApp_CTF
path: WebAppArchive/*.ctf
# # Upload compiled CTF file to deploy Web App
# - name: Upload CTF file
# uses: actions/upload-artifact@v6
# with:
# name: WebApp_CTF
# path: WebAppArchive/*.ctf

# Publish reports to GitHub Pages so they can be viewed in a browser
- name: Deploy to GitHub Pages
Expand Down
79 changes: 77 additions & 2 deletions WorkshopGuide.m

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions code/ConcTimecourseView.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@
end

ax = uiaxes(parent);
ax.ColorOrder = obj.ConcColors;

xlabel(ax, "Time (hours)", 'FontName',obj.FontName);
ylabel(ax, "Concentrations (nanomole/liter)",'FontName',obj.FontName);

obj.lhDrug = plot(ax, NaN, NaN, '-','Linewidth',2,'Color',obj.ConcColors(1,:),'DisplayName','Drug');
obj.lhDrug = plot(ax, NaN, NaN, '-','Linewidth',2,'DisplayName','Drug');
hold(ax,'on');
obj.lhReceptor = plot(ax, NaN, NaN, '-','Linewidth',2,'Color',obj.ConcColors(2,:),'DisplayName','Receptor');
obj.lhComplex= plot(ax, NaN, NaN, '-','Linewidth',2,'Color',obj.ConcColors(3,:),'DisplayName','Complex');
obj.lhReceptor = plot(ax, NaN, NaN, '-','Linewidth',2,'DisplayName','Receptor');
obj.lhComplex= plot(ax, NaN, NaN, '-','Linewidth',2,'DisplayName','Complex');
hold(ax,'off');
lgd = legend(ax,'show','FontName',obj.FontName,'Color','none');
lgd.Box = "off";
Expand Down
7 changes: 4 additions & 3 deletions code/ROTimecourseView.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

properties ( Access = private )
Model
Axes

ThresholdStyle = {'Color','r','Linewidth',2,'LineStyle','--',...
'FontWeight','bold','LabelVerticalAlignment','middle'}; % style for threshold lines
Expand All @@ -12,8 +11,9 @@
% Leave these properties Hidden but public to enable access for any test generated
% with Copilot during workshop

% line handles
lhRO
Axes

end

properties ( Access = public )
Expand All @@ -37,10 +37,11 @@
end

ax = uiaxes(parent);
ax.ColorOrder = obj.ROColors;
xlabel(ax, "Time (hours)", 'FontName',obj.FontName);
ylabel(ax, "RO (%)",'FontName',obj.FontName);

obj.lhRO = plot(ax, NaN, NaN, 'Color', obj.ROColors,'Linewidth',2);
obj.lhRO = plot(ax, NaN, NaN,'Linewidth',2);
yline(ax,model.ThresholdValues(1), '--','efficacy','FontName',obj.FontName,obj.ThresholdStyle{:});
yline(ax,model.ThresholdValues(2), '--','safety','FontName',obj.FontName,obj.ThresholdStyle{:});
grid(ax,"on");
Expand Down
Binary file modified code/TMDDApp.mlapp
Binary file not shown.
6 changes: 1 addition & 5 deletions tests/tTMDDApp.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ function testChangeDosingAmountManualUpdate(testCase)
oldlhComplex_YData = testCase.App.ConcViewObj.lhComplex.YData;

% Drag slider
% if batchStartupOptionUsed()
% testCase.App.DosingAmountField.Value = 200;
% else
testCase.drag(testCase.App.DosingAmountSlider,100,200); % requires display (does not work on github)
% end
testCase.drag(testCase.App.DosingAmountSlider,100,200); % requires display

% Check plot update
testCase.verifyEqual(oldlhRO_XData, testCase.App.ROViewObj.lhRO.XData, "x values for RO were updated");
Expand Down