Skip to content

Commit

Permalink
update run script
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebacker committed Mar 17, 2024
1 parent 28652c1 commit b9e7b67
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/run_og_mys.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import json
import time
import numpy as np
import copy
from ogmys.calibrate import Calibration
from ogcore.parameters import Specifications
Expand All @@ -17,8 +18,8 @@

def main():
# Define parameters to use for multiprocessing
client = Client()
num_workers = min(multiprocessing.cpu_count(), 7)
client = Client(n_workers=num_workers)
print("Number of workers = ", num_workers)

# Directories to save data
Expand Down Expand Up @@ -56,12 +57,12 @@ def main():
"omega": d["omega"],
"g_n_ss": d["g_n_ss"],
"omega_SS": d["omega_SS"],
"rho": d["rho"],
"rho": np.array(d["rho"])[0, :, :],
"g_n": d["g_n"],
"imm_rates": d["imm_rates"],
"omega_S_preTP": d["omega_S_preTP"],
"e": d["e"],
}
}
p.update_specifications(updated_params)

# Run model
Expand Down

0 comments on commit b9e7b67

Please sign in to comment.