Added model_id and contents dict to directories in MODEL_SPEC for helper modules

This commit is contained in:
Claire Simpson 2025-04-25 18:40:23 -06:00
parent 88fb528b29
commit 3f33f4b639
7 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,5 @@
MODEL_SPEC = { MODEL_SPEC = {
'model_id': 'mymodel',
'args': { 'args': {
'blank': {'type': 'freestyle_string'}, 'blank': {'type': 'freestyle_string'},
'a': {'type': 'integer'}, 'a': {'type': 'integer'},
@ -6,7 +7,7 @@ MODEL_SPEC = {
'c': {'type': 'freestyle_string'}, 'c': {'type': 'freestyle_string'},
'foo': {'type': 'file'}, 'foo': {'type': 'file'},
'bar': {'type': 'file'}, 'bar': {'type': 'file'},
'data_dir': {'type': 'directory'}, 'data_dir': {'type': 'directory', 'contents': {}},
'raster': {'type': 'raster'}, 'raster': {'type': 'raster'},
'vector': {'type': 'vector'}, 'vector': {'type': 'vector'},
'simple_table': {'type': 'csv'}, 'simple_table': {'type': 'csv'},

View File

@ -1,4 +1,5 @@
MODEL_SPEC = { MODEL_SPEC = {
'model_id': 'mymodel',
'args': { 'args': {
'foo': {'type': 'file'}, 'foo': {'type': 'file'},
'bar': {'type': 'file'}, 'bar': {'type': 'file'},

View File

@ -1,6 +1,7 @@
MODEL_SPEC = { MODEL_SPEC = {
'model_id': 'mymodel',
'args': { 'args': {
'some_file': {'type': 'file'}, 'some_file': {'type': 'file'},
'data_dir': {'type': 'directory'}, 'data_dir': {'type': 'directory', 'contents': {}},
} }
} }

View File

@ -1,4 +1,5 @@
MODEL_SPEC = { MODEL_SPEC = {
'model_id': 'raster_model',
'args': { 'args': {
'raster': {'type': 'raster'}, 'raster': {'type': 'raster'},
} }

View File

@ -1,9 +1,10 @@
MODEL_SPEC = { MODEL_SPEC = {
'model_id': 'mymodel',
'args': { 'args': {
'a': {'type': 'integer'}, 'a': {'type': 'integer'},
'b': {'type': 'freestyle_string'}, 'b': {'type': 'freestyle_string'},
'c': {'type': 'freestyle_string'}, 'c': {'type': 'freestyle_string'},
'd': {'type': 'freestyle_string'}, 'd': {'type': 'freestyle_string'},
'workspace_dir': {'type': 'directory'}, 'workspace_dir': {'type': 'directory', 'contents': {}},
} }
} }

View File

@ -1,4 +1,5 @@
MODEL_SPEC = { MODEL_SPEC = {
'model_id': 'mymodel',
'args': { 'args': {
'foo': {'type': 'freestyle_string'}, 'foo': {'type': 'freestyle_string'},
'bar': {'type': 'freestyle_string'}, 'bar': {'type': 'freestyle_string'},

View File

@ -1,4 +1,5 @@
MODEL_SPEC = { MODEL_SPEC = {
'model_id': 'vec_model',
'args': { 'args': {
'vector': {'type': 'vector'}, 'vector': {'type': 'vector'},
} }