Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rieder committed Apr 23, 2024
1 parent 678483e commit f4f4d7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/amuse/ic/kingmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def result(self):
if self.do_scale:
result.scale_to_standard()

if not self.convert_nbody is None:
if self.convert_nbody is not None:
result = datamodel.ParticlesWithUnitsConverted(
result, self.convert_nbody.as_converter_from_si_to_generic()
)
Expand Down
4 changes: 2 additions & 2 deletions src/amuse/test/suite/core_tests/test_textio.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from amuse.test import amusetest
from io import StringIO
import textwrap
import os
import numpy
import tempfile
import numpy

from amuse import io
from amuse.test import amusetest
from amuse.io import text
from amuse.units import units
from amuse.units import quantities, core
Expand Down

0 comments on commit f4f4d7f

Please sign in to comment.