Skip to content
Snippets Groups Projects
Verified Commit 2def6561 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Return an empty dprior object if bayestopt_ is empty.

parent 4a7bcac2
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,12 @@ classdef dprior < handle
%
% REQUIREMENTS
% None.
if ~nargin % Empty object
if ~nargin
% Return an mpty object
return
end
if isempty(bayestopt_)
% Return an empty object
return
end
if isfield(bayestopt_, 'p1'), o.p1 = bayestopt_.p1; end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment