The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"Loop Files over Example Sets using Retrieve"
Hi Guys,
I'm running into an annoying issue. The retrieve operator seems to be the culprit. It only takes relative paths to the repositories. EX: //Repository/ExampleSet and not C:/Repository/ExampleSet.ioo.
Currently I have 25 Example sets I want to append by looping through the .ioo files but the retrieve operator will not take an actual path name. Worse yet, the %{file_name} macro will return the name with the .ioo extension so that is also no help.
How can I specify an absolute path in the retrieve operator (this should be a check box option in the retrieve operator)?
or
How can I strip the extension from my macro to trick the retrieve operators?
Thanks,
-Gagi
I'm running into an annoying issue. The retrieve operator seems to be the culprit. It only takes relative paths to the repositories. EX: //Repository/ExampleSet and not C:/Repository/ExampleSet.ioo.
Currently I have 25 Example sets I want to append by looping through the .ioo files but the retrieve operator will not take an actual path name. Worse yet, the %{file_name} macro will return the name with the .ioo extension so that is also no help.
How can I specify an absolute path in the retrieve operator (this should be a check box option in the retrieve operator)?
or
How can I strip the extension from my macro to trick the retrieve operators?
Thanks,
-Gagi
Tagged:
0
Answers
actually you can't the retrieve operator is designed for only work on Repositories. With RapidAnalytics in Background you actually don't have any files you can access...
So what you can do is use the read operator to read ioo files from disc.
Greetings,
Sebastian
I currently have my example sets stored as ioo files. (Binary Format I Believe) I was excited when I read your response, however the read operator seems to be failing.
Process failed: Could not read file 'C:\ExampleSet.ioo': java.io.IOException: Cannot read from XML stream, wrong format: : only whitespace content allowed before start tag and not * (position: START_DOCUMENT seen *... @1:1) .
I tried various ypes but everything gave me the same error. Can this operator actually read example sets saved to the repository?
-Gagi
sorry, but example sets stored in the internal repository just can be read if they are still accessed using the internal repository. We just checked that.
I guess the problem preventing you from doing so is, that you can't loop over entries of your repository?
Greetings,
Sebastian
I have say 25 ~300MB repository example sets created by concatenating many csv files. I would like to process these entries by a loop rather than by selecting each one by one. Ideally, I could loop through a folder in the repository and select the NAME of the example set without the '.ioo' extension so I can trick the load operator to read the data. No luck so far. :-\
I'll try to strip the extension by extracting macros to text...
-Gagi
that's a possibility until we add a loop repository operator:
Loop over the files, use the generate Macro operator to cut away the .ioo using substring or replace and use this macro to access the repository.
And: Never forget to post this cool process son MyExperiment
Greetings,
Sebastian
Thanks!
if you have define a macro named "something", then you can write anywhere in parameters and it will be replaced by the value of the macro if it's defined at the point in time when the parameter is read.
Greetings,
Sebastian
-Gagi
you could post a feature request int he bugtracker for that.
Greetings,
Sebastian