Author Topic: How do I get unique names of processes that are stored in a ProcessContainer?  (Read 2867 times)

Offline LMLeitch

  • Newcomer
  • Posts: 15
Step 1: Create a Process to do ImageIntegration and fill in the needed parameters.

Step 2: Drag the blue triangle to the desktop and give the new instance a meaningful name
by using the Set Icon Identifier dialog.

Step 3: Select ProcessContainer from Process..All Processes..ProcessContainer

Step 4: Drag the renamed instance (BiasIngegrator) to the ProcessContainer

The result is that "ImageIntegration" is what appears under "Proc Id".

If I create multiple new instances and rename each to a unique name and drag them to the ProcessContainer then each will have the same Proc Id -ImageIntegration.

How can I get the renamed name to show up a a Proc Id?

I have tried to edit the name and that did not work.

I cannot remember what a process does when they all have the same name. ;-)

Thanks!!

Larry Leitch

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Process icons are not process instances; they are just envelopes that transport instances. When you drag an icon to an image, you execute a copy of the instance transported by the icon, but the icon itself is actually not used at all, beyond the GUI drag and drop operation.

When you rename an icon, you are just defining a property of the icon (its identifier), but the transported instance is not changed. Hence the icon identifier is not stored in the image's processing history.

Process instances have a much more powerful property to describe what an instance does and its role in a processing workflow: the instance description. You can edit an instance description in several ways:

(a) If the instance is being transported by an icon, do one of the following:

- Right-click the icon and select "Edit instance information"[1]

- Click the small "D" icon at the bottom right corner of the icon to read the description. Then you can click the "Edit" button (arrow) to modify it.

Note that when an icon transports an instance with a nonempty description, the small "D" icon is filled with a red color.

(b) If the instance belongs to a ProcessContainer instance, select it and click the "Edit Description" button on the ProcessContainer tool. Note that there is also a similar button on the History Explorer window, so you can modify instance descriptions directly when you are inspecting a view's processing history.

(c) Finally, if you are a programmer kind of person and/or are willing to hack things a bit, you can also edit an instance's source code to modify the P.setDescription( "..." ); function call. Currently this can only be done on the ProcessContainer interface.

In instance descriptions you can use console tags to modify the appearance and structure of the text. Typically, basic console tags such as <i></i> <b></b> <u></u> are used to define italics, bold and underlined text, respectively. More complex HTML 4 code can be used if the description is enclosed by <html></html> tags; for example, this is a valid instance description:

<html>
   <p style="font-size: 14pt;">
      This is a <i>test</i> <b>HistogramTransformation</b> process.
   </p>
</html>


 You can use bulleted lists, tables and CSS code to define rich and complex documents describing process instances.

[1] This menu item is incorrect. It will be "Edit instance description" in the next version.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline LMLeitch

  • Newcomer
  • Posts: 15
Juan,

Thank you for the speedy response!

I have tried everything that you suggested and I am still not getting the result that I am hoping for.

My goal is to have three different instances of the ImageIntegration process to integrate bias frames. The only difference between the instances would be in the Pixel Rejection section.

In one instance the Rejection Algorithm would be              Averaged Sigma Clipping for < 10 frames
In the second instance the Rejection Algorithm would be   Winsorized Sigma Clipping for 10 to 20 frames
In the second instance the Rejection Algorithm would be   Linear Fit Clipping for > 20 frames

How do I put these three instances, with unique names, into a container?

So far, all names are ImageIntegration.

Thanks again.

Larry

Offline jkmorse

  • PixInsight Padawan
  • ****
  • Posts: 931
  • Two questions, Mitch . .
    • Jim Morse Astronomy
Larry,

In the process container, highlight the process you want to label.  There is a box at the lower right where you can write a description of that process so every time you highlight it, the descriptor box will tell you which process you are highlighting.

I have done exactly what you are trying to do with my image calibration and integration as well as any number of other processes for when I want to save "non-standard" process settings (e.g., different types of star masks) and that's how I keep them all clear in my head.

Hope that helps,

Jim
Really, are clear skies, low wind and no moon that much to ask for? 

New Mexico Skies Observatory
Apogee Aspen 16803
Planewave CDK17 - Paramount MEII
Planewave IFR90 - Astrodon LRGB & NB filters
SkyX - MaximDL - ACP

http://www.jimmorse-astronomy.com
http://www.astrobin.com/users/JimMorse

Offline LMLeitch

  • Newcomer
  • Posts: 15
Jim,

Thank you very much! I got it to work.

I was under the impression that you would 'open' the container and dump the icons onto the desktop and that each icon would have a unique name. This container idea is good.

Larry

Offline jkmorse

  • PixInsight Padawan
  • ****
  • Posts: 931
  • Two questions, Mitch . .
    • Jim Morse Astronomy
Larry,

Glad it helped.  Btw, and only if you are interested, but I have a reasonably comprehensive document that I share with others on using PI.  I used to call it a cribsheet, but at 50+ pages, it really has become more of a workbook, with suggested workflows and details on use of most tools.  If you are interested, just drop me a line at jkmorse57@gmail.com and I would be happy to send you the latest version (currently working on Rev 39).

Best,

Jim
Really, are clear skies, low wind and no moon that much to ask for? 

New Mexico Skies Observatory
Apogee Aspen 16803
Planewave CDK17 - Paramount MEII
Planewave IFR90 - Astrodon LRGB & NB filters
SkyX - MaximDL - ACP

http://www.jimmorse-astronomy.com
http://www.astrobin.com/users/JimMorse