Skip to content

Commit

Permalink
Merge pull request #13 from yetkinyilmaz/master
Browse files Browse the repository at this point in the history
changed hit printing
  • Loading branch information
dhrou authored Jan 31, 2017
2 parents b6f16d6 + 54e7a2b commit b2dc910
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions Analysis/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions Generation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

File renamed without changes.
5 changes: 2 additions & 3 deletions oogenerateHits.py → Generation/oogenerateHits.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,5 @@ def plotHit(self):

def printHit(self, dataset = False):
""" print hit to stdout """
if dataset and self.detpos != 0 and self.detpos != 1:
print(self.hbc, ', ?,', list(self.lhit), sep='')
else: print(self.hbc, ',', self.pbc, ',', list(self.lhit), sep='')
if dataset:
print(self.hbc, ',', self.pbc, ',', list(self.lhit), sep='')
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ oogenerateDetectors.py - Detector data type and methods

Rest is either test code or helper code.

Please do not commit data files to the repo.
Please add to your .gitignore:

*~
.*
*.csv
*.pyc
*.txt
*.zip



1 change: 1 addition & 0 deletions Reconstruction/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

4 changes: 2 additions & 2 deletions build_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import os
import sys
import particleController as pc
import Generation.particleController as pc

def createDataset(n):
#first and second datasets
Expand All @@ -35,4 +35,4 @@ def createDataset(n):
os.system("mkdir data_results")
os.system("mv hits_train_soln.txt particle_valid_soln.txt particle_test_soln.txt data_results")

createDataset(10)
createDataset(10)

0 comments on commit b2dc910

Please sign in to comment.