Skip to content

Commit

Permalink
Merge pull request #133 from FRIBDAQ:1.0.0
Browse files Browse the repository at this point in the history
1.0.0
  • Loading branch information
rfoxkendo authored Sep 27, 2023
2 parents 7dcb7bb + 32bbd0a commit 143b7ac
Show file tree
Hide file tree
Showing 9 changed files with 176 additions and 76 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rustogramer"
version = "0.4.1"
version = "1.0.0"
edition = "2021"
authors = ["Ron Fox [email protected]"]
description="A generic histogramer intended for nuclear science data from the FRIB"
Expand Down
11 changes: 8 additions & 3 deletions restclients/Tcl/SpecTclRestCommand.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1612,12 +1612,17 @@ namespace eval spectrum {

set result [list]
foreach s $raw {
set item [list \
0 [dict get $s name] [dict get $s type] \
if {[dict exists $s id]} {
set item [dict get $s id]
} else {
set item 0
}
lappend item \ \
[dict get $s name] [dict get $s type] \
[dict get $s parameters] \
[::SpecTclRestCommand::_axesDictToAxesList [dict get $s axes]] \
[dict get $s chantype] \
]
carggo
if {$showgates} {
lappend item [dict get $s gate]
}
Expand Down
1 change: 1 addition & 0 deletions restclients/Tcl/restclient.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1303,6 +1303,7 @@ snit::type SpecTclRestClient {
# @param pattern - The pattern (which can include Glob wildcard characters),
# this defaults to "*" which matches all spectra.
# @return List of dicts that contain:
# - id - id of the spectrum (only present if REST defines it).
# - name - spectrum name.
# - type - spectrum type.
# - parameter - list of parameters needed by the spectrum.
Expand Down
Loading

0 comments on commit 143b7ac

Please sign in to comment.