AdvancedPhotonSource / tike

Repository for ptychography software
http://tike.readthedocs.io
Other
29 stars 15 forks source link

API: Automatically collect times and costs into single list #162

Closed carterbox closed 3 years ago

carterbox commented 3 years ago

The "cost" parameter has been renamed "costs" to be consistent with "times".

Previously the objective value at the end of each iteration was collected in a list then converted into a numpy array and appended. Now these lists (for iteration time and objective value) are assumed to be lists and directly appended each iteration.

Also fixed a bug where the cgrad method would sometimes return a cost that was not localized to host memory.

Purpose

Approach

Pre-Merge Checklists

Submitter

Reviewer