|
Timestamp: |
29-Oct-2025 13:34:22 |
|
Host: |
runnervmwhb2z |
|
Platform: |
glnxa64 |
|
MATLAB Version: |
25.1.0.2973910 (R2025a) Update 1 |
|
Number of Tests: |
10 |
|
Testing Time: |
29.1064 seconds |
|
Overall Result: |
PASSED |

|
24.3608 seconds |
||
|
0.5045 seconds |
||
|
4.2411 seconds |
||
The test passed. Duration: 5.2228 seconds
(Overview)
The test passed. Duration: 16.0815 seconds
(Overview)
The test passed. Duration: 3.0565 seconds
(Overview)
The test passed. Duration: 0.5045 seconds
Event:
Verification passed.
|
Framework Diagnostic: verifyTrue passed. Actual Value: logical 1 Event Location: FunctionTests/IsKnownPythonVersion Stack: In /home/runner/work/Programming-A-Starter-Project-Using-MATLAB-and-Python/Programming-A-Starter-Project-Using-MATLAB-and-Python/SoftwareTests/FunctionTests.m (FunctionTests.IsKnownPythonVersion) at 9 |
(Overview)
The test passed. Duration: 0.0921 seconds
(Overview)
The test passed. Duration: 0.0275 seconds
(Overview)
The test passed. Duration: 0.0266 seconds
(Overview)
The test passed. Duration: 0.3218 seconds
(Overview)
The test passed. Duration: 0.5068 seconds
(Overview)
The test passed. Duration: 3.2664 seconds
(Overview)
Running SmokeTests >> Running CheckingTheWeather.mlx You are running Python 3.12 Python was already on your MATLAB path. You are running compatible versions of MATLAB and Python. ans = 'py.dict' currentWeather = Python dict with no properties. {'temp': 274.86, 'feels_like': 270.03, 'temp_min': 273.44, 'temp_max': 276.25, 'pressure': 1003.0, 'humidity': 76.0, 'local_time': '2025-10-29 13:33:49.783688', 'current_time': 1710986897, 'wind_speed': 5.66, 'wind_deg': 280.0, 'clouds': 75.0, 'timezone': -14400, 'sunrise': 1710931672, 'sunset': 1710975450, 'city_name': 'Natick', 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04n'}]} ans = Python dict_keys with properties: mapping: [1×1 py.mappingproxy] dict_keys(['temp', 'feels_like', 'temp_min', 'temp_max', 'pressure', 'humidity', 'local_time', 'current_time', 'wind_speed', 'wind_deg', 'clouds', 'timezone', 'sunrise', 'sunset', 'city_name', 'weather']) ans = 270.0300 curWeather = struct with fields: temp: 274.8600 feels_like: 270.0300 temp_min: 273.4400 temp_max: 276.2500 pressure: 1003 humidity: 76 local_time: [1×26 py.str] current_time: [1×1 py.int] wind_speed: 5.6600 wind_deg: 280 clouds: 75 timezone: [1×1 py.int] sunrise: [1×1 py.int] sunset: [1×1 py.int] city_name: [1×6 py.str] weather: [1×1 py.list] ans = "2025-10-29 13:33:49.783688" ans = datetime 29-Oct-2025 13:33:49 ans = Python list with values: [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04n'}] Use string, double or cell function to convert to a MATLAB array. weather = struct with fields: id: [1×1 py.int] main: [1×6 py.str] description: [1×13 py.str] icon: [1×3 py.str] weather = struct with fields: id: [1×1 py.int] main: "Clouds" description: "broken clouds" icon: [1×3 py.str] The pressure is 752.3117 mmHg. .>> Running CreateCurrentWeatherApp.mlx appdesigner = function_handle with value: @()disp("Open App Designer here.") Did you notice that the pyrun command is using "standard" units? Did you use symunits to convert the pressure from hPa to mmHg? Did you separate the new pressure value from the symbolic unit? Did you convert the pressure value back to a double? .>> Running UsingMATLABwithPython.mlx This is release R2025a, so you can proceed with this script. You are running Python 3.12 Python was already on your MATLAB path. You are running compatible versions of MATLAB and Python. You do not have any Python code defined by the Live Task. Please try again. . Done SmokeTests __________ Running FunctionTests You are running Python 3.12 Python was already on your MATLAB path. You are running compatible versions of MATLAB and Python. . Done FunctionTests __________ Running SolnSmokeTests ...>> Running CheckingTheWeatherSoln.mlx You are running Python 3.12 Python was already on your MATLAB path. You are running compatible versions of MATLAB and Python. ans = logical 1 currentWeather = Python dict with no properties. {'temp': 274.86, 'feels_like': 270.03, 'temp_min': 273.44, 'temp_max': 276.25, 'pressure': 1003.0, 'humidity': 76.0, 'local_time': '2025-10-29 13:34:11.783985', 'current_time': 1710986897, 'wind_speed': 5.66, 'wind_deg': 280.0, 'clouds': 75.0, 'timezone': -14400, 'sunrise': 1710931672, 'sunset': 1710975450, 'city_name': 'Natick', 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04n'}]} ans = 'py.dict' currentWeather = Python dict with no properties. {'temp': 274.86, 'feels_like': 270.03, 'temp_min': 273.44, 'temp_max': 276.25, 'pressure': 1003.0, 'humidity': 76.0, 'local_time': '2025-10-29 13:34:11.783985', 'current_time': 1710986897, 'wind_speed': 5.66, 'wind_deg': 280.0, 'clouds': 75.0, 'timezone': -14400, 'sunrise': 1710931672, 'sunset': 1710975450, 'city_name': 'Natick', 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04n'}]} ans = Python dict_keys with properties: mapping: [1×1 py.mappingproxy] dict_keys(['temp', 'feels_like', 'temp_min', 'temp_max', 'pressure', 'humidity', 'local_time', 'current_time', 'wind_speed', 'wind_deg', 'clouds', 'timezone', 'sunrise', 'sunset', 'city_name', 'weather']) ans = 270.0300 curWeather = struct with fields: temp: 274.8600 feels_like: 270.0300 temp_min: 273.4400 temp_max: 276.2500 pressure: 1003 humidity: 76 local_time: [1×26 py.str] current_time: [1×1 py.int] wind_speed: 5.6600 wind_deg: 280 clouds: 75 timezone: [1×1 py.int] sunrise: [1×1 py.int] sunset: [1×1 py.int] city_name: [1×6 py.str] weather: [1×1 py.list] ans = 'double' ans = 'double' ans = 'py.int' ans = 'py.int' ans = 'py.str' ans = 'py.str' ans = "2025-10-29 13:34:11.783985" ans = datetime 29-Oct-2025 13:34:11 ans = Python list with values: [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04n'}] Use string, double or cell function to convert to a MATLAB array. weather = struct with fields: id: [1×1 py.int] main: [1×6 py.str] description: [1×13 py.str] icon: [1×3 py.str] weather = struct with fields: id: [1×1 py.int] main: "Clouds" description: "broken clouds" icon: [1×3 py.str] The pressure is 752.3117 mmHg. .>> Running CreateCurrentWeatherAppSoln.mlx .>> Running UsingMATLABwithPythonSoln.mlx This is release R2025a, so you can proceed with this script. You are running Python 3.12 Python was already on your MATLAB path. You are running compatible versions of MATLAB and Python. ans = logical 1 The tax due is: 2.37 tax = 2.3749 Your Python code looks correct, but you may have incorrect pyrun code. It should say: [tax] = pyrun(pycode, ... [ "tax" ], "dollars", dollars, "percent", percent) tax = 2.3749 Hello, Team! . Done SolnSmokeTests __________