from spinsys import constructors
from spinsys import exceptions
from spinsys import half
from spinsys import hamiltonians
from spinsys import quantities
from spinsys import state_generators
from spinsys import tests
from spinsys import utils

__all__ = [
    "constructors",
    "exceptions",
    "half",
    "hamiltonians",
    "quantities",
    "state_generators",
    "tests",
    "utils"
]

from spinsys import constructors
from spinsys import exceptions
from spinsys import half
from spinsys import hamiltonians
from spinsys import quantities
from spinsys import state_generators
from spinsys import tests
from spinsys import utils
import shutil
import numpy

__all__ = [
    "constructors",
    "exceptions",
    "half",
    "hamiltonians",
    "quantities",
    "state_generators",
    "tests",
    "utils"
]

# set default print options for better display of data on screen
term_width = tuple(shutil.get_terminal_size())[0]
numpy.set_printoptions(precision=5, suppress=True, linewidth=term_width)

Set better defaults for numpy's print function
Set better defaults for numpy's print function

  from spinsys import constructors
  from spinsys import exceptions
  from spinsys import half
  from spinsys import hamiltonians
  from spinsys import quantities
  from spinsys import state_generators
  from spinsys import tests
  from spinsys import utils
+ import shutil
+ import numpy
  
  __all__ = [
      "constructors",
      "exceptions",
      "half",
      "hamiltonians",
      "quantities",
      "state_generators",
      "tests",
      "utils"
  ]
  
+ # set default print options for better display of data on screen
+ term_width = tuple(shutil.get_terminal_size())[0]
+ numpy.set_printoptions(precision=5, suppress=True, linewidth=term_width)
+ 
Set better defaults for numpy's print function
## Code Before:
from spinsys import constructors
from spinsys import exceptions
from spinsys import half
from spinsys import hamiltonians
from spinsys import quantities
from spinsys import state_generators
from spinsys import tests
from spinsys import utils

__all__ = [
    "constructors",
    "exceptions",
    "half",
    "hamiltonians",
    "quantities",
    "state_generators",
    "tests",
    "utils"
]

## Instruction:
Set better defaults for numpy's print function
## Code After:
from spinsys import constructors
from spinsys import exceptions
from spinsys import half
from spinsys import hamiltonians
from spinsys import quantities
from spinsys import state_generators
from spinsys import tests
from spinsys import utils
import shutil
import numpy

__all__ = [
    "constructors",
    "exceptions",
    "half",
    "hamiltonians",
    "quantities",
    "state_generators",
    "tests",
    "utils"
]

# set default print options for better display of data on screen
term_width = tuple(shutil.get_terminal_size())[0]
numpy.set_printoptions(precision=5, suppress=True, linewidth=term_width)
