File tree Expand file tree Collapse file tree 8 files changed +214
-233
lines changed Expand file tree Collapse file tree 8 files changed +214
-233
lines changed Original file line number Diff line number Diff line change 3434 " from databricks.sdk import WorkspaceClient\n " ,
3535 " \n " ,
3636 " from nhp.databricks.icb import DatabricksICB\n " ,
37- " from nhp.model.helpers import load_params\n " ,
37+ " from nhp.model.params import load_params\n " ,
3838 " from nhp.model.run import run_all"
3939 ]
4040 },
8686 " params_path = dbutils.widgets.get(\" params_path\" )\n " ,
8787 " \n " ,
8888 " data_path = dbutils.widgets.get(\" data_path\" )\n " ,
89- " save_full_model_results = dbutils.widgets.get(\" save_full_model_results\" ) == \" True\"\n " ,
90- " # TODO: this will need to be updated with each new release manually\n " ,
91- " outputs_version = \" v4.2\" "
89+ " save_full_model_results = dbutils.widgets.get(\" save_full_model_results\" ) == \" True\"\n "
9290 ]
9391 },
9492 {
115113 "source" : [
116114 " params = load_params(params_path)\n " ,
117115 " \n " ,
116+ " outputs_version = params[\" app_version\" ]\n " ,
117+ " \n " ,
118118 " params[\" create_datetime\" ] = f\" {datetime.now():%Y%m%d_%H%M%S}\"\n " ,
119119 " \n " ,
120120 " metadata = {\n " ,
Original file line number Diff line number Diff line change 3434 " from databricks.sdk import WorkspaceClient\n " ,
3535 " \n " ,
3636 " from nhp.databricks.national import DatabricksNational\n " ,
37- " from nhp.model.helpers import load_params\n " ,
37+ " from nhp.model.params import load_params\n " ,
3838 " from nhp.model.run import run_all"
3939 ]
4040 },
8686 " params_path = dbutils.widgets.get(\" params_path\" )\n " ,
8787 " \n " ,
8888 " data_path = dbutils.widgets.get(\" data_path\" )\n " ,
89- " save_full_model_results = dbutils.widgets.get(\" save_full_model_results\" ) == \" True\"\n " ,
90- " # TODO: this will need to be updated with each new release manually\n " ,
91- " outputs_version = \" v4.2\" "
89+ " save_full_model_results = dbutils.widgets.get(\" save_full_model_results\" ) == \" True\" "
9290 ]
9391 },
9492 {
115113 "source" : [
116114 " params = load_params(params_path)\n " ,
117115 " \n " ,
116+ " outputs_version = params[\" app_version\" ]\n " ,
117+ " \n " ,
118118 " params[\" create_datetime\" ] = f\" {datetime.now():%Y%m%d_%H%M%S}\"\n " ,
119119 " \n " ,
120120 " metadata = {\n " ,
Original file line number Diff line number Diff line change 3434 " from databricks.sdk import WorkspaceClient\n " ,
3535 " \n " ,
3636 " from nhp.databricks.provider import DatabricksProvider\n " ,
37- " from nhp.model.helpers import load_params\n " ,
37+ " from nhp.model.params import load_params\n " ,
3838 " from nhp.model.run import run_all"
3939 ]
4040 },
8686 " params_path = dbutils.widgets.get(\" params_path\" )\n " ,
8787 " \n " ,
8888 " data_path = dbutils.widgets.get(\" data_path\" )\n " ,
89- " save_full_model_results = dbutils.widgets.get(\" save_full_model_results\" ) == \" True\"\n " ,
90- " # TODO: this will need to be updated with each new release manually\n " ,
91- " outputs_version = \" v4.2\" "
89+ " save_full_model_results = dbutils.widgets.get(\" save_full_model_results\" ) == \" True\" "
9290 ]
9391 },
9492 {
115113 "source" : [
116114 " params = load_params(params_path)\n " ,
117115 " \n " ,
116+ " outputs_version = params[\" app_version\" ]\n " ,
117+ " \n " ,
118118 " params[\" create_datetime\" ] = f\" {datetime.now():%Y%m%d_%H%M%S}\"\n " ,
119119 " \n " ,
120120 " metadata = {\n " ,
417417 },
418418 "nbformat" : 4 ,
419419 "nbformat_minor" : 0
420- }
420+ }
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ requires-python = ">=3.12"
77
88dependencies = [
99 " databricks-connect>=16.1.6" ,
10- " nhp-model @ git+https://github.com/the-strategy-unit/[email protected] " ,
10+ " nhp-model" ,
1111 " pandas>=2.3.2" ,
1212 " pyspark>=3.5.6" ,
1313]
@@ -75,3 +75,6 @@ version_file = "src/nhp/_version.py"
7575
7676[tool .ty .src ]
7777exclude = [" notebooks" ]
78+
79+ [tool .uv .sources ]
80+ nhp-model = { git = " https://github.com/the-strategy-unit/nhp_model.git" , rev = " v4.3.0" }
Original file line number Diff line number Diff line change 11resources :
22 jobs :
3- NHP_Model-v4_2_1 -Run_ICB :
4- name : NHP Model v4.2.1 Run (ICB)
3+ NHP_Model-v4_3 -Run_ICB :
4+ name : NHP Model v4.3.0 Run (ICB)
55 tasks :
66 - task_key : list_files
77 notebook_task :
@@ -47,6 +47,6 @@ resources:
4747 - name : queue_path
4848 default : " /Volumes/nhp/model_data/queue/icb/"
4949 - name : data_path
50- default : " /Volumes/nhp/model_data/files/v4.2.1 /"
50+ default : " /Volumes/nhp/model_data/files/v4.3.0 /"
5151 - name : save_full_model_results
5252 default : " false"
Original file line number Diff line number Diff line change 11resources :
22 jobs :
3- NHP_Model-v4_2_1 -Run_National :
4- name : NHP Model v4.2.1 Run (National)
3+ NHP_Model-v4_3 -Run_National :
4+ name : NHP Model v4.3.0 Run (National)
55 tasks :
66 - task_key : list_files
77 notebook_task :
@@ -47,6 +47,6 @@ resources:
4747 - name : queue_path
4848 default : " /Volumes/nhp/model_data/queue/national/"
4949 - name : data_path
50- default : " /Volumes/nhp/model_data/files/v4.2.1 /"
50+ default : " /Volumes/nhp/model_data/files/v4.3.0 /"
5151 - name : save_full_model_results
5252 default : " false"
Original file line number Diff line number Diff line change 11resources :
22 jobs :
3- NHP_Model-v4_2_1 -Run_Provider :
4- name : NHP Model v4.2.1 Run (Provider)
3+ NHP_Model-v4_3 -Run_Provider :
4+ name : NHP Model v4.3.0 Run (Provider)
55 tasks :
66 - task_key : list_files
77 notebook_task :
@@ -47,6 +47,6 @@ resources:
4747 - name : queue_path
4848 default : " /Volumes/nhp/model_data/queue/provider/"
4949 - name : data_path
50- default : " /Volumes/nhp/model_data/files/v.4.2.1 /"
50+ default : " /Volumes/nhp/model_data/files/v4.3.0 /"
5151 - name : save_full_model_results
5252 default : " false"
You can’t perform that action at this time.
0 commit comments