Encontrar

Pregunta
· 4 ago, 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 comentarios
Comentarios (3)1
Inicie sesión o regístrese para continuar
Anuncio
· 3 ago, 2024

Top Videos for InterSystems Developers in July 2024

Comentarios (0)1
Inicie sesión o regístrese para continuar
Anuncio
· 2 ago, 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/

Comentarios (0)2
Inicie sesión o regístrese para continuar
Pregunta
· 2 ago, 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 comentarios
Comentarios (7)4
Inicie sesión o regístrese para continuar
Artículo
· 2 ago, 2024 Lectura de 28 min

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 comentarios
Comentarios (9)3
Inicie sesión o regístrese para continuar