Skip to content
Snippets Groups Projects
Commit 7dc27210 authored by KyleKlenk's avatar KyleKlenk
Browse files

Deleted Summa_Actors_Settings.json from Repo

Configuration.py generates the file if it does not exist
parent eb086bc3
No related branches found
No related tags found
No related merge requests found
{
"JobSubmissionParams": {
"cpus-per-task": 8,
"memory": "32G",
"job-name": "SummaActors",
"account": "rpp-kshook",
"numHRUs": 517315,
"maxNumberOfJobs": 500,
"maxGRUsPerSubmission": 1000,
"executablePath": "/home/kklenk/SummaProjects/Summa-Actors/bin/summaMain"
},
"Configuration": {
"controlVersion": "SUMMA_FILE_MANAGER_V3.0.0",
"simStartTime": "1979-01-01 00:00",
"simEndTime": "2019-12-31 23:00",
"tmZoneInfo": "utcTime",
"settingsPath": "/project/6008034/kklenk/settings/SummaActorsSettings/",
"forcingPath": "/project/6008034/kklenk/forcingChunked/",
"outputPath": "/home/kklenk/projects/rpp-kshook/kklenk/SummaActorsOutput/",
"forcingFreq": "month",
"forcingStart": "1979-01-01",
"decisionsFile": "modelDecisions.txt",
"outputControlFile": "outputControl.txt",
"globalHruParamFile": "localParamInfo.txt",
"globalGruParamFile": "basinParamInfo.txt",
"attributeFile": "attributes.nc",
"trialParamFile": "trialParams.nc",
"forcingListFile": "forcingFileList.txt",
"initConditionFile": "coldState.nc",
"outFilePrefix": "SummaActors",
"vegTableFile": "TBL_VEGPARM.TBL",
"soilTableFile": "TBL_SOILPARM.TBL",
"generalTableFile": "TBL_GENPARM.TBL",
"noahmpTableFile": "TBL_MPTABLE.TBL"
},
"SummaActor": {
"OuputStructureSize": 250,
"maxGRUPerJob": 500
},
"JobActor": {
"FileManagerPath": "/home/kklenk/projects/rpp-kshook/kklenk/settings/SummaActorsSettings/fileManager.txt",
"outputCSV": false,
"csvPath": ""
},
"HRUActor": {
"printOutput": true,
"outputFrequency": 500
}
}
\ No newline at end of file
...@@ -12,9 +12,61 @@ def actor_setting(actor_id, setting_name, setting_value): ...@@ -12,9 +12,61 @@ def actor_setting(actor_id, setting_name, setting_value):
Function to create the inital summa_actors_settings file Function to create the inital summa_actors_settings file
""" """
def create_init_config(): def create_init_config():
Summa_Actor_Settings = ["OutputStructureSize", "maxGRUPerJob"] Settings_file = {
Job_Actor_Settings = ["FileManagerPath", "outputCSV", "csvPath"] "JobSubmissionParams": {
HRU_Actor_Settings = ["printOutput", "outputFrequency"] "cpus-per-task": 1,
"memory": "",
"job-name": "",
"account": "",
"numHRUs": 1,
"maxNumberOfJobs": 1,
"maxGRUPerSubmission": 1,
"executablePath": ""
},
"Configuration": {
"controlVersion": "",
"simStartTime": "",
"simEndTime": "",
"tmZoneInfo": "",
"settingsPath": "",
"forcingPath": "",
"outputPath": "",
"forcingFreq": "",
"forcingStart": "",
"decisionsFile": "",
"outputControlFile": "",
"globalHruParamFile": "",
"globalGruParamFile": "",
"attributeFile": "",
"trialParamFile": "",
"forcingListFile": "",
"initConditionFile": "",
"outFilePrefix": "",
"vegTableFile": "",
"soilTableFile": "",
"generalTableFile": "",
"noahmpTableFile": ""
},
"SummaActor": {
"OuputStructureSize": 1,
"maxGRUPerJob": 1
},
"JobActor": {
"FileManagerPath": "",
"outputCSV": "",
"csvPath": ""
},
"HRUActor": {
"printOutput": "",
"outputFrequency": 1
}
}
with open('Summa_Actors_Settings.json', 'w') as outfile:
json.dump(Settings_file, outfile, indent=2)
""" """
Function that creates the paths for the slurm output and the netCDF data Function that creates the paths for the slurm output and the netCDF data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment