The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Skip adding "Linear interp of "

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
AKazak Posted - 05/19/2022 : 11:20:40 AM
OriginPro 2022b (64-bit) SR1 9.9.5.167
Windows 7 Pro SP1 x64

Greetings!

How do I tell interp1 to skip adding "Linear interp of " prefix to Comments?

Thank you.

---
Andrey
14   L A T E S T    R E P L I E S    (Newest First)
AKazak Posted - 11/13/2022 : 05:22:28 AM
quote:
Originally posted by snowli

Hi Andrey,

In official 2023 build, u may find some improvements in this area such as analysis method and settings put to a new user-defined parameter row instead of put to comments, etc. and LN, unit carried.

Thanks, Snow

quote:
Originally posted by snowli

Hi Andrey,

I added ORG-25242 for both your cases of only show long name not SN + "long name" and this case.

Right now, we can only improve tool by tool and no gui control. Some user may prefer to have analysis info. in comments.

How about keep long name and units of source data in output long name and unit, etc.
Again we can only do tool by tool so if u have suggested tools, let me know.

Best, Snow





Dear Snow,

Great news!
I will report here if find issues with this.

---
Andrey
snowli Posted - 11/11/2022 : 12:18:07 PM
Hi Andrey,

In official 2023 build, u may find some improvements in this area such as analysis method and settings put to a new user-defined parameter row instead of put to comments, etc. and LN, unit carried.

Thanks, Snow

quote:
Originally posted by snowli

Hi Andrey,

I added ORG-25242 for both your cases of only show long name not SN + "long name" and this case.

Right now, we can only improve tool by tool and no gui control. Some user may prefer to have analysis info. in comments.

How about keep long name and units of source data in output long name and unit, etc.
Again we can only do tool by tool so if u have suggested tools, let me know.

Best, Snow

AKazak Posted - 05/31/2022 : 2:25:19 PM
quote:
Originally posted by YimingChen

1. You need to replace " to ' for this special case:
Comment.Replace('%(quote)', "");


2. \x22 is just a hex number which Labtalk doesn't recognize, you need to convert string representation of hex number to decimal then to string.
Comment.Replace(char(Hex2Dec("0x22"))$, "");


James



Dear James,

Got it.
Please add the examples above to the on-line help.

---
Andrey
YimingChen Posted - 05/31/2022 : 2:15:07 PM
1. You need to replace " to ' for this special case:
Comment.Replace('%(quote)', "");


2. \x22 is just a hex number which Labtalk doesn't recognize, you need to convert string representation of hex number to decimal then to string.
Comment.Replace(char(Hex2Dec("0x22"))$, "");


James
AKazak Posted - 05/30/2022 : 09:12:51 AM
quote:
Originally posted by AKazak

quote:
Originally posted by YimingChen

Comment.Replace(char(34)$, "");




Got it.
Why don't \x22 and %(quote) work?

---
Andrey



Please share an update on the topic.

---
Andrey
AKazak Posted - 05/20/2022 : 10:42:25 AM
quote:
Originally posted by YimingChen

Comment.Replace(char(34)$, "");




Got it.
Why don't \x22 and %(quote) work?

---
Andrey
YimingChen Posted - 05/20/2022 : 09:03:57 AM
Comment.Replace(char(34)$, "");
AKazak Posted - 05/20/2022 : 12:31:40 AM
A side question about replacing double quotes.
The following options do not work:

Comment.Replace("\x22", "");
Comment.Replace("%(quote)", "");


How do I effectively replace/remove doubles in a text string?

---
Andrey
AKazak Posted - 05/19/2022 : 10:06:19 PM
quote:
Originally posted by YimingChen

Try this script:

for (int i = 1; i <= wks.ncols; i++) {
	string comment = wks.col$(i).comment$;
	comment.Replace("Linear interp of ", "");
	wks.col$(i).comment$ = comment$;
}


James



Dear James,

Thank you for sharing this.
Works correctly.

---
Andrey
YimingChen Posted - 05/19/2022 : 5:02:22 PM
Try this script:

for (int i = 1; i <= wks.ncols; i++) {
	string comment = wks.col$(i).comment$;
	comment.Replace("Linear interp of ", "");
	wks.col$(i).comment$ = comment$;
}


James
AKazak Posted - 05/19/2022 : 2:26:57 PM
quote:
Originally posted by snowli

I mean we have to implement it in each tool.

Thanks, Snow



Dear Snow,

Got it.
Can you share an LT snippet to effectively find and replace the prefix, please?

---
Andrey
snowli Posted - 05/19/2022 : 1:37:55 PM
I mean we have to implement it in each tool.

Thanks, Snow
AKazak Posted - 05/19/2022 : 1:00:42 PM
quote:
Originally posted by snowli
How about keep long name and units of source data in output long name and unit, etc.
Again we can only do tool by tool so if u have suggested tools, let me know.

Best, Snow



I support this idea.
Keeping long name and units of source data in output long name and unit, etc. would work perfectly in my tasks.

What do you mean by "do tool by tool"?

---
Andrey
snowli Posted - 05/19/2022 : 11:57:29 AM
Hi Andrey,

I added ORG-25242 for both your cases of only show long name not SN + "long name" and this case.

Right now, we can only improve tool by tool and no gui control. Some user may prefer to have analysis info. in comments.

How about keep long name and units of source data in output long name and unit, etc.
Again we can only do tool by tool so if u have suggested tools, let me know.

Best, Snow

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000