Commit 2493adf6 authored by David Hendriks's avatar David Hendriks
Browse files

merged with dev/2.1.7

parents ce65ff19 4fd9b78c
Loading
Loading
Loading
Loading
+147 −1
Original line number Diff line number Diff line
core
notes/
snippets/
make_output.txt
tests/population/scaling/scaling_plots/*
tests/population/scaling/scaling_results/*
tests/json*
lib/
bin/
obj/

# Standard template
*.org~
*.so
*.pyc
build/*
/build/*
binary_c_python_api.o
output/*
*.nfs*
*.swp
.python-version
\#*

__pycache__/
.ipynb_checkpoints/


# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
*.sqlite3
*.swp
*.swo
*.pdf

# C extensions
*.so

# Distribution / packaging
.Python
env/
/build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
#  Usually these files are written by a python script from a template
#  before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# dotenv
.env

# virtualenv
.venv
venv/
ENV/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

.ipython/profile_default
.bash_history
.cache
.viminfo
.mysql_history
.config
.local
.pki

# Project-specific folders
storage
apiweb/settings/*.env
apiweb/media
apiweb/static
apiweb/profiles
node_modules
dbschema.dot

databases/
apiweb/static/
apiweb/apps/research/static/research/documents
apiweb/apps/research/static/research/theses
apiweb/apps/alumni/static/alumni/theses
apiweb/templates/piwik.html
media/

db.sqlite3
*.swp
+0 −39
Original line number Diff line number Diff line
#!/usr/bin/python3

import binary_c_python_api

############################################################
# Test script to run a binary using the binary_c Python
# module.
############################################################


def run_test_binary():
    m1 = 15.0  # Msun
    m2 = 14.0  # Msun
    separation = 0  # 0 = ignored, use period
    orbital_period = 4530.0  # days
    eccentricity = 0.0
    metallicity = 0.02
    max_evolution_time = 15000
    buffer = ""
    argstring = "binary_c M_1 {0:g} M_2 {1:g} separation {2:g} orbital_period {3:g} eccentricity {4:g} metallicity {5:g} max_evolution_time {6:g}  ".format(
        m1,
        m2,
        separation,
        orbital_period,
        eccentricity,
        metallicity,
        max_evolution_time,
    )

    output = binary_c_python_api.run_binary(argstring)

    print("\n\nBinary_c output:\n\n")
    print(output)


# binary_star = binary_c_python_api.new_system()

# print(binary_star)
run_test_binary()
 No newline at end of file

HOW_TO_CONTRIBUTE

0 → 100644
+1 −0
Original line number Diff line number Diff line
You can contribute by contacting me (david) or rob and asking what needs to be done

LICENSE

0 → 100644
+630 −0

File added.

Preview size limit exceeded, changes collapsed.

MANIFEST.in

0 → 100644
+4 −0
Original line number Diff line number Diff line
include Makefile
include src/*.c
include include/*.h
include README.md
Loading