Closed tanvidc closed 5 years ago
How are you changing the directory? are you just changing the directory of matlab?
% Run a DEMO script on the output
% cd('C:\Users\tanvi\Documents\BPSM_PMToolbox-master') keyset = {'depth','porep','gor','api'}; val = [7,18,47,72]; M = containers.Map(keySet,val);
for i = 1:length(M) [cmdout, status] = PM.runScript(newModel, nDim, 'demo_opensim_output_3rd_party_format', num2str(val(i)), true); a = strcat(PMProjectDirectory, keyset{i},'.txt'); movefile('demo_1.txt',a) end
oh, ok :) ideally, you wouldn't have to do this. You would just code it correctly in the python script. But since we can't modify the python script yet, this is a good workaround.
Yes, can't change the python file or we get license error, so this is a workaround
On Tue, Oct 23, 2018 at 4:58 PM Mustafa Al Ibrahim notifications@github.com wrote:
oh, ok :) ideally, you wouldn't have to do this. You would just code it correctly in the python script. But since we can't modify the python script yet, this is a good workaround.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MosGeo/BPSM_PMToolbox/issues/10#issuecomment-432463362, or mute the thread https://github.com/notifications/unsubscribe-auth/AbT9iorB_b7edg_wUBFPpzHuyhdk7Tv6ks5un60OgaJpZM4X2pxo .
-- Tanvi Chheda Earth, Energy & Environmental Sciences Stanford University
Right now, the demo script outputs are being stored in BPSM_PMToolbox directory. It gets overwritten if you're iterating. I changed the directory to model directory in main file for now, but this can be changed in PetroMod.m