Skip to content

Tidied modules in archive.py #151

Tidied modules in archive.py

Tidied modules in archive.py #151

GitHub Actions / Unit Test Results failed Sep 26, 2023 in 0s

10 fail in 17s

10 tests     0 ✔️  17s ⏱️
  1 suites    0 💤
  1 files    10

Results for commit f0125da.

Annotations

Check warning on line 0 in tests.CreateHDF5.test_CreateHDF5

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_CreateHDF5 (tests.CreateHDF5.test_CreateHDF5) failed

junit/test-results.xml
Raw output
def test_CreateHDF5():
        # gets current path
        path = pathlib.Path(__file__).parents[0].absolute()
        sys.path.insert(1, str(path.parents[0]))
    
        # gets the number of cores on the machine
        cores = mp.cpu_count()
        if cores == 1:
            warnings.warn("There is only 1 core on the machine", stacklevel=3)
        else:
            # Remove anything from previous tests
            if (path / "BP_CreateHDF5").exists():
                shutil.rmtree(path / "BP_CreateHDF5")
            if (path / ".BP_CreateHDF5").exists():
                os.remove(path / ".BP_CreateHDF5")
            if (path / ".BP_CreateHDF5_BPL").exists():
                os.remove(path / ".BP_CreateHDF5_BPL")
            if (path / "BP_CreateHDF5.bpa").exists():
                os.remove(path / "BP_CreateHDF5.bpa")
            if (path / "BP_CreateHDF5.md5").exists():
                os.remove(path / "BP_CreateHDF5.md5")
    
            # Run vspace
            print("Running vspace.")
            sys.stdout.flush()
            subprocess.check_output(["vspace", "vspace.in"], cwd=path)
    
            # Run multi-planet
            print("Running MultiPlanet.")
            sys.stdout.flush()
>           subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)

tests/CreateHDF5/test_CreateHDF5.py:42: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/share/miniconda/envs/vplanet/lib/python3.8/subprocess.py:415: in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/bigplanet/bigplanet/tests/CreateHDF5'), 'stdout': -1}
process = <subprocess.Popen object at 0x7fb89f188f10>, stdout = b''
stderr = None, retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.
    
        By default, all communication is in bytes, and therefore any "input" should
        be bytes, and the stdout and stderr will be bytes. If in text mode, any
        "input" should be a string, and stdout and stderr will be strings decoded
        according to locale encoding, or by "encoding" if set. Text mode is
        triggered by setting any of text, encoding, errors or universal_newlines.
    
        The other arguments are the same as for the Popen constructor.
        """
        if input is not None:
            if kwargs.get('stdin') is not None:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE
    
        if capture_output:
            if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                raise ValueError('stdout and stderr arguments may not be used '
                                 'with capture_output.')
            kwargs['stdout'] = PIPE
            kwargs['stderr'] = PIPE
    
        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired as exc:
                process.kill()
                if _mswindows:
                    # Windows accumulates the output in a single blocking
                    # read() call run on child threads, with the timeout
                    # being done in a join() on those threads.  communicate()
                    # _after_ kill() is required to collect that and add it
                    # to the exception.
                    exc.stdout, exc.stderr = process.communicate()
                else:
                    # POSIX _communicate already populated the output so
                    # far into the TimeoutExpired exception.
                    process.wait()
                raise
            except:  # Including KeyboardInterrupt, communicate handled that.
                process.kill()
                # We don't call process.wait() as .__exit__ does that for us.
                raise
            retcode = process.poll()
            if check and retcode:
>               raise CalledProcessError(retcode, process.args,
                                         output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.

/usr/share/miniconda/envs/vplanet/lib/python3.8/subprocess.py:516: CalledProcessError

Check warning on line 0 in tests.ExtractArchive.test_ExtractArchive

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ExtractArchive (tests.ExtractArchive.test_ExtractArchive) failed

junit/test-results.xml
Raw output
def test_ExtractArchive():
        # gets current path
        path = pathlib.Path(__file__).parents[0].absolute()
        sys.path.insert(1, str(path.parents[0]))
    
        # gets the number of cores on the machine
        cores = mp.cpu_count()
        if cores == 1:
            warnings.warn("There is only 1 core on the machine", stacklevel=3)
        else:
            # Remove anything from previous tests
            if (path / "BP_Extract").exists():
                shutil.rmtree(path / "BP_Extract")
            if (path / ".BP_Extract").exists():
                os.remove(path / ".BP_Extract")
            if (path / ".BP_Extract_BPL").exists():
                os.remove(path / ".BP_Extract_BPL")
            if (path / "BP_Extract.bpa").exists():
                os.remove(path / "BP_Extract.bpa")
            if (path / "BP_Extract.md5").exists():
                os.remove(path / "BP_Extract.md5")
    
            # Run vspace
            print("Running vspace.")
            sys.stdout.flush()
            subprocess.check_output(["vspace", "vspace.in"], cwd=path)
    
            # Run multi-planet
            print("Running MultiPlanet.")
            sys.stdout.flush()
>           subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)

tests/ExtractArchive/test_ExtractArchive.py:42: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/share/miniconda/envs/vplanet/lib/python3.8/subprocess.py:415: in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/bigplanet/bigplanet/tests/ExtractArchive'), 'stdout': -1}
process = <subprocess.Popen object at 0x7fb89f120dc0>, stdout = b''
stderr = None, retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.
    
        By default, all communication is in bytes, and therefore any "input" should
        be bytes, and the stdout and stderr will be bytes. If in text mode, any
        "input" should be a string, and stdout and stderr will be strings decoded
        according to locale encoding, or by "encoding" if set. Text mode is
        triggered by setting any of text, encoding, errors or universal_newlines.
    
        The other arguments are the same as for the Popen constructor.
        """
        if input is not None:
            if kwargs.get('stdin') is not None:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE
    
        if capture_output:
            if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                raise ValueError('stdout and stderr arguments may not be used '
                                 'with capture_output.')
            kwargs['stdout'] = PIPE
            kwargs['stderr'] = PIPE
    
        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired as exc:
                process.kill()
                if _mswindows:
                    # Windows accumulates the output in a single blocking
                    # read() call run on child threads, with the timeout
                    # being done in a join() on those threads.  communicate()
                    # _after_ kill() is required to collect that and add it
                    # to the exception.
                    exc.stdout, exc.stderr = process.communicate()
                else:
                    # POSIX _communicate already populated the output so
                    # far into the TimeoutExpired exception.
                    process.wait()
                raise
            except:  # Including KeyboardInterrupt, communicate handled that.
                process.kill()
                # We don't call process.wait() as .__exit__ does that for us.
                raise
            retcode = process.poll()
            if check and retcode:
>               raise CalledProcessError(retcode, process.args,
                                         output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.

/usr/share/miniconda/envs/vplanet/lib/python3.8/subprocess.py:516: CalledProcessError

Check warning on line 0 in tests.ExtractFilterArchive.test_ExtractFilterArchive

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ExtractFilterArchive (tests.ExtractFilterArchive.test_ExtractFilterArchive) failed

junit/test-results.xml
Raw output
def test_ExtractFilterArchive():
        # gets current path
        path = pathlib.Path(__file__).parents[0].absolute()
        sys.path.insert(1, str(path.parents[0]))
    
        # gets the number of cores on the machine
        cores = mp.cpu_count()
        if cores == 1:
            warnings.warn("There is only 1 core on the machine", stacklevel=3)
        else:
            # Remove any old test files/dirs
            if (path / "BP_Extract").exists():
                shutil.rmtree(path / "BP_Extract")
            if (path / ".BP_Extract").exists():
                os.remove(path / ".BP_Extract")
            if (path / ".BP_Extract_BPL").exists():
                os.remove(path / ".BP_Extract_BPL")
            if (path / "BP_Extract.bpa").exists():
                os.remove(path / "BP_Extract.bpa")
            if (path / "Test.bpf").exists():
                os.remove(path / "Test.bpf")
            if (path / "BP_Extract.md5").exists():
                os.remove(path / "BP_Extract.md5")
    
            # Run vspace
            print("Running vspace.")
            sys.stdout.flush()
            subprocess.check_output(["vspace", "vspace.in"], cwd=path)
    
            # Run multi-planet
            print("Running MultiPlanet.")
            sys.stdout.flush()
>           subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)

tests/ExtractFilterArchive/test_ExtractFilterArchive.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/share/miniconda/envs/vplanet/lib/python3.8/subprocess.py:415: in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/bigplanet/bigplanet/tests/ExtractFilterArchive'), 'stdout': -1}
process = <subprocess.Popen object at 0x7fb89efcf550>, stdout = b''
stderr = None, retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.
    
        By default, all communication is in bytes, and therefore any "input" should
        be bytes, and the stdout and stderr will be bytes. If in text mode, any
        "input" should be a string, and stdout and stderr will be strings decoded
        according to locale encoding, or by "encoding" if set. Text mode is
        triggered by setting any of text, encoding, errors or universal_newlines.
    
        The other arguments are the same as for the Popen constructor.
        """
        if input is not None:
            if kwargs.get('stdin') is not None:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE
    
        if capture_output:
            if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                raise ValueError('stdout and stderr arguments may not be used '
                                 'with capture_output.')
            kwargs['stdout'] = PIPE
            kwargs['stderr'] = PIPE
    
        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired as exc:
                process.kill()
                if _mswindows:
                    # Windows accumulates the output in a single blocking
                    # read() call run on child threads, with the timeout
                    # being done in a join() on those threads.  communicate()
                    # _after_ kill() is required to collect that and add it
                    # to the exception.
                    exc.stdout, exc.stderr = process.communicate()
                else:
                    # POSIX _communicate already populated the output so
                    # far into the TimeoutExpired exception.
                    process.wait()
                raise
            except:  # Including KeyboardInterrupt, communicate handled that.
                process.kill()
                # We don't call process.wait() as .__exit__ does that for us.
                raise
            retcode = process.poll()
            if check and retcode:
>               raise CalledProcessError(retcode, process.args,
                                         output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.

/usr/share/miniconda/envs/vplanet/lib/python3.8/subprocess.py:516: CalledProcessError

Check warning on line 0 in tests.ExtractFilterRaw.test_ExtractFilterRaw

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ExtractFilterRaw (tests.ExtractFilterRaw.test_ExtractFilterRaw) failed

junit/test-results.xml
Raw output
def test_ExtractFilterRaw():
        # gets current path
        path = pathlib.Path(__file__).parents[0].absolute()
        sys.path.insert(1, str(path.parents[0]))
    
        # gets the number of cores on the machine
        cores = mp.cpu_count()
        if cores == 1:
            warnings.warn("There is only 1 core on the machine", stacklevel=3)
        else:
            # If present, remove files from previous run
            if (path / "BP_Extract").exists():
                shutil.rmtree(path / "BP_Extract")
            if (path / ".BP_Extract").exists():
                os.remove(path / ".BP_Extract")
            if (path / "Test.bpf").exists():
                os.remove(path / "Test.bpf")
    
            # Run vspace
            print("Running vspace")
            sys.stdout.flush()
            subprocess.check_output(["vspace", "vspace.in"], cwd=path)
    
            # Run multiplanet
            print("Running multiplanet")
            sys.stdout.flush()
>           subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)

tests/ExtractFilterRaw/test_ExtractFilterRaw.py:40: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/share/miniconda/envs/vplanet/lib/python3.8/subprocess.py:415: in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/bigplanet/bigplanet/tests/ExtractFilterRaw'), 'stdout': -1}
process = <subprocess.Popen object at 0x7fb89ef5fdc0>, stdout = b''
stderr = None, retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.
    
        By default, all communication is in bytes, and therefore any "input" should
        be bytes, and the stdout and stderr will be bytes. If in text mode, any
        "input" should be a string, and stdout and stderr will be strings decoded
        according to locale encoding, or by "encoding" if set. Text mode is
        triggered by setting any of text, encoding, errors or universal_newlines.
    
        The other arguments are the same as for the Popen constructor.
        """
        if input is not None:
            if kwargs.get('stdin') is not None:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE
    
        if capture_output:
            if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                raise ValueError('stdout and stderr arguments may not be used '
                                 'with capture_output.')
            kwargs['stdout'] = PIPE
            kwargs['stderr'] = PIPE
    
        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired as exc:
                process.kill()
                if _mswindows:
                    # Windows accumulates the output in a single blocking
                    # read() call run on child threads, with the timeout
                    # being done in a join() on those threads.  communicate()
                    # _after_ kill() is required to collect that and add it
                    # to the exception.
                    exc.stdout, exc.stderr = process.communicate()
                else:
                    # POSIX _communicate already populated the output so
                    # far into the TimeoutExpired exception.
                    process.wait()
                raise
            except:  # Including KeyboardInterrupt, communicate handled that.
                process.kill()
                # We don't call process.wait() as .__exit__ does that for us.
                raise
            retcode = process.poll()
            if check and retcode:
>               raise CalledProcessError(retcode, process.args,
                                         output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.

/usr/share/miniconda/envs/vplanet/lib/python3.8/subprocess.py:516: CalledProcessError

Check warning on line 0 in tests.MD5CheckSum.test_MD5CheckSum

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_MD5CheckSum (tests.MD5CheckSum.test_MD5CheckSum) failed

junit/test-results.xml
Raw output
def test_MD5CheckSum():
        # gets current path
        path = pathlib.Path(__file__).parents[0].absolute()
        sys.path.insert(1, str(path.parents[0]))
    
        # gets the number of cores on the machine
        cores = mp.cpu_count()
        if cores == 1:
            warnings.warn("There is only 1 core on the machine", stacklevel=3)
        else:
            # If present, remove files from previous run
            if (path / "BP_Extract").exists():
                shutil.rmtree(path / "BP_Extract")
            if (path / "BP_Extract.bpa").exists():
                os.remove(path / "BP_Extract.bpa")
            if (path / ".BP_Extract").exists():
                os.remove(path / ".BP_Extract")
            if (path / ".BP_Extract_BPL").exists():
                os.remove(path / ".BP_Extract_BPL")
            if (path / "BP_Extract.md5").exists():
                os.remove(path / "BP_Extract.md5")
    
            # Run vspace
            print("Running vspace")
            sys.stdout.flush()
            subprocess.check_output(["vspace", "vspace.in"], cwd=path)
    
            # Run multi-planet
            print("Running multiplanet")
            sys.stdout.flush()
>           subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)

tests/MD5CheckSum/test_MD5CheckSum.py:40: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/share/miniconda/envs/vplanet/lib/python3.8/subprocess.py:415: in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/bigplanet/bigplanet/tests/MD5CheckSum'), 'stdout': -1}
process = <subprocess.Popen object at 0x7fb89f06e670>, stdout = b''
stderr = None, retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.
    
        By default, all communication is in bytes, and therefore any "input" should
        be bytes, and the stdout and stderr will be bytes. If in text mode, any
        "input" should be a string, and stdout and stderr will be strings decoded
        according to locale encoding, or by "encoding" if set. Text mode is
        triggered by setting any of text, encoding, errors or universal_newlines.
    
        The other arguments are the same as for the Popen constructor.
        """
        if input is not None:
            if kwargs.get('stdin') is not None:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE
    
        if capture_output:
            if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                raise ValueError('stdout and stderr arguments may not be used '
                                 'with capture_output.')
            kwargs['stdout'] = PIPE
            kwargs['stderr'] = PIPE
    
        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired as exc:
                process.kill()
                if _mswindows:
                    # Windows accumulates the output in a single blocking
                    # read() call run on child threads, with the timeout
                    # being done in a join() on those threads.  communicate()
                    # _after_ kill() is required to collect that and add it
                    # to the exception.
                    exc.stdout, exc.stderr = process.communicate()
                else:
                    # POSIX _communicate already populated the output so
                    # far into the TimeoutExpired exception.
                    process.wait()
                raise
            except:  # Including KeyboardInterrupt, communicate handled that.
                process.kill()
                # We don't call process.wait() as .__exit__ does that for us.
                raise
            retcode = process.poll()
            if check and retcode:
>               raise CalledProcessError(retcode, process.args,
                                         output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.

/usr/share/miniconda/envs/vplanet/lib/python3.8/subprocess.py:516: CalledProcessError

Check warning on line 0 in tests.SingleSim.test_singlesim

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_SingleSim (tests.SingleSim.test_singlesim) failed

junit/test-results.xml
Raw output
def test_SingleSim():
        # gets current path
        path = pathlib.Path(__file__).parents[0].absolute()
        sys.path.insert(1, str(path.parents[0]))
    
        # gets the number of cores on the machine
        cores = mp.cpu_count()
        if cores == 1:
            warnings.warn("There is only 1 core on the machine", stacklevel=3)
        else:
            # If present, remove files from previous run
            if (path / "BP_Extract").exists():
                shutil.rmtree(path / "BP_Extract")
            if (path / ".BP_Extract").exists():
                os.remove(path / ".BP_Extract")
            if (path / "Test.bpf").exists():
                os.remove(path / "Test.bpf")
    
            # Run vspace
            print("Running vspace")
            sys.stdout.flush()
            subprocess.check_output(["vspace", "vspace.in"], cwd=path)
    
            # Run multi-planet
            print("Running multiplanet")
            sys.stdout.flush()
>           subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)

tests/SingleSim/test_singlesim.py:37: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/share/miniconda/envs/vplanet/lib/python3.8/subprocess.py:415: in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/bigplanet/bigplanet/tests/SingleSim'), 'stdout': -1}
process = <subprocess.Popen object at 0x7fb89f17ec40>, stdout = b''
stderr = None, retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.
    
        By default, all communication is in bytes, and therefore any "input" should
        be bytes, and the stdout and stderr will be bytes. If in text mode, any
        "input" should be a string, and stdout and stderr will be strings decoded
        according to locale encoding, or by "encoding" if set. Text mode is
        triggered by setting any of text, encoding, errors or universal_newlines.
    
        The other arguments are the same as for the Popen constructor.
        """
        if input is not None:
            if kwargs.get('stdin') is not None:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE
    
        if capture_output:
            if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                raise ValueError('stdout and stderr arguments may not be used '
                                 'with capture_output.')
            kwargs['stdout'] = PIPE
            kwargs['stderr'] = PIPE
    
        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired as exc:
                process.kill()
                if _mswindows:
                    # Windows accumulates the output in a single blocking
                    # read() call run on child threads, with the timeout
                    # being done in a join() on those threads.  communicate()
                    # _after_ kill() is required to collect that and add it
                    # to the exception.
                    exc.stdout, exc.stderr = process.communicate()
                else:
                    # POSIX _communicate already populated the output so
                    # far into the TimeoutExpired exception.
                    process.wait()
                raise
            except:  # Including KeyboardInterrupt, communicate handled that.
                process.kill()
                # We don't call process.wait() as .__exit__ does that for us.
                raise
            retcode = process.poll()
            if check and retcode:
>               raise CalledProcessError(retcode, process.args,
                                         output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.

/usr/share/miniconda/envs/vplanet/lib/python3.8/subprocess.py:516: CalledProcessError

Check warning on line 0 in tests.Stats.test_Stats

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_Stats (tests.Stats.test_Stats) failed

junit/test-results.xml
Raw output
def test_Stats():
        # gets current path
        path = pathlib.Path(__file__).parents[0].absolute()
        sys.path.insert(1, str(path.parents[0]))
    
        # up = os.path.normpath("../")
        # if (up / "*.md5").exists:
        #     os.remove(path / "*.md5")
    
    
        # gets the number of cores on the machine
        cores = mp.cpu_count()
        if cores == 1:
            warnings.warn("There is only 1 core on the machine", stacklevel=3)
        else:
            # If present, remove files from previous run
            if (path / "BP_Stats").exists():
                shutil.rmtree(path / "BP_Stats")
            if (path / ".BP_Stats").exists():
                os.remove(path / ".BP_Stats")
            if (path / ".BP_Stats_BPL").exists():
                os.remove(path / ".BP_Stats_BPL")
            if (path / "BP_Stats.bpa").exists():
                os.remove(path / "BP_Stats.bpa")
            if (path / "../BP_Stats.md5").exists():
                os.remove(path / "../BP_Stats.md5")
            if (path / "BP_Stats.md5").exists():
                os.remove(path / "BP_Stats.md5")
    
            # Run vspace
            print("Running vspace")
            sys.stdout.flush()
            subprocess.check_output(["vspace", "vspace.in"], cwd=path)
    
            # Run multi-planet
            print("Running MultiPlanet")
            sys.stdout.flush()
>           subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)

tests/Stats/test_Stats.py:48: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/share/miniconda/envs/vplanet/lib/python3.8/subprocess.py:415: in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/bigplanet/bigplanet/tests/Stats'), 'stdout': -1}
process = <subprocess.Popen object at 0x7fb89f1885b0>, stdout = b''
stderr = None, retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.
    
        By default, all communication is in bytes, and therefore any "input" should
        be bytes, and the stdout and stderr will be bytes. If in text mode, any
        "input" should be a string, and stdout and stderr will be strings decoded
        according to locale encoding, or by "encoding" if set. Text mode is
        triggered by setting any of text, encoding, errors or universal_newlines.
    
        The other arguments are the same as for the Popen constructor.
        """
        if input is not None:
            if kwargs.get('stdin') is not None:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE
    
        if capture_output:
            if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                raise ValueError('stdout and stderr arguments may not be used '
                                 'with capture_output.')
            kwargs['stdout'] = PIPE
            kwargs['stderr'] = PIPE
    
        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired as exc:
                process.kill()
                if _mswindows:
                    # Windows accumulates the output in a single blocking
                    # read() call run on child threads, with the timeout
                    # being done in a join() on those threads.  communicate()
                    # _after_ kill() is required to collect that and add it
                    # to the exception.
                    exc.stdout, exc.stderr = process.communicate()
                else:
                    # POSIX _communicate already populated the output so
                    # far into the TimeoutExpired exception.
                    process.wait()
                raise
            except:  # Including KeyboardInterrupt, communicate handled that.
                process.kill()
                # We don't call process.wait() as .__exit__ does that for us.
                raise
            retcode = process.poll()
            if check and retcode:
>               raise CalledProcessError(retcode, process.args,
                                         output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.

/usr/share/miniconda/envs/vplanet/lib/python3.8/subprocess.py:516: CalledProcessError

Check warning on line 0 in tests.Status.test_Status

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_bpstatus (tests.Status.test_Status) failed

junit/test-results.xml
Raw output
def test_bpstatus():
        # gets current path
        path = pathlib.Path(__file__).parents[0].absolute()
        sys.path.insert(1, str(path.parents[0]))
    
        # gets the number of cores on the machine
        cores = mp.cpu_count()
        if cores == 1:
            warnings.warn("There is only 1 core on the machine", stacklevel=3)
        else:
            if (path / "BP_Status").exists():
                shutil.rmtree(path / "BP_Status")
            if (path / ".BP_Status").exists():
                os.remove(path / ".BP_Status")
            if (path / ".BP_Status_BPL").exists():
                os.remove(path / ".BP_Status_BPL")
            if (path / "BP_Status.bpa").exists():
                os.remove(path / "BP_Status.bpa")
            if (path / "../BP_Status.md5").exists():
                os.remove(path / "../BP_Status.md5")
            if (path / "BP_Status.md5").exists():
                os.remove(path / "BP_Status.md5")
    
            # Run vspace
            subprocess.check_output(["vspace", "vspace.in"], cwd=path)
    
            # Run multi-planet
>           subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)

tests/Status/test_Status.py:38: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/share/miniconda/envs/vplanet/lib/python3.8/subprocess.py:415: in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/bigplanet/bigplanet/tests/Status'), 'stdout': -1}
process = <subprocess.Popen object at 0x7fb89f024d90>, stdout = b''
stderr = None, retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.
    
        By default, all communication is in bytes, and therefore any "input" should
        be bytes, and the stdout and stderr will be bytes. If in text mode, any
        "input" should be a string, and stdout and stderr will be strings decoded
        according to locale encoding, or by "encoding" if set. Text mode is
        triggered by setting any of text, encoding, errors or universal_newlines.
    
        The other arguments are the same as for the Popen constructor.
        """
        if input is not None:
            if kwargs.get('stdin') is not None:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE
    
        if capture_output:
            if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                raise ValueError('stdout and stderr arguments may not be used '
                                 'with capture_output.')
            kwargs['stdout'] = PIPE
            kwargs['stderr'] = PIPE
    
        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired as exc:
                process.kill()
                if _mswindows:
                    # Windows accumulates the output in a single blocking
                    # read() call run on child threads, with the timeout
                    # being done in a join() on those threads.  communicate()
                    # _after_ kill() is required to collect that and add it
                    # to the exception.
                    exc.stdout, exc.stderr = process.communicate()
                else:
                    # POSIX _communicate already populated the output so
                    # far into the TimeoutExpired exception.
                    process.wait()
                raise
            except:  # Including KeyboardInterrupt, communicate handled that.
                process.kill()
                # We don't call process.wait() as .__exit__ does that for us.
                raise
            retcode = process.poll()
            if check and retcode:
>               raise CalledProcessError(retcode, process.args,
                                         output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.

/usr/share/miniconda/envs/vplanet/lib/python3.8/subprocess.py:516: CalledProcessError

Check warning on line 0 in tests.UlyssesAggregated.test_UlyssesAggregated

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_UlyssesAggregated (tests.UlyssesAggregated.test_UlyssesAggregated) failed

junit/test-results.xml
Raw output
def test_UlyssesAggregated():
        # gets current path
        path = pathlib.Path(__file__).parents[0].absolute()
        sys.path.insert(1, str(path.parents[0]))
    
        # gets the number of cores on the machine
        cores = mp.cpu_count()
        if cores == 1:
            warnings.warn("There is only 1 core on the machine", stacklevel=3)
        else:
            # If present, remove files from previous run
            if (path / "BP_Extract").exists():
                shutil.rmtree(path / "BP_Extract")
            if (path / ".BP_Extract").exists():
                os.remove(path / ".BP_Extract")
            if (path / "User.csv").exists():
                os.remove(path / "User.csv")
    
            # Run vspace
            print("Running vspace")
            sys.stdout.flush()
            subprocess.check_output(["vspace", "vspace.in"], cwd=path)
    
            # Run multi-planet
            print("Running multiplanet")
            sys.stdout.flush()
>           subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)

tests/UlyssesAggregated/test_UlyssesAggregated.py:39: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/share/miniconda/envs/vplanet/lib/python3.8/subprocess.py:415: in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/bigplanet/bigplanet/tests/UlyssesAggregated'), 'stdout': -1}
process = <subprocess.Popen object at 0x7fb89f18ef10>, stdout = b''
stderr = None, retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.
    
        By default, all communication is in bytes, and therefore any "input" should
        be bytes, and the stdout and stderr will be bytes. If in text mode, any
        "input" should be a string, and stdout and stderr will be strings decoded
        according to locale encoding, or by "encoding" if set. Text mode is
        triggered by setting any of text, encoding, errors or universal_newlines.
    
        The other arguments are the same as for the Popen constructor.
        """
        if input is not None:
            if kwargs.get('stdin') is not None:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE
    
        if capture_output:
            if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                raise ValueError('stdout and stderr arguments may not be used '
                                 'with capture_output.')
            kwargs['stdout'] = PIPE
            kwargs['stderr'] = PIPE
    
        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired as exc:
                process.kill()
                if _mswindows:
                    # Windows accumulates the output in a single blocking
                    # read() call run on child threads, with the timeout
                    # being done in a join() on those threads.  communicate()
                    # _after_ kill() is required to collect that and add it
                    # to the exception.
                    exc.stdout, exc.stderr = process.communicate()
                else:
                    # POSIX _communicate already populated the output so
                    # far into the TimeoutExpired exception.
                    process.wait()
                raise
            except:  # Including KeyboardInterrupt, communicate handled that.
                process.kill()
                # We don't call process.wait() as .__exit__ does that for us.
                raise
            retcode = process.poll()
            if check and retcode:
>               raise CalledProcessError(retcode, process.args,
                                         output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.

/usr/share/miniconda/envs/vplanet/lib/python3.8/subprocess.py:516: CalledProcessError

Check warning on line 0 in tests.UlyssesForward.test_UlyssesForward

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_UlyssesForward (tests.UlyssesForward.test_UlyssesForward) failed

junit/test-results.xml
Raw output
def test_UlyssesForward():
        # gets current path
        path = pathlib.Path(__file__).parents[0].absolute()
        sys.path.insert(1, str(path.parents[0]))
    
        # gets the number of cores on the machine
        cores = mp.cpu_count()
        if cores == 1:
            warnings.warn("There is only 1 core on the machine", stacklevel=3)
        else:
            # If present, remove files from previous run
            if (path / "BP_Extract").exists():
                shutil.rmtree(path / "BP_Extract")
            if (path / ".BP_Extract").exists():
                os.remove(path / ".BP_Extract")
            if (path / "User.csv").exists():
                os.remove(path / "User.csv")
    
            # Run vspace
            print("Running vspace")
            sys.stdout.flush()
            subprocess.check_output(["vspace", "vspace.in"], cwd=path)
    
            # Run multi-planet
            print("Running multiplanet")
            sys.stdout.flush()
>           subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)

tests/UlyssesForward/test_UlyssesForward.py:37: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/share/miniconda/envs/vplanet/lib/python3.8/subprocess.py:415: in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/bigplanet/bigplanet/tests/UlyssesForward'), 'stdout': -1}
process = <subprocess.Popen object at 0x7fb89ef5f490>, stdout = b''
stderr = None, retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.
    
        By default, all communication is in bytes, and therefore any "input" should
        be bytes, and the stdout and stderr will be bytes. If in text mode, any
        "input" should be a string, and stdout and stderr will be strings decoded
        according to locale encoding, or by "encoding" if set. Text mode is
        triggered by setting any of text, encoding, errors or universal_newlines.
    
        The other arguments are the same as for the Popen constructor.
        """
        if input is not None:
            if kwargs.get('stdin') is not None:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE
    
        if capture_output:
            if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                raise ValueError('stdout and stderr arguments may not be used '
                                 'with capture_output.')
            kwargs['stdout'] = PIPE
            kwargs['stderr'] = PIPE
    
        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired as exc:
                process.kill()
                if _mswindows:
                    # Windows accumulates the output in a single blocking
                    # read() call run on child threads, with the timeout
                    # being done in a join() on those threads.  communicate()
                    # _after_ kill() is required to collect that and add it
                    # to the exception.
                    exc.stdout, exc.stderr = process.communicate()
                else:
                    # POSIX _communicate already populated the output so
                    # far into the TimeoutExpired exception.
                    process.wait()
                raise
            except:  # Including KeyboardInterrupt, communicate handled that.
                process.kill()
                # We don't call process.wait() as .__exit__ does that for us.
                raise
            retcode = process.poll()
            if check and retcode:
>               raise CalledProcessError(retcode, process.args,
                                         output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.

/usr/share/miniconda/envs/vplanet/lib/python3.8/subprocess.py:516: CalledProcessError