Commit 321082b1 authored by Jakob Gabriel's avatar Jakob Gabriel
Browse files

removed braces () after properties, for instance, q.grid() -> q.grid

parent 6140352b
......@@ -251,7 +251,7 @@ classdef (InferiorClasses = {?quantity.Symbolic}) Discrete ...
for i = 1:numel(obj)
data = obj(i).valueDiscrete();
data = obj(i).valueDiscrete;
zeros = find( abs(data) <= optArg.tol);
upCrossing = find( data(1:end-1) <= 0 & data(2:end) > 0);
......
......@@ -21,7 +21,7 @@ classdef BasicVariable < handle
h = numel(obj(1).derivatives);
end
function T = get.T(obj)
T = obj.timeDomain.upper();
T = obj.timeDomain.upper;
end
function dt = get.dt(obj)
if isa(obj.timeDomain, "quantity.EquidistantDomain")
......@@ -117,7 +117,7 @@ classdef BasicVariable < handle
tauDomain, tauDomain.lower, tDomain.name) / gamma( alpha );
elseif p == 0
D = [obj.fun()];
D = [obj.fun];
else
error("This should not happen")
end
......
......@@ -20,12 +20,12 @@ end
function testDiscrete(tc)
d = quantity.Domain("a", linspace(0, 1, 3));
tc.verifyEqual(d.Discrete.on(), d.grid());
tc.verifyEqual(d.Discrete.on(), d.grid);
end % testDiscrete
function testSymbolic(tc)
d = quantity.Domain("a", linspace(0, 1, 3));
tc.verifyEqual(d.Symbolic.on(), d.grid());
tc.verifyEqual(d.Symbolic.on(), d.grid);
end % testDiscrete
function testRename(tc)
......@@ -40,6 +40,9 @@ tc.verifyEqual([xyz.name], [xyz2.name]);
cba = d.rename(["c", "b", "a"], ["a", "b", "ab"]);
tc.verifyEqual([cba.name], ["c", "b", "a"]);
tc.verifyEqual([cba.n], [d.n]);
zZetaDomain = [quantity.Domain("z", linspace(0, 1, 3)), quantity.Domain("zeta", linspace(0, 1, 3))];
tc.verifyEqual([zZetaDomain.rename("a", "z").name], ["a", "zeta"])
end % testRename()
function testParser(tc)%profile on
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment