查找

質問
· 2024年8月4日

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
ディスカッション (3)1
続けるにはログインするか新規登録を行ってください
お知らせ
· 2024年8月3日

Top Videos for InterSystems Developers in July 2024

ディスカッション (0)1
続けるにはログインするか新規登録を行ってください
お知らせ
· 2024年8月2日

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/

ディスカッション (0)2
続けるにはログインするか新規登録を行ってください
質問
· 2024年8月2日

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
ディスカッション (7)4
続けるにはログインするか新規登録を行ってください
記事
· 2024年8月2日 28m read

Text to IRIS SQL with LangChain

An experiment on how to use the LangChain framework, IRIS Vector Search, and LLMs to generate IRIS-compatible SQL from user prompts.

This article was based in this notebook. You can run it with a ready to use environment with this application in OpenExchange.

Setup

First, we need to install the necessary libraries:

9 Comments
ディスカッション (9)3
続けるにはログインするか新規登録を行ってください