From 6f78722f70ef88b2c534f9128f6e6f895c35d2e8 Mon Sep 17 00:00:00 2001 From: Mingbo Peng Date: Thu, 10 Oct 2024 16:35:54 +0800 Subject: [PATCH] fix(domain): change .cloud to .solutions in tests and doc --- README.md | 5 +++-- src/PollinationSDK.Tests/Api/JobsApiTests.cs | 4 ++-- src/PollinationSDK.Tests/Model/RecipeTests.cs | 6 +++--- src/PollinationSDK.Tests/TestSample/LocalDatabase.json | 4 ++-- src/PollinationSDK/Wrapper/JobRunner.cs | 2 +- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 0a3dc4308..53a81b141 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -[![Build](https://pollination.cloud-dotnet/workflows/CD/badge.svg)](https://pollination.cloud-dotnet/actions) [![NuGet Version and Downloads count](https://buildstats.info/nuget/PollinationSDK?dWidth=50)](https://www.nuget.org/packages/PollinationSDK) +[![Build](https://github.com/pollination/csharp-sdk/actions/workflows/cd.yaml/badge.svg)](https://github.com/pollination/csharp-sdk/actions/workflows/cd.yaml) +[![NuGet Version and Downloads count](https://buildstats.info/nuget/PollinationSDK?dWidth=50)](https://www.nuget.org/packages/PollinationSDK) # PollinationSDK - the C# library for the pollination-server @@ -9,7 +10,7 @@ This C# SDK is automatically generated by the [OpenAPI Generator](https://openap - API version: 1.1.0 - SDK version: 1.1.0 - Build package: org.openapitools.codegen.languages.CSharpClientCodegen - For more information, please visit [https://pollination.cloud](https://pollination.cloud) + For more information, please visit [https://pollination.solutions](https://pollination.solutions) ## Frameworks supported diff --git a/src/PollinationSDK.Tests/Api/JobsApiTests.cs b/src/PollinationSDK.Tests/Api/JobsApiTests.cs index f189ab3dd..b0c93085f 100644 --- a/src/PollinationSDK.Tests/Api/JobsApiTests.cs +++ b/src/PollinationSDK.Tests/Api/JobsApiTests.cs @@ -332,8 +332,8 @@ public void RunInputsTest() private JobInfo CreateTestJobInfo() { - //var recipe = @"https://api.staging.pollination.cloud/registries/ladybug-tools/recipe/annual-daylight/0.6.4"; - var recipe = @"https://api.staging.pollination.cloud/registries/ladybug-tools/recipe/daylight-factor/0.7.14-viz"; + //var recipe = @"https://api.staging.pollination.solutions/registries/ladybug-tools/recipe/annual-daylight/0.6.4"; + var recipe = @"https://api.staging.pollination.solutions/registries/ladybug-tools/recipe/daylight-factor/0.7.14-viz"; var job = new Job(recipe); diff --git a/src/PollinationSDK.Tests/Model/RecipeTests.cs b/src/PollinationSDK.Tests/Model/RecipeTests.cs index 3ffebfff9..dcbd5b905 100644 --- a/src/PollinationSDK.Tests/Model/RecipeTests.cs +++ b/src/PollinationSDK.Tests/Model/RecipeTests.cs @@ -25,17 +25,17 @@ public void Init() using (WebClient wc = new WebClient()) { // Annual daylight - var url = @"https://api.staging.pollination.cloud/recipes/ladybug-tools/annual-daylight/tags/latest"; + var url = @"https://api.staging.pollination.solutions/recipes/ladybug-tools/annual-daylight/tags/latest"; var json = wc.DownloadString(url); this.annualDaylight = RecipePackage.FromJson(json).Manifest; // Daylight factor - url = @"https://api.staging.pollination.cloud/recipes/ladybug-tools/daylight-factor/tags/latest"; + url = @"https://api.staging.pollination.solutions/recipes/ladybug-tools/daylight-factor/tags/latest"; json = wc.DownloadString(url); this.daylightFactor = RecipePackage.FromJson(json).Manifest; // Daylight factor - url = @"https://api.staging.pollination.cloud/recipes/ladybug-tools/annual-energy-use/tags/latest"; + url = @"https://api.staging.pollination.solutions/recipes/ladybug-tools/annual-energy-use/tags/latest"; json = wc.DownloadString(url); this.annualEnergyUse = RecipePackage.FromJson(json).Manifest; } diff --git a/src/PollinationSDK.Tests/TestSample/LocalDatabase.json b/src/PollinationSDK.Tests/TestSample/LocalDatabase.json index 7b4e5daee..6cf938689 100644 --- a/src/PollinationSDK.Tests/TestSample/LocalDatabase.json +++ b/src/PollinationSDK.Tests/TestSample/LocalDatabase.json @@ -1,4 +1,4 @@ [ - {"JobID":"f8ea1492-f270-4161-a28c-651623a0d132","LocalJob":{"RecipeOwner":"ladybug-tools","Recipe":{"type":"RecipeInterface","api_version":"v1beta1","metadata":{"type":"MetaData","name":"annual-energy-use","tag":"0.5.2","annotations":{},"app_version":"3.1.0","keywords":["honeybee","energy","ladybug-tools","energyplus","openstudio","energy","annual-energy-use"],"maintainers":[{"type":"Maintainer","name":"chris","annotations":{},"email":"chris@ladybug.tools"},{"type":"Maintainer","name":"ladybug-tools","annotations":{},"email":"info@ladybug.tools"}],"home":"https://github.com/pollination/annual-energy-use","sources":["https://hub.docker.com/r/ladybugtools/honeybee-energy"],"icon":"https://raw.githubusercontent.com/ladybug-tools/artwork/master/icons_components/honeybee/png/eui.png","description":"Run an annual energy simulation and compute energy use intensity.","license":{"type":"License","name":"PolyForm Shield License 1.0.0","annotations":{},"url":"https://polyformproject.org/wp-content/uploads/2020/06/PolyForm-Shield-1.0.0.txt"}},"annotations":{},"source":"https://api.pollination.cloud/registries/ladybug-tools/recipe/annual-energy-use/0.5.2","inputs":[{"type":"DAGFileInput","alias":[{"items_type":"String","type":"DAGArrayInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.simulation","function":"list_to_additional_idf","annotations":{},"index":0}],"default":[],"required":false,"name":"add_str","annotations":{},"description":"THIS OPTION IS JUST FOR ADVANCED USERS OF ENERGYPLUS. An additional text string to be appended to the IDF before simulation. The input should include complete EnergyPlus objects following the IDF format. This input can be used to include EnergyPlus objects that are not currently supported by honeybee."}],"required":false,"extensions":["idf"],"name":"additional-idf","annotations":{},"description":"An IDF file with text to be appended before simulation. This input can be used to include large EnergyPlus objects that are not currently supported by honeybee."},{"type":"DAGFileInput","alias":[{"type":"DAGGenericInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.ddy","function":"ddy_handler","annotations":{},"index":0}],"required":true,"name":"ddy","annotations":{},"description":"The path to a .ddy file or an .epw file with design days to be used for the initial sizing calculation."}],"required":true,"extensions":["ddy"],"name":"ddy","annotations":{},"description":"A DDY file with design days to be used for the initial sizing calculation."},{"type":"DAGFileInput","alias":[],"required":true,"extensions":["epw"],"name":"epw","annotations":{},"description":"EPW weather file to be used for the annual energy simulation."},{"type":"DAGFolderInput","alias":[{"items_type":"Generic","type":"DAGArrayInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.simulation","function":"measures_to_folder","annotations":{},"index":0}],"default":[],"required":false,"name":"measures","annotations":{},"description":"An optional list of measures to apply to the OpenStudio model upon export. Use the \"HB Load Measure\" component to load a measure into Grasshopper and assign input arguments. Measures can be downloaded from the NREL Building Components Library (BCL) at (https://bcl.nrel.gov/)."}],"required":false,"name":"measures","annotations":{},"description":"A folder containing an OSW JSON be used as the base for the execution of the OpenStuduo CLI. This folder must also contain all of the measures that are referenced within the OSW."},{"type":"DAGFileInput","alias":[{"type":"DAGGenericInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.model","function":"model_to_json","annotations":{},"index":0},{"type":"IOAliasHandler","language":"csharp","module":"Pollination.RhinoHandlers","function":"HBModelToJSON","annotations":{},"index":0}],"required":true,"name":"model","annotations":{},"description":"A Honeybee Model to simulate or the path to a HBJSON file of a Model. This can also be the path to a HBpkl file, though this is only recommended for cases where the model is extremely large."},{"type":"DAGLinkedInputAlias","platform":["rhino"],"handler":[{"type":"IOAliasHandler","language":"csharp","module":"Pollination.RhinoHandlers","function":"RhinoHBModelToJSON","annotations":{},"index":0}],"required":true,"name":"model","annotations":{},"description":"This input links the model to Rhino model."}],"required":true,"extensions":["hbjson","json","osm","idf"],"name":"model","annotations":{},"description":"An energy Model as either a HBJSON, OSM, or IDF."},{"type":"DAGFileInput","alias":[{"type":"DAGGenericInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.simulation","function":"energy_sim_par_to_json","annotations":{},"index":0},{"type":"IOAliasHandler","language":"csharp","module":"Pollination.RhinoHandlers","function":"HBSimulationParameterToJSON","annotations":{},"index":0}],"required":false,"name":"sim_par","annotations":{},"description":"A SimulationParameter object that describes all of the setting for the energy simulation. If None, some default simulation parameters will automatically be used. This can also be the path to a SimulationParameter JSON file."},{"type":"DAGLinkedInputAlias","platform":["rhino"],"handler":[{"type":"IOAliasHandler","language":"csharp","module":"Pollination.RhinoHandlers","function":"RhinoSimulationParameterToJSON","annotations":{},"index":0}],"required":true,"name":"sim_par","annotations":{},"description":"This input links to SimulationParameter setting in Rhino."}],"required":false,"extensions":["json"],"name":"sim-par","annotations":{},"description":"SimulationParameter JSON that describes the settings for the simulation."},{"type":"DAGStringInput","default":"si","alias":[],"required":false,"spec":{"enum":["si","ip"],"type":"string"},"name":"units","annotations":{},"description":"A switch to indicate whether the data in the final EUI file should be in SI (kWh/m2) or IP (kBtu/ft2). Valid values are \"si\" and \"ip\"."},{"type":"DAGStringInput","default":"","alias":[{"items_type":"String","type":"DAGArrayInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.simulation","function":"viz_variables_to_string","annotations":{},"index":0}],"default":[],"required":false,"name":"viz_vars","annotations":{},"description":"A list of text for EnergyPlus output variables to be visualized on the geometry in an output HTML report. If unspecified, no report is produced. For example, \"Zone Air System Sensible Heating Rate\"."}],"required":false,"name":"viz-variables","annotations":{},"description":"Text for EnergyPlus output variables to be visualized on the geometry in an output view_data HTML report. If unspecified, no view_data report is produced. Each variable should be in \"quotes\" and should be preceded by a -v option. For example\n-v \"Zone Air System Sensible Heating Rate\" -v \"Zone Air System Sensible Cooling Rate\"."}],"outputs":[{"type":"DAGFileOutput","from":{"type":"FileReference","path":"run/eplusout.err","annotations":{}},"alias":[],"required":true,"name":"err","annotations":{},"description":"The error report output by the simulation."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"eui.json","annotations":{}},"alias":[{"type":"DAGGenericOutputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.outputs.eui","function":"eui_json_from_path","annotations":{},"index":0}],"name":"eui","annotations":{},"description":"Energy Use intensity, including total and for each end use."}],"required":true,"name":"eui","annotations":{},"description":"A JSON containing energy use intensity information across the total model floor area. Values are either kWh/m2 or kBtu/ft2 depending upon the units input."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"run/eplustbl.htm","annotations":{}},"alias":[],"required":true,"name":"html","annotations":{},"description":"The result HTML page with summary reports output by the simulation."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"results.html","annotations":{}},"alias":[],"required":false,"name":"result-report","annotations":{},"description":"The HTML report with interactive summaries of energy use, HVAC component sizes, and other information."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"run/eplusout.sql","annotations":{}},"alias":[],"required":true,"name":"sql","annotations":{},"description":"The result SQL file output by the simulation."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"visual.html","annotations":{}},"alias":[],"required":false,"name":"visual-report","annotations":{},"description":"The HTML report with hourly EnergyPlus output variables visualized on the geometry."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"run/epluszsz.csv","annotations":{}},"alias":[],"required":false,"name":"zsz","annotations":{},"description":"The result CSV with the zone loads over the design day output by the simulation."}]},"Job":{"type":"Job","api_version":"v1beta1","source":"https://api.pollination.cloud/registries/ladybug-tools/recipe/annual-energy-use/0.5.2","arguments":[[{"type":"JobPathArgument","name":"ddy","source":{"type":"ProjectFolder","path":"C:\\Users\\mingo\\Desktop\\New folder\\USA_NY_New.York-Central.Park.725033_TMY3\\USA_NY_New.York-Central.Park.725033_TMY3.ddy"}},{"type":"JobPathArgument","name":"epw","source":{"type":"ProjectFolder","path":"C:\\Users\\mingo\\Desktop\\New folder\\USA_NY_New.York-Central.Park.725033_TMY3\\USA_NY_New.York-Central.Park.725033_TMY3.epw"}},{"type":"JobPathArgument","name":"model","source":{"type":"ProjectFolder","path":"c:\\users\\mingo\\appdata\\local\\temp\\Model_6733ab28-aa74-467f-934e-3a07e206824b.hbjson"}},{"type":"JobArgument","name":"units","value":"si"}]],"description":"","labels":{"keywords":""}},"IsLocalJob":true,"ProjectSlug":"mingbo/demo","LocalCPUNumber":10,"LocalRunFolder":"C:\\Users\\mingo\\simulation","LocalRunOutputFolder":"C:\\Users\\mingo\\simulation\\Unnamed"},"SavedLocalPath":"C:\\Users\\mingo\\simulation\\Unnamed"}, - {"JobID":"f8ea1492-f270-4161-a28c-651623a0d111","LocalJob":{"RecipeOwner":"ladybug-tools","Recipe":{"type":"RecipeInterface","api_version":"v1beta1","metadata":{"type":"MetaData","name":"annual-energy-use","tag":"0.5.2","annotations":{},"app_version":"3.1.0","keywords":["honeybee","energy","ladybug-tools","energyplus","openstudio","energy","annual-energy-use"],"maintainers":[{"type":"Maintainer","name":"chris","annotations":{},"email":"chris@ladybug.tools"},{"type":"Maintainer","name":"ladybug-tools","annotations":{},"email":"info@ladybug.tools"}],"home":"https://github.com/pollination/annual-energy-use","sources":["https://hub.docker.com/r/ladybugtools/honeybee-energy"],"icon":"https://raw.githubusercontent.com/ladybug-tools/artwork/master/icons_components/honeybee/png/eui.png","description":"Run an annual energy simulation and compute energy use intensity.","license":{"type":"License","name":"PolyForm Shield License 1.0.0","annotations":{},"url":"https://polyformproject.org/wp-content/uploads/2020/06/PolyForm-Shield-1.0.0.txt"}},"annotations":{},"source":"https://api.pollination.cloud/registries/ladybug-tools/recipe/annual-energy-use/0.5.2","inputs":[{"type":"DAGFileInput","alias":[{"items_type":"String","type":"DAGArrayInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.simulation","function":"list_to_additional_idf","annotations":{},"index":0}],"default":[],"required":false,"name":"add_str","annotations":{},"description":"THIS OPTION IS JUST FOR ADVANCED USERS OF ENERGYPLUS. An additional text string to be appended to the IDF before simulation. The input should include complete EnergyPlus objects following the IDF format. This input can be used to include EnergyPlus objects that are not currently supported by honeybee."}],"required":false,"extensions":["idf"],"name":"additional-idf","annotations":{},"description":"An IDF file with text to be appended before simulation. This input can be used to include large EnergyPlus objects that are not currently supported by honeybee."},{"type":"DAGFileInput","alias":[{"type":"DAGGenericInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.ddy","function":"ddy_handler","annotations":{},"index":0}],"required":true,"name":"ddy","annotations":{},"description":"The path to a .ddy file or an .epw file with design days to be used for the initial sizing calculation."}],"required":true,"extensions":["ddy"],"name":"ddy","annotations":{},"description":"A DDY file with design days to be used for the initial sizing calculation."},{"type":"DAGFileInput","alias":[],"required":true,"extensions":["epw"],"name":"epw","annotations":{},"description":"EPW weather file to be used for the annual energy simulation."},{"type":"DAGFolderInput","alias":[{"items_type":"Generic","type":"DAGArrayInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.simulation","function":"measures_to_folder","annotations":{},"index":0}],"default":[],"required":false,"name":"measures","annotations":{},"description":"An optional list of measures to apply to the OpenStudio model upon export. Use the \"HB Load Measure\" component to load a measure into Grasshopper and assign input arguments. Measures can be downloaded from the NREL Building Components Library (BCL) at (https://bcl.nrel.gov/)."}],"required":false,"name":"measures","annotations":{},"description":"A folder containing an OSW JSON be used as the base for the execution of the OpenStuduo CLI. This folder must also contain all of the measures that are referenced within the OSW."},{"type":"DAGFileInput","alias":[{"type":"DAGGenericInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.model","function":"model_to_json","annotations":{},"index":0},{"type":"IOAliasHandler","language":"csharp","module":"Pollination.RhinoHandlers","function":"HBModelToJSON","annotations":{},"index":0}],"required":true,"name":"model","annotations":{},"description":"A Honeybee Model to simulate or the path to a HBJSON file of a Model. This can also be the path to a HBpkl file, though this is only recommended for cases where the model is extremely large."},{"type":"DAGLinkedInputAlias","platform":["rhino"],"handler":[{"type":"IOAliasHandler","language":"csharp","module":"Pollination.RhinoHandlers","function":"RhinoHBModelToJSON","annotations":{},"index":0}],"required":true,"name":"model","annotations":{},"description":"This input links the model to Rhino model."}],"required":true,"extensions":["hbjson","json","osm","idf"],"name":"model","annotations":{},"description":"An energy Model as either a HBJSON, OSM, or IDF."},{"type":"DAGFileInput","alias":[{"type":"DAGGenericInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.simulation","function":"energy_sim_par_to_json","annotations":{},"index":0},{"type":"IOAliasHandler","language":"csharp","module":"Pollination.RhinoHandlers","function":"HBSimulationParameterToJSON","annotations":{},"index":0}],"required":false,"name":"sim_par","annotations":{},"description":"A SimulationParameter object that describes all of the setting for the energy simulation. If None, some default simulation parameters will automatically be used. This can also be the path to a SimulationParameter JSON file."},{"type":"DAGLinkedInputAlias","platform":["rhino"],"handler":[{"type":"IOAliasHandler","language":"csharp","module":"Pollination.RhinoHandlers","function":"RhinoSimulationParameterToJSON","annotations":{},"index":0}],"required":true,"name":"sim_par","annotations":{},"description":"This input links to SimulationParameter setting in Rhino."}],"required":false,"extensions":["json"],"name":"sim-par","annotations":{},"description":"SimulationParameter JSON that describes the settings for the simulation."},{"type":"DAGStringInput","default":"si","alias":[],"required":false,"spec":{"enum":["si","ip"],"type":"string"},"name":"units","annotations":{},"description":"A switch to indicate whether the data in the final EUI file should be in SI (kWh/m2) or IP (kBtu/ft2). Valid values are \"si\" and \"ip\"."},{"type":"DAGStringInput","default":"","alias":[{"items_type":"String","type":"DAGArrayInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.simulation","function":"viz_variables_to_string","annotations":{},"index":0}],"default":[],"required":false,"name":"viz_vars","annotations":{},"description":"A list of text for EnergyPlus output variables to be visualized on the geometry in an output HTML report. If unspecified, no report is produced. For example, \"Zone Air System Sensible Heating Rate\"."}],"required":false,"name":"viz-variables","annotations":{},"description":"Text for EnergyPlus output variables to be visualized on the geometry in an output view_data HTML report. If unspecified, no view_data report is produced. Each variable should be in \"quotes\" and should be preceded by a -v option. For example\n-v \"Zone Air System Sensible Heating Rate\" -v \"Zone Air System Sensible Cooling Rate\"."}],"outputs":[{"type":"DAGFileOutput","from":{"type":"FileReference","path":"run/eplusout.err","annotations":{}},"alias":[],"required":true,"name":"err","annotations":{},"description":"The error report output by the simulation."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"eui.json","annotations":{}},"alias":[{"type":"DAGGenericOutputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.outputs.eui","function":"eui_json_from_path","annotations":{},"index":0}],"name":"eui","annotations":{},"description":"Energy Use intensity, including total and for each end use."}],"required":true,"name":"eui","annotations":{},"description":"A JSON containing energy use intensity information across the total model floor area. Values are either kWh/m2 or kBtu/ft2 depending upon the units input."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"run/eplustbl.htm","annotations":{}},"alias":[],"required":true,"name":"html","annotations":{},"description":"The result HTML page with summary reports output by the simulation."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"results.html","annotations":{}},"alias":[],"required":false,"name":"result-report","annotations":{},"description":"The HTML report with interactive summaries of energy use, HVAC component sizes, and other information."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"run/eplusout.sql","annotations":{}},"alias":[],"required":true,"name":"sql","annotations":{},"description":"The result SQL file output by the simulation."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"visual.html","annotations":{}},"alias":[],"required":false,"name":"visual-report","annotations":{},"description":"The HTML report with hourly EnergyPlus output variables visualized on the geometry."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"run/epluszsz.csv","annotations":{}},"alias":[],"required":false,"name":"zsz","annotations":{},"description":"The result CSV with the zone loads over the design day output by the simulation."}]},"Job":{"type":"Job","api_version":"v1beta1","source":"https://api.pollination.cloud/registries/ladybug-tools/recipe/annual-energy-use/0.5.2","arguments":[[{"type":"JobPathArgument","name":"ddy","source":{"type":"ProjectFolder","path":"C:\\Users\\mingo\\Desktop\\New folder\\USA_NY_New.York-Central.Park.725033_TMY3\\USA_NY_New.York-Central.Park.725033_TMY3.ddy"}},{"type":"JobPathArgument","name":"epw","source":{"type":"ProjectFolder","path":"C:\\Users\\mingo\\Desktop\\New folder\\USA_NY_New.York-Central.Park.725033_TMY3\\USA_NY_New.York-Central.Park.725033_TMY3.epw"}},{"type":"JobPathArgument","name":"model","source":{"type":"ProjectFolder","path":"c:\\users\\mingo\\appdata\\local\\temp\\Model_6733ab28-aa74-467f-934e-3a07e206824b.hbjson"}},{"type":"JobArgument","name":"units","value":"si"}]],"description":"","labels":{"keywords":""}},"IsLocalJob":true,"ProjectSlug":"mingbo/demo","LocalCPUNumber":10,"LocalRunFolder":"C:\\Users\\mingo\\simulation","LocalRunOutputFolder":"C:\\Users\\mingo\\simulation\\Unnamed"},"SavedLocalPath":"C:\\Users\\mingo\\simulation\\Unnamed"} + {"JobID":"f8ea1492-f270-4161-a28c-651623a0d132","LocalJob":{"RecipeOwner":"ladybug-tools","Recipe":{"type":"RecipeInterface","api_version":"v1beta1","metadata":{"type":"MetaData","name":"annual-energy-use","tag":"0.5.2","annotations":{},"app_version":"3.1.0","keywords":["honeybee","energy","ladybug-tools","energyplus","openstudio","energy","annual-energy-use"],"maintainers":[{"type":"Maintainer","name":"chris","annotations":{},"email":"chris@ladybug.tools"},{"type":"Maintainer","name":"ladybug-tools","annotations":{},"email":"info@ladybug.tools"}],"home":"https://github.com/pollination/annual-energy-use","sources":["https://hub.docker.com/r/ladybugtools/honeybee-energy"],"icon":"https://raw.githubusercontent.com/ladybug-tools/artwork/master/icons_components/honeybee/png/eui.png","description":"Run an annual energy simulation and compute energy use intensity.","license":{"type":"License","name":"PolyForm Shield License 1.0.0","annotations":{},"url":"https://polyformproject.org/wp-content/uploads/2020/06/PolyForm-Shield-1.0.0.txt"}},"annotations":{},"source":"https://api.pollination.solutions/registries/ladybug-tools/recipe/annual-energy-use/0.5.2","inputs":[{"type":"DAGFileInput","alias":[{"items_type":"String","type":"DAGArrayInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.simulation","function":"list_to_additional_idf","annotations":{},"index":0}],"default":[],"required":false,"name":"add_str","annotations":{},"description":"THIS OPTION IS JUST FOR ADVANCED USERS OF ENERGYPLUS. An additional text string to be appended to the IDF before simulation. The input should include complete EnergyPlus objects following the IDF format. This input can be used to include EnergyPlus objects that are not currently supported by honeybee."}],"required":false,"extensions":["idf"],"name":"additional-idf","annotations":{},"description":"An IDF file with text to be appended before simulation. This input can be used to include large EnergyPlus objects that are not currently supported by honeybee."},{"type":"DAGFileInput","alias":[{"type":"DAGGenericInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.ddy","function":"ddy_handler","annotations":{},"index":0}],"required":true,"name":"ddy","annotations":{},"description":"The path to a .ddy file or an .epw file with design days to be used for the initial sizing calculation."}],"required":true,"extensions":["ddy"],"name":"ddy","annotations":{},"description":"A DDY file with design days to be used for the initial sizing calculation."},{"type":"DAGFileInput","alias":[],"required":true,"extensions":["epw"],"name":"epw","annotations":{},"description":"EPW weather file to be used for the annual energy simulation."},{"type":"DAGFolderInput","alias":[{"items_type":"Generic","type":"DAGArrayInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.simulation","function":"measures_to_folder","annotations":{},"index":0}],"default":[],"required":false,"name":"measures","annotations":{},"description":"An optional list of measures to apply to the OpenStudio model upon export. Use the \"HB Load Measure\" component to load a measure into Grasshopper and assign input arguments. Measures can be downloaded from the NREL Building Components Library (BCL) at (https://bcl.nrel.gov/)."}],"required":false,"name":"measures","annotations":{},"description":"A folder containing an OSW JSON be used as the base for the execution of the OpenStuduo CLI. This folder must also contain all of the measures that are referenced within the OSW."},{"type":"DAGFileInput","alias":[{"type":"DAGGenericInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.model","function":"model_to_json","annotations":{},"index":0},{"type":"IOAliasHandler","language":"csharp","module":"Pollination.RhinoHandlers","function":"HBModelToJSON","annotations":{},"index":0}],"required":true,"name":"model","annotations":{},"description":"A Honeybee Model to simulate or the path to a HBJSON file of a Model. This can also be the path to a HBpkl file, though this is only recommended for cases where the model is extremely large."},{"type":"DAGLinkedInputAlias","platform":["rhino"],"handler":[{"type":"IOAliasHandler","language":"csharp","module":"Pollination.RhinoHandlers","function":"RhinoHBModelToJSON","annotations":{},"index":0}],"required":true,"name":"model","annotations":{},"description":"This input links the model to Rhino model."}],"required":true,"extensions":["hbjson","json","osm","idf"],"name":"model","annotations":{},"description":"An energy Model as either a HBJSON, OSM, or IDF."},{"type":"DAGFileInput","alias":[{"type":"DAGGenericInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.simulation","function":"energy_sim_par_to_json","annotations":{},"index":0},{"type":"IOAliasHandler","language":"csharp","module":"Pollination.RhinoHandlers","function":"HBSimulationParameterToJSON","annotations":{},"index":0}],"required":false,"name":"sim_par","annotations":{},"description":"A SimulationParameter object that describes all of the setting for the energy simulation. If None, some default simulation parameters will automatically be used. This can also be the path to a SimulationParameter JSON file."},{"type":"DAGLinkedInputAlias","platform":["rhino"],"handler":[{"type":"IOAliasHandler","language":"csharp","module":"Pollination.RhinoHandlers","function":"RhinoSimulationParameterToJSON","annotations":{},"index":0}],"required":true,"name":"sim_par","annotations":{},"description":"This input links to SimulationParameter setting in Rhino."}],"required":false,"extensions":["json"],"name":"sim-par","annotations":{},"description":"SimulationParameter JSON that describes the settings for the simulation."},{"type":"DAGStringInput","default":"si","alias":[],"required":false,"spec":{"enum":["si","ip"],"type":"string"},"name":"units","annotations":{},"description":"A switch to indicate whether the data in the final EUI file should be in SI (kWh/m2) or IP (kBtu/ft2). Valid values are \"si\" and \"ip\"."},{"type":"DAGStringInput","default":"","alias":[{"items_type":"String","type":"DAGArrayInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.simulation","function":"viz_variables_to_string","annotations":{},"index":0}],"default":[],"required":false,"name":"viz_vars","annotations":{},"description":"A list of text for EnergyPlus output variables to be visualized on the geometry in an output HTML report. If unspecified, no report is produced. For example, \"Zone Air System Sensible Heating Rate\"."}],"required":false,"name":"viz-variables","annotations":{},"description":"Text for EnergyPlus output variables to be visualized on the geometry in an output view_data HTML report. If unspecified, no view_data report is produced. Each variable should be in \"quotes\" and should be preceded by a -v option. For example\n-v \"Zone Air System Sensible Heating Rate\" -v \"Zone Air System Sensible Cooling Rate\"."}],"outputs":[{"type":"DAGFileOutput","from":{"type":"FileReference","path":"run/eplusout.err","annotations":{}},"alias":[],"required":true,"name":"err","annotations":{},"description":"The error report output by the simulation."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"eui.json","annotations":{}},"alias":[{"type":"DAGGenericOutputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.outputs.eui","function":"eui_json_from_path","annotations":{},"index":0}],"name":"eui","annotations":{},"description":"Energy Use intensity, including total and for each end use."}],"required":true,"name":"eui","annotations":{},"description":"A JSON containing energy use intensity information across the total model floor area. Values are either kWh/m2 or kBtu/ft2 depending upon the units input."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"run/eplustbl.htm","annotations":{}},"alias":[],"required":true,"name":"html","annotations":{},"description":"The result HTML page with summary reports output by the simulation."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"results.html","annotations":{}},"alias":[],"required":false,"name":"result-report","annotations":{},"description":"The HTML report with interactive summaries of energy use, HVAC component sizes, and other information."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"run/eplusout.sql","annotations":{}},"alias":[],"required":true,"name":"sql","annotations":{},"description":"The result SQL file output by the simulation."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"visual.html","annotations":{}},"alias":[],"required":false,"name":"visual-report","annotations":{},"description":"The HTML report with hourly EnergyPlus output variables visualized on the geometry."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"run/epluszsz.csv","annotations":{}},"alias":[],"required":false,"name":"zsz","annotations":{},"description":"The result CSV with the zone loads over the design day output by the simulation."}]},"Job":{"type":"Job","api_version":"v1beta1","source":"https://api.pollination.solutions/registries/ladybug-tools/recipe/annual-energy-use/0.5.2","arguments":[[{"type":"JobPathArgument","name":"ddy","source":{"type":"ProjectFolder","path":"C:\\Users\\mingo\\Desktop\\New folder\\USA_NY_New.York-Central.Park.725033_TMY3\\USA_NY_New.York-Central.Park.725033_TMY3.ddy"}},{"type":"JobPathArgument","name":"epw","source":{"type":"ProjectFolder","path":"C:\\Users\\mingo\\Desktop\\New folder\\USA_NY_New.York-Central.Park.725033_TMY3\\USA_NY_New.York-Central.Park.725033_TMY3.epw"}},{"type":"JobPathArgument","name":"model","source":{"type":"ProjectFolder","path":"c:\\users\\mingo\\appdata\\local\\temp\\Model_6733ab28-aa74-467f-934e-3a07e206824b.hbjson"}},{"type":"JobArgument","name":"units","value":"si"}]],"description":"","labels":{"keywords":""}},"IsLocalJob":true,"ProjectSlug":"mingbo/demo","LocalCPUNumber":10,"LocalRunFolder":"C:\\Users\\mingo\\simulation","LocalRunOutputFolder":"C:\\Users\\mingo\\simulation\\Unnamed"},"SavedLocalPath":"C:\\Users\\mingo\\simulation\\Unnamed"}, + {"JobID":"f8ea1492-f270-4161-a28c-651623a0d111","LocalJob":{"RecipeOwner":"ladybug-tools","Recipe":{"type":"RecipeInterface","api_version":"v1beta1","metadata":{"type":"MetaData","name":"annual-energy-use","tag":"0.5.2","annotations":{},"app_version":"3.1.0","keywords":["honeybee","energy","ladybug-tools","energyplus","openstudio","energy","annual-energy-use"],"maintainers":[{"type":"Maintainer","name":"chris","annotations":{},"email":"chris@ladybug.tools"},{"type":"Maintainer","name":"ladybug-tools","annotations":{},"email":"info@ladybug.tools"}],"home":"https://github.com/pollination/annual-energy-use","sources":["https://hub.docker.com/r/ladybugtools/honeybee-energy"],"icon":"https://raw.githubusercontent.com/ladybug-tools/artwork/master/icons_components/honeybee/png/eui.png","description":"Run an annual energy simulation and compute energy use intensity.","license":{"type":"License","name":"PolyForm Shield License 1.0.0","annotations":{},"url":"https://polyformproject.org/wp-content/uploads/2020/06/PolyForm-Shield-1.0.0.txt"}},"annotations":{},"source":"https://api.pollination.solutions/registries/ladybug-tools/recipe/annual-energy-use/0.5.2","inputs":[{"type":"DAGFileInput","alias":[{"items_type":"String","type":"DAGArrayInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.simulation","function":"list_to_additional_idf","annotations":{},"index":0}],"default":[],"required":false,"name":"add_str","annotations":{},"description":"THIS OPTION IS JUST FOR ADVANCED USERS OF ENERGYPLUS. An additional text string to be appended to the IDF before simulation. The input should include complete EnergyPlus objects following the IDF format. This input can be used to include EnergyPlus objects that are not currently supported by honeybee."}],"required":false,"extensions":["idf"],"name":"additional-idf","annotations":{},"description":"An IDF file with text to be appended before simulation. This input can be used to include large EnergyPlus objects that are not currently supported by honeybee."},{"type":"DAGFileInput","alias":[{"type":"DAGGenericInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.ddy","function":"ddy_handler","annotations":{},"index":0}],"required":true,"name":"ddy","annotations":{},"description":"The path to a .ddy file or an .epw file with design days to be used for the initial sizing calculation."}],"required":true,"extensions":["ddy"],"name":"ddy","annotations":{},"description":"A DDY file with design days to be used for the initial sizing calculation."},{"type":"DAGFileInput","alias":[],"required":true,"extensions":["epw"],"name":"epw","annotations":{},"description":"EPW weather file to be used for the annual energy simulation."},{"type":"DAGFolderInput","alias":[{"items_type":"Generic","type":"DAGArrayInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.simulation","function":"measures_to_folder","annotations":{},"index":0}],"default":[],"required":false,"name":"measures","annotations":{},"description":"An optional list of measures to apply to the OpenStudio model upon export. Use the \"HB Load Measure\" component to load a measure into Grasshopper and assign input arguments. Measures can be downloaded from the NREL Building Components Library (BCL) at (https://bcl.nrel.gov/)."}],"required":false,"name":"measures","annotations":{},"description":"A folder containing an OSW JSON be used as the base for the execution of the OpenStuduo CLI. This folder must also contain all of the measures that are referenced within the OSW."},{"type":"DAGFileInput","alias":[{"type":"DAGGenericInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.model","function":"model_to_json","annotations":{},"index":0},{"type":"IOAliasHandler","language":"csharp","module":"Pollination.RhinoHandlers","function":"HBModelToJSON","annotations":{},"index":0}],"required":true,"name":"model","annotations":{},"description":"A Honeybee Model to simulate or the path to a HBJSON file of a Model. This can also be the path to a HBpkl file, though this is only recommended for cases where the model is extremely large."},{"type":"DAGLinkedInputAlias","platform":["rhino"],"handler":[{"type":"IOAliasHandler","language":"csharp","module":"Pollination.RhinoHandlers","function":"RhinoHBModelToJSON","annotations":{},"index":0}],"required":true,"name":"model","annotations":{},"description":"This input links the model to Rhino model."}],"required":true,"extensions":["hbjson","json","osm","idf"],"name":"model","annotations":{},"description":"An energy Model as either a HBJSON, OSM, or IDF."},{"type":"DAGFileInput","alias":[{"type":"DAGGenericInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.simulation","function":"energy_sim_par_to_json","annotations":{},"index":0},{"type":"IOAliasHandler","language":"csharp","module":"Pollination.RhinoHandlers","function":"HBSimulationParameterToJSON","annotations":{},"index":0}],"required":false,"name":"sim_par","annotations":{},"description":"A SimulationParameter object that describes all of the setting for the energy simulation. If None, some default simulation parameters will automatically be used. This can also be the path to a SimulationParameter JSON file."},{"type":"DAGLinkedInputAlias","platform":["rhino"],"handler":[{"type":"IOAliasHandler","language":"csharp","module":"Pollination.RhinoHandlers","function":"RhinoSimulationParameterToJSON","annotations":{},"index":0}],"required":true,"name":"sim_par","annotations":{},"description":"This input links to SimulationParameter setting in Rhino."}],"required":false,"extensions":["json"],"name":"sim-par","annotations":{},"description":"SimulationParameter JSON that describes the settings for the simulation."},{"type":"DAGStringInput","default":"si","alias":[],"required":false,"spec":{"enum":["si","ip"],"type":"string"},"name":"units","annotations":{},"description":"A switch to indicate whether the data in the final EUI file should be in SI (kWh/m2) or IP (kBtu/ft2). Valid values are \"si\" and \"ip\"."},{"type":"DAGStringInput","default":"","alias":[{"items_type":"String","type":"DAGArrayInputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.inputs.simulation","function":"viz_variables_to_string","annotations":{},"index":0}],"default":[],"required":false,"name":"viz_vars","annotations":{},"description":"A list of text for EnergyPlus output variables to be visualized on the geometry in an output HTML report. If unspecified, no report is produced. For example, \"Zone Air System Sensible Heating Rate\"."}],"required":false,"name":"viz-variables","annotations":{},"description":"Text for EnergyPlus output variables to be visualized on the geometry in an output view_data HTML report. If unspecified, no view_data report is produced. Each variable should be in \"quotes\" and should be preceded by a -v option. For example\n-v \"Zone Air System Sensible Heating Rate\" -v \"Zone Air System Sensible Cooling Rate\"."}],"outputs":[{"type":"DAGFileOutput","from":{"type":"FileReference","path":"run/eplusout.err","annotations":{}},"alias":[],"required":true,"name":"err","annotations":{},"description":"The error report output by the simulation."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"eui.json","annotations":{}},"alias":[{"type":"DAGGenericOutputAlias","platform":["grasshopper"],"handler":[{"type":"IOAliasHandler","language":"python","module":"pollination_handlers.outputs.eui","function":"eui_json_from_path","annotations":{},"index":0}],"name":"eui","annotations":{},"description":"Energy Use intensity, including total and for each end use."}],"required":true,"name":"eui","annotations":{},"description":"A JSON containing energy use intensity information across the total model floor area. Values are either kWh/m2 or kBtu/ft2 depending upon the units input."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"run/eplustbl.htm","annotations":{}},"alias":[],"required":true,"name":"html","annotations":{},"description":"The result HTML page with summary reports output by the simulation."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"results.html","annotations":{}},"alias":[],"required":false,"name":"result-report","annotations":{},"description":"The HTML report with interactive summaries of energy use, HVAC component sizes, and other information."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"run/eplusout.sql","annotations":{}},"alias":[],"required":true,"name":"sql","annotations":{},"description":"The result SQL file output by the simulation."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"visual.html","annotations":{}},"alias":[],"required":false,"name":"visual-report","annotations":{},"description":"The HTML report with hourly EnergyPlus output variables visualized on the geometry."},{"type":"DAGFileOutput","from":{"type":"FileReference","path":"run/epluszsz.csv","annotations":{}},"alias":[],"required":false,"name":"zsz","annotations":{},"description":"The result CSV with the zone loads over the design day output by the simulation."}]},"Job":{"type":"Job","api_version":"v1beta1","source":"https://api.pollination.solutions/registries/ladybug-tools/recipe/annual-energy-use/0.5.2","arguments":[[{"type":"JobPathArgument","name":"ddy","source":{"type":"ProjectFolder","path":"C:\\Users\\mingo\\Desktop\\New folder\\USA_NY_New.York-Central.Park.725033_TMY3\\USA_NY_New.York-Central.Park.725033_TMY3.ddy"}},{"type":"JobPathArgument","name":"epw","source":{"type":"ProjectFolder","path":"C:\\Users\\mingo\\Desktop\\New folder\\USA_NY_New.York-Central.Park.725033_TMY3\\USA_NY_New.York-Central.Park.725033_TMY3.epw"}},{"type":"JobPathArgument","name":"model","source":{"type":"ProjectFolder","path":"c:\\users\\mingo\\appdata\\local\\temp\\Model_6733ab28-aa74-467f-934e-3a07e206824b.hbjson"}},{"type":"JobArgument","name":"units","value":"si"}]],"description":"","labels":{"keywords":""}},"IsLocalJob":true,"ProjectSlug":"mingbo/demo","LocalCPUNumber":10,"LocalRunFolder":"C:\\Users\\mingo\\simulation","LocalRunOutputFolder":"C:\\Users\\mingo\\simulation\\Unnamed"},"SavedLocalPath":"C:\\Users\\mingo\\simulation\\Unnamed"} ] \ No newline at end of file diff --git a/src/PollinationSDK/Wrapper/JobRunner.cs b/src/PollinationSDK/Wrapper/JobRunner.cs index 404af4234..f10f8b64c 100644 --- a/src/PollinationSDK/Wrapper/JobRunner.cs +++ b/src/PollinationSDK/Wrapper/JobRunner.cs @@ -132,7 +132,7 @@ private async Task ScheduleCloudJobAsync( LogHelper.LogInfo($"Start running."); try { - // schedule a simulation on Pollination.Cloud + // schedule a simulation on pollination.solutions var jobForLog = newJob.DuplicateJob(); jobForLog.Arguments = jobForLog.Arguments.Take(3).ToList(); LogHelper.LogInfo($"Scheduling a job in {proj.Owner.Name}/{proj.Name}");