spack/var/spack/repos/builtin/packages/bohrium/pyadd.py
Todd Gamblin 24c01d57cf
imports: sort imports everywhere in Spack (#24695)
* fix remaining flake8 errors

* imports: sort imports everywhere in Spack

We enabled import order checking in #23947, but fixing things manually drives
people crazy. This used `spack style --fix --all` from #24071 to automatically
sort everything in Spack so PR submitters won't have to deal with it.

This should go in after #24071, as it assumes we're using `isort`, not
`flake8-import-order` to order things. `isort` seems to be more flexible and
allows `llnl` mports to be in their own group before `spack` ones, so this
seems like a good switch.
2021-07-08 22:12:30 +00:00

12 lines
214 B
Python

#!/usr/bin/env python
import bohrium as bh
a = bh.array([1, 2, 3])
b = bh.array([3, 4, 5])
c = a + b
if bh.all(c == bh.array([4, 6, 8])):
print("Success!")
else:
print("Failure, values not as expected.")