Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions docs/notebooks/Example_About_Service_endpoints.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"## 0. Prerequisites\n",
"\n",
"**Notebook Information:**\n",
"- **Last Updated:** May 2026\n",
"- **Last Updated:** Oct 2026\n",
"- **Written for:** SolarFarmer SDK v0.3.0+\n",
"- [View latest version in repository](https://github.com/dnv-opensource/solarfarmer-python-sdk/blob/main/docs/notebooks/Example_About_Service_endpoints.ipynb)\n",
"\n",
Expand All @@ -46,7 +46,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"SolarFarmer Python SDK v0.3.0\n"
"SolarFarmer Python SDK v0.8.0\n"
]
}
],
Expand Down Expand Up @@ -185,14 +185,14 @@
"name": "stderr",
"output_type": "stream",
"text": [
"INFO: SF-Core version: 0.4.429.0\n",
"INFO: SF-API version: 6.1.0\n"
"INFO: SF-Core version: 7.1.8.0\n",
"INFO: SF-API version: 7.0.15\n"
]
},
{
"data": {
"text/plain": [
"{'solarFarmerCoreVersion': '0.4.429.0', 'solarFarmerApiVersion': '6.1.0'}"
"{'solarFarmerCoreVersion': '7.1.8.0', 'solarFarmerApiVersion': '7.0.15'}"
]
},
"metadata": {},
Expand Down Expand Up @@ -225,13 +225,13 @@
"name": "stderr",
"output_type": "stream",
"text": [
"INFO: SF-Core version: 0.2.325.0\n",
"INFO: SF-API version: 4.1.18\n"
"INFO: SF-Core version: 0.4.429.0\n",
"INFO: SF-API version: 6.1.2\n"
]
}
],
"source": [
"info_about = sf.about(version=\"v4\", api_key=api_key)"
"info_about = sf.about(version=\"v6\", api_key=api_key)"
]
},
{
Expand All @@ -255,7 +255,7 @@
"output_type": "stream",
"text": [
"ERROR: API request https://solarfarmer.dnv.com/v2/api/About failed.\n",
"ERROR: HTTP 410. This version of the API is now deprecated. Please use the latest version at https://solarfarmer.dnv.com/v5/api\n"
"ERROR: HTTP 410. This version of the API is now deprecated. Please use the latest version at https://solarfarmer.dnv.com/v7/api\n"
]
}
],
Expand Down Expand Up @@ -363,7 +363,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "dnv-solarfarmer",
"display_name": ".venv (3.11.2)",
"language": "python",
"name": "python3"
},
Expand All @@ -377,7 +377,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.13"
"version": "3.11.2"
}
},
"nbformat": 4,
Expand Down
36 changes: 22 additions & 14 deletions docs/notebooks/Example_Compose_Plant.ipynb

Large diffs are not rendered by default.

53 changes: 26 additions & 27 deletions docs/notebooks/Example_EnergyCalculations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"## 0. Prerequisites\n",
"\n",
"**Notebook Information:**\n",
"- **Last Updated:** May 2026\n",
"- **Last Updated:** Oct 2026\n",
"- **Written for:** SolarFarmer SDK v0.3.0+\n",
"- [View latest version in repository](https://github.com/dnv-opensource/solarfarmer-python-sdk/blob/main/docs/notebooks/Example_EnergyCalculations.ipynb)\n",
"\n",
Expand All @@ -50,7 +50,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"SolarFarmer Python SDK v0.3.0\n"
"SolarFarmer Python SDK v0.8.0\n"
]
}
],
Expand Down Expand Up @@ -220,8 +220,8 @@
"output_type": "stream",
"text": [
"INFO: Making API call to ModelChain (2D) endpoint: https://solarfarmer.dnv.com/latest/api/ModelChain\n",
"Start time = 07-05-2026 14:55:23\n",
"INFO: SUCCESS: Calculation returned successfully (time taken: 10.4 seconds)\n"
"Start time = 29-10-2026 13:31:48\n",
"INFO: SUCCESS: Calculation returned successfully (time taken: 7.7 seconds)\n"
]
},
{
Expand All @@ -237,7 +237,7 @@
"Mounting type = Fixed-tilt racks\n",
"AC capacity of system = 0.375 MW\n",
"DC capacity of system = 0.4455 MW\n",
"Run in SolarFarmer API version 6.1.0\n",
"Run in SolarFarmer API version 7.0.15\n",
"-------------------------------------------------------\n",
" Annual Performance Summary (project year 1, 2017)\n",
"------------------------------------- ---------------\n",
Expand Down Expand Up @@ -297,8 +297,8 @@
"output_type": "stream",
"text": [
"INFO: Making API call to ModelChain (2D) endpoint: https://solarfarmer.dnv.com/latest/api/ModelChain\n",
"Start time = 07-05-2026 14:55:34\n",
"INFO: SUCCESS: Calculation returned successfully (time taken: 8.2 seconds)\n"
"Start time = 29-10-2026 13:31:56\n",
"INFO: SUCCESS: Calculation returned successfully (time taken: 5.3 seconds)\n"
]
},
{
Expand All @@ -314,7 +314,7 @@
"Mounting type = Fixed-tilt racks\n",
"AC capacity of system = 0.375 MW\n",
"DC capacity of system = 0.4455 MW\n",
"Run in SolarFarmer API version 6.1.0\n",
"Run in SolarFarmer API version 7.0.15\n",
"-------------------------------------------------------\n",
" Annual Performance Summary (project year 1, 2017)\n",
"------------------------------------- ---------------\n",
Expand Down Expand Up @@ -389,16 +389,15 @@
"output_type": "stream",
"text": [
"INFO: Making API call to ModelChainAsync (3D) endpoint: https://solarfarmer.dnv.com/latest/api/ModelChainAsync\n",
"Start time = 07-05-2026 14:55:42\n",
"INFO: Instance ID returned = Matera-IT_SDK_example_2026-05-07T215543_rera3rfp30\n",
"INFO: 1: Time: 0:00:03 \tRun status: Running \tCustom status: Calculation pending... [Shading: 0.0%, ModelChain: 0.0%, Overall: 0.0%]\n",
"Start time = 29-10-2026 13:32:01\n",
"INFO: Instance ID returned = Matera-IT_SDK_example_2026-10-29T123202_z03pd4v4pk\n",
"INFO: 1: Time: 0:00:01 \tRun status: Running \tCustom status: Calculation pending... [Shading: 0.0%, ModelChain: 0.0%, Overall: 0.0%]\n",
"INFO: Plant stats: 3D Trackers, AC = 0.84 MW\n",
"INFO: 2: Time: 0:00:14 \tRun status: Running \tCustom status: Calculation pending... [Shading: 0.0%, ModelChain: 0.0%, Overall: 0.0%]\n",
"INFO: 3: Time: 0:00:25 \tRun status: Running \tCustom status: Running shading pre-processing (48/57 tasks complete) [Shading: 84.2%, ModelChain: 0.0%, Overall: 26.6%]\n",
"INFO: 4: Time: 0:00:37 \tRun status: Running \tCustom status: Running model chain calculation (0/46 tasks complete) [Shading: 100.0%, ModelChain: 0.0%, Overall: 35.3%]\n",
"INFO: 5: Time: 0:00:48 \tRun status: Running \tCustom status: Post-processing pending... [Shading: 100.0%, ModelChain: 100.0%, Overall: 80.0%]\n",
"INFO: 6: Time: 0:00:59 \tRun status: Completed \tCustom status: Finishing up. [Shading: 100.0%, ModelChain: 100.0%, Overall: 100.0%]\n",
"INFO: SUCCESS: Calculation returned successfully (time taken: 69.9 seconds)\n"
"INFO: 2: Time: 0:00:11 \tRun status: Running \tCustom status: Running shading pre-processing (53/57 tasks complete) [Shading: 93.0%, ModelChain: 0.0%, Overall: 31.5%]\n",
"INFO: 3: Time: 0:00:22 \tRun status: Running \tCustom status: Running model chain calculation (0/46 tasks complete) [Shading: 100.0%, ModelChain: 0.0%, Overall: 35.3%]\n",
"INFO: 4: Time: 0:00:32 \tRun status: Running \tCustom status: Running post-processing (0/46 tasks complete) [Shading: 100.0%, ModelChain: 100.0%, Overall: 69.1%]\n",
"INFO: 5: Time: 0:00:43 \tRun status: Completed \tCustom status: Finishing up. [Shading: 100.0%, ModelChain: 100.0%, Overall: 100.0%]\n",
"INFO: SUCCESS: Calculation returned successfully (time taken: 53.3 seconds)\n"
]
},
{
Expand All @@ -414,7 +413,7 @@
"Mounting type = Single-axis trackers\n",
"AC capacity of system = 0.84 MW\n",
"DC capacity of system = 1.197 MW\n",
"Run in SolarFarmer API version 6.1.0\n",
"Run in SolarFarmer API version 7.0.15\n",
"-------------------------------------------------------\n",
" Annual Performance Summary (project year 1, 2017)\n",
"------------------------------------- ----------------\n",
Expand Down Expand Up @@ -506,7 +505,7 @@
"WARNING: Could not export the file LossTreeResults.tsv due to missing data.\n",
"WARNING: Could not export the file PVsystResults.csv due to missing data.\n",
"WARNING: Could not export the file DetailedTimeseries.tsv due to missing data.\n",
"INFO: Results written out to sample_data/testing_output_456\n"
"INFO: Results written out to sample_data\\testing_output_456\n"
]
}
],
Expand All @@ -526,9 +525,9 @@
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: The file sample_data/testing_output_456/LossTreeResults.tsv could not be found.\n",
"WARNING: The file sample_data/testing_output_456/PVsystResults.csv could not be found.\n",
"WARNING: The file sample_data/testing_output_456/DetailedTimeseries.tsv could not be found.\n"
"WARNING: The file sample_data\\testing_output_456\\LossTreeResults.tsv could not be found.\n",
"WARNING: The file sample_data\\testing_output_456\\PVsystResults.csv could not be found.\n",
"WARNING: The file sample_data\\testing_output_456\\DetailedTimeseries.tsv could not be found.\n"
]
}
],
Expand Down Expand Up @@ -573,7 +572,7 @@
"Mounting type = Single-axis trackers\n",
"AC capacity of system = 0.84 MW\n",
"DC capacity of system = 1.197 MW\n",
"Run in SolarFarmer API version 6.1.0\n",
"Run in SolarFarmer API version 7.0.15\n",
"-------------------------------------------------------\n",
" Annual Performance Summary (project year 1, 2017)\n",
"------------------------------------- ----------------\n",
Expand Down Expand Up @@ -629,7 +628,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"{'name': None, 'has_annual_data': True, 'has_monthly_data': True, 'has_calculation_attributes': True, 'has_loss_tree_timeseries': False, 'has_pvsyst_timeseries': False, 'has_detailed_timeseries': False}\n"
"{'name': None, 'has_annual_data': True, 'has_monthly_data': True, 'has_calculation_attributes': True, 'has_loss_tree_timeseries': False, 'has_pvsyst_timeseries': False, 'has_detailed_timeseries': False, 'has_tracker_incidence_angles_timeseries': False, 'has_tracker_rotation_angles_timeseries': False}\n"
]
}
],
Expand Down Expand Up @@ -1155,7 +1154,7 @@
"PVsyst timeseries: not available\n",
"Detailed timeseries: not available\n",
"\n",
"Calculation attributes: 1.197 MWp DC, 0.84 MWac, SF API v6.1.0\n"
"Calculation attributes: 1.197 MWp DC, 0.84 MWac, SF API v7.0.15\n"
]
}
],
Expand Down Expand Up @@ -1190,7 +1189,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "dnv-solarfarmer",
"display_name": ".venv (3.11.2)",
"language": "python",
"name": "python3"
},
Expand All @@ -1204,7 +1203,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.13"
"version": "3.11.2"
}
},
"nbformat": 4,
Expand Down
Loading
Loading