is it possible to set metrics during the build




 
 
 
 
 Hi,  
  
 is it possible to set a metrics from a python script instead of DSS calculation? My python script is uploading CSV file into a folder, on top of this folder is a dataset. I have already the record, column count in the script, so I would like to update these metrics:  
  
'metrics': ['basic:COUNT\_COLUMNS',  
 'basic:COUNT\_FILES',  
 'basic:SIZE' ]  
  
Thanks  
  
T
Hello,  
  
By design, this is not possible as metrics computation is managed by DSS. For setting your custom parameters outside of the DSS managed metrics, we recommend setting dataset metadata: https://doc.dataiku.com/dss/latest/publicapi/client-python/datasets.html#dataikuapi.dss.dataset.DSSDataset.set\_metadata  
  
Cheers,  
  
Alex
 
 
 
 
 
 
 
 
 

[View solution in original post](/t5/Using-Dataiku-DSS/is-it-possible-to-set-metrics-during-the-build/m-p/2397#M1687)
you pretty much cannot. or at least, you can (and should) use an ide to edit scripts and script modules in the python libs folder of your install, but the shared and project scripts in the gateway are stored as serialized resources, not as plain text.

you simply cannot execute scripts outside of i… From the [Library Reference](http://docs.python.org/2/library/stdtypes.html#set-types-set-frozenset):



> 
> The set type is mutable — the contents can be changed using methods like add() and remove().
> 
> 
> hi

we can do that by defining a string variable in the very beginning of the process with assign activity or by defining that in variable panel in the studio at the bottom the window

but make sure that we are not assigning any value to that variable later across the workflow

if we assign later th… hi [@jitse\_b](/u/jitse_b)

welcome to the community !

yes you can, there are various ways to do so.

the simplest:

you may want to create a table with 3 columns,

key\_column, type text, value “k000” (or whatever you want, it doesn’t matter if you stick to only one comparison)

“material1”, type ref, source tabl… from here [fstrm python receiver](https://github.com/dmachard/python-framestream/blob/main/fstrm/fstrm_codec.py)

# frame streams control frame format - data frame length equals 00 00 00 00

# |||

# | data frame length | 4 bytes |

# ||… You can use SetCursorPos() to control the position of the cursor. It returns true is it succeeds and false if not. It takes 2 arguments int x and int y. You can use GetCursorPos() to retrieve the position of cursor. it returns the same as Set...() it takes one paramater a pointer to a structure of type POINT, which contains to values long x and long y. Also if you want to send Mouse clicks then you will need to look into the function SendInput() its well documented on msdn but feel free to ask for more information.



Chris Thanks for your reply, I feared it would not be trivail, as I coudnt find any scripts. Idealy the text from the databse is place in a table witht the last column beeing the barcodes path, the images are to replace the text path and be place inside the cell, fitting within the cells width and/or height. Please see: [How do I schedule a task to update indexes?](https://qa.mythicsoft.com/14733/how-do-i-schedule-a-task-to-update-indexes?show=14733#q14733) i used to do this in logstash pipelines during development debugging, but i've removed the code since then.

you would need to template your beats config files, then it would be something like this:

processors:

- add\_tags:

tags: [ {{ ansible\_fqdn }} ]

you could use ansible\_hostname for the sho… so if you want to be able to run them as separate runs, you’ll still need some way of communicating between them. one mechanism we provide for that is by serializing daml values as json through the --input-file and --output-file options to daml script. so in your case, you should make sure that the …