Skip to content

Commit

Permalink
Corrected the reshaping of a result vector for plotting against a
Browse files Browse the repository at this point in the history
condition when only one result is given per testbench (result is
a single floating-point value, not a list).
  • Loading branch information
RTimothyEdwards committed Mar 23, 2024
1 parent 44c427a commit d982c9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cace/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
__version__ = '2.1.13'
__version__ = '2.1.14'

if __name__ == '__main__':
print(__version__, end='')
3 changes: 3 additions & 0 deletions cace/common/cace_makeplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,15 @@ def cace_makeplot(dsheet, param, parent=None):
else:
condstr += cond[2]
thistb['condstr'] = condstr
newtbresults = []
for result in tbresults:
if isinstance(result, list):
newresult = result
else:
newresult = [result]
newresult.append(condvalue)
newtbresults.append(newresult)
thistb['results'] = newtbresults

# For each testbench, find all other testbenches that have the same
# conditions *except* for the x-axis condition, and combine them
Expand Down

0 comments on commit d982c9f

Please sign in to comment.