updates: pshell import, angle-scans, elog
- pshell import: fix units and data scaling. - pshell import: support new multi-region scans. - angle scans: add trim function. - angle scans: update import_tpi_scan function. - angle scans: fix scales of check waves in normalization. - area display: new cursor mode for background selection. - elog: bugfixes (attachment list, check existing logbook).
This commit is contained in:
@ -426,6 +426,13 @@ function elog_create_logbook(name, [template])
|
||||
dfref df_volatile_root = get_elog_df("", kdfVolatile)
|
||||
dfref df_volatile_parent = df_volatile_root:logbooks
|
||||
|
||||
setdatafolder df_persistent_parent
|
||||
if (CheckName(name, 11) != 0)
|
||||
setdatafolder savedf
|
||||
Abort "invalid logbook name"
|
||||
return -1
|
||||
endif
|
||||
|
||||
if (strlen(template) > 0)
|
||||
dfref df_template = get_elog_df(template, kdfTemplates)
|
||||
dfref df_existing = get_elog_df(name, kdfPersistent)
|
||||
@ -1380,13 +1387,14 @@ static function update_attach_items(logbook)
|
||||
FindValue /text=s /txop=4 /z attach_list
|
||||
if (v_value < 0)
|
||||
k = DimSize(attach_list, 0)
|
||||
InsertPoints /M=0 k, 1, attach_list, attach_sel
|
||||
attach_list[i][kAttachColSel] = ""
|
||||
attach_list[i][kAttachColTitle] = ""
|
||||
Redimension /n=(k+1,3) attach_list, attach_sel
|
||||
//InsertPoints /M=0 k, 1, attach_list, attach_sel
|
||||
attach_list[k][kAttachColSel] = ""
|
||||
attach_list[k][kAttachColTitle] = ""
|
||||
attach_list[k][kAttachColName] = s
|
||||
attach_sel[i][kAttachColSel] = 32
|
||||
attach_sel[i][kAttachColTitle] = 0
|
||||
attach_sel[i][kAttachColName] = 0
|
||||
attach_sel[k][kAttachColSel] = 32
|
||||
attach_sel[k][kAttachColTitle] = 0
|
||||
attach_sel[k][kAttachColName] = 0
|
||||
endif
|
||||
endfor
|
||||
|
||||
|
Reference in New Issue
Block a user