Skip to content
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

Sa_calc variable not found #1

Open
flintm opened this issue Jun 15, 2020 · 0 comments
Open

Sa_calc variable not found #1

flintm opened this issue Jun 15, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@flintm
Copy link
Owner

flintm commented Jun 15, 2020

Reported through email:

% [Sas(:,l), EDPs(:,:,l), pd_Cs(:,l), paramNCs(:,:,l), ...
% fragSs(:,:,:,l), DamageProbs(:,:,:,l), ...
% Sa_calc, EL_PPs(:,:,l), EL_PP_cases(:,l), EAL_S(:,l),...
% EAL_NS(:,l), EAL_C(:,l)] = M2_PBEE_Simple_Orig(struc, RD_c, Years);
[Sas(:,l), EDPs(:,:,l), pd_Cs(:,l), paramNCs(:,:,l), ...
fragSs(:,:,:,l), DamageProbs(:,:,:,l), ...
EL_PPs(:,:,l), EL_PP_cases(:,l), EAL_S(:,l),...
EAL_NS(:,l), EAL_C(:,l)] = M2_PBEE_Simple(numCase, RD_c, ...
hazardInfo, SaCalc, EDP, Sa, DSS(l,:),...
DSNS(l,:), Repair_cost_S, Repair_cost_NS,...
Repair_cost_C, T1(l), Years);

Undefined function or variable 'Sa_calc'.
Error in M2_M3_Main_Run_All (line 962)
M2_Plot_Fragility(xlims(kk,:),Sa_calc,...

Error has to do with code not being able to find "Sa_calc" that is needed by the new function Mw_PBEE_Simple. The Orignal version probably outputs Sa_calc and so wouldn't have been an issue with but it is not part of the package.

@flintm flintm added the bug Something isn't working label Jun 15, 2020
@flintm flintm self-assigned this Jun 15, 2020
flintm pushed a commit that referenced this issue Jun 15, 2020
…SaCalc. Other minor documentation updates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant