Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pypulseq/Sequence/write_seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ def write(self, file_name: str) -> None:
output_file.write('\n')

grad_lib_values = np.array(list(self.grad_library.type.values()))
arb_grad_mask = grad_lib_values == 'g'
trap_grad_mask = grad_lib_values == 't'
arb_grad_mask = [value == 'g' for value in grad_lib_values] # Updated code
trap_grad_mask = [value == 't' for value in grad_lib_values] # Updated code

if any(arb_grad_mask):
output_file.write('# Format of arbitrary gradients:\n')
Expand Down