MosGeo / BPSMAutoToolbox

This is the repository for the Stanford BPSM Automation Toolbox. The library can be used for creating and simulating basin and petroleum system models for studying probabilistic interactions.
https://bpsm.stanford.edu/
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

opensim output location #10

Closed tanvidc closed 5 years ago

tanvidc commented 5 years ago

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

MosGeo commented 5 years ago

How are you changing the directory? are you just changing the directory of matlab?

tanvidc commented 5 years ago

% 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

MosGeo commented 5 years ago

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.

tanvidc commented 5 years ago

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

LinkedIn https://www.linkedin.com/in/tanvichheda