Skip to content

Commit

Permalink
Merge pull request #2 from JPGlaser/EncounterLogging-dev
Browse files Browse the repository at this point in the history
Encounter Logger Added
  • Loading branch information
JPGlaser authored Jul 5, 2017
2 parents 086e1be + 76ad979 commit 27812dd
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/tycho/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
from util import *
from read import *
from write import *
from encounter_db import *
Binary file modified src/tycho/__init__.pyc
Binary file not shown.
Binary file modified src/tycho/analysis.pyc
Binary file not shown.
Binary file modified src/tycho/create.pyc
Binary file not shown.
Binary file added src/tycho/encounter_db.pyc
Binary file not shown.
6 changes: 4 additions & 2 deletions src/tycho/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# Python Package Importing #
# ------------------------------------- #

# TO-DO: Add time back to the read state function for Tyler's code

# Importing Necessary System Packages
import math
import io
Expand Down Expand Up @@ -119,9 +121,9 @@ def recover_crash(restart_file, gravity_code, kep, SMALLN):
for root in stars:
if hasattr(root, 'components') and not root.components is None:
root_to_tree[root] = datamodel.trees.BinaryTreeOnParticle(root.components[0])
gravity_code.particles.add_particles(stars)
#gravity_code.particles.add_particles(stars)
#print bookkeeping['model_time']
#gravity_code.set_begin_time = bookkeeping['model_time']
gravity_code.set_begin_time = bookkeeping['model_time']


multiples_code = multiples.Multiples(gravity_code, SMALLN, kep)
Expand Down
Binary file modified src/tycho/read.pyc
Binary file not shown.
Binary file modified src/tycho/util.pyc
Binary file not shown.
3 changes: 3 additions & 0 deletions src/tycho/write.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
# Python Package Importing #
# ------------------------------------- #

# TO-DO: Add time back to bookkeeping becasue of Tyler's code


# Importing Necessary System Packages
import os, io
import numpy as np
Expand Down
Binary file modified src/tycho/write.pyc
Binary file not shown.

0 comments on commit 27812dd

Please sign in to comment.