Find

Question
· Aug 4, 2024

Convert IRIS DynamicArray to Python list

Hello Community,

How to convert the IRIS %DynamicArray into python list. I got " <THROW>TestDyncArray+1^MyLearn.Pyth.NewClass1.1 *%Exception.PythonException <PYTHON EXCEPTION> 246 <class 'AttributeError'>: <unknown exception data>" error when passing array values to python class.

ClassMethod TestDyncArray()
{
	Do ..DyncArrayInPy([1,2,3,4])
}

ClassMethod DyncArrayInPy(numbers) [ Language = python ]
{
	import iris
	print(type(numbers)) ;<class 'iris.%Library.DynamicArray'> need to be a <class 'list'>
	for num in numbers:
		print(num)
}

Thanks!

3 Comments
Discussion (3)1
Log in or sign up to continue
Announcement
· Aug 3, 2024

Top Videos for InterSystems Developers in July 2024

Discussion (0)1
Log in or sign up to continue
Announcement
· Aug 2, 2024

VS Code release July 2024 (version 1.92)

Visual Studio Code releases new updates every month with new features and bug fixes, and the July 2024 release is now available. 

Version 1.92 includes: 

The release also includes contributions from our very own @John Murray through pull requests that address open issues. 

Find out more about these features in the release notes here > https://code.visualstudio.com/updates/v1_92

For those with VS Code, your environment should auto-update. You can manually check for updates by running Help > Check for Updates on Linux and Windows or running Code > Check for Updates on macOS.

If you're thinking about migrating from Studio to VS Code but need some help, take a look at the training courses George James Software offers > https://georgejames.com/migration-from-studio/

Discussion (0)2
Log in or sign up to continue
Question
· Aug 2, 2024

Search in all namespaces

Hi Team, 

Is there a way to search for a string or use of a function in all namespaces in one go.

Studio option "Search in files"/Ctrl+shift+F search all files in the current namespace. We have 13 namespaces and wanted to know if there is an easy way to search in all namespaces in one go. 

 

Thank you for your help 

7 Comments
Discussion (7)4
Log in or sign up to continue
Discussion (9)3
Log in or sign up to continue