-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make evaluation times uniform including final time (#330)
* Make evaluation times uniform including final time * New strategy - repeat last sample * Zero final sample. * Black * Make `_tot_duration` equal to seq duration. * Change adapt method to full array input * Edit simulation tests * Simplify appending 0 and final time in eval times * Modify tests to compare with simulation * Black * Remove unnecesary verification * Remove unused import * Black bis * Ignore flexible eval_times instruction type. * Update pulser/simulation/simulation.py Assign value as np.ndarray Co-authored-by: Henrique Silvério <henrique.silverio@tecnico.ulisboa.pt> * Update pulser/simulation/simulation.py Assign value as np.ndarray (bis) Co-authored-by: Henrique Silvério <henrique.silverio@tecnico.ulisboa.pt> * Passing all CI tests * Changing sampler tests * Add tests for empty and small values of eval time * Make test assert stronger increasing sampling rate Co-authored-by: Henrique Silvério <henrique.silverio@tecnico.ulisboa.pt>
- Loading branch information
1 parent
e954b9f
commit f2ee5e2
Showing
3 changed files
with
57 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters