Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
DavidWalz
airshower-deeplearning
Commits
87dd92f1
Commit
87dd92f1
authored
Sep 04, 2017
by
JGlombitza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v1.2
parent
173cff8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
PreProcessing.py
PreProcessing.py
+3
-0
sim.py
sim.py
+4
-1
No files found.
PreProcessing.py
View file @
87dd92f1
...
...
@@ -4,6 +4,9 @@ import tensorflow as tf
import
norm
Folder
=
'./RawData'
# Path to simulated shower packages
if
not
os
.
path
.
exists
(
'Data_preprocessed'
):
os
.
makedirs
(
'Data_preprocessed'
)
log_dir
=
'./Data_preprocessed'
# Path to preprocessed shower packages
filenames
=
glob
.
glob
(
Folder
+
"/showers-*"
)
a
=
10000
# packagesize
...
...
sim.py
View file @
87dd92f1
import
numpy
as
np
from
airshower
import
shower
,
utils
,
plotting
import
argparse
import
os
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
"--mass"
,
default
=
1
,
type
=
int
,
help
=
'mass number'
)
...
...
@@ -9,6 +9,9 @@ parser.add_argument("--nfiles", default=10, type=int, help='number of files')
parser
.
add_argument
(
"--nevents"
,
default
=
10000
,
type
=
int
,
help
=
'number of events per file'
)
args
=
parser
.
parse_args
()
if
not
os
.
path
.
exists
(
'RawData'
):
os
.
makedirs
(
'RawData'
)
print
'Simulating'
print
'A'
,
args
.
mass
print
'nfiles'
,
args
.
nfiles
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment