Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
sec2.1_ml
deeplearning
Commits
c1f59c33
Commit
c1f59c33
authored
Jul 26, 2018
by
Marius Kriegerowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor
parent
2dbb3e55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
pinky/src/data.py
pinky/src/data.py
+13
-5
No files found.
pinky/src/data.py
View file @
c1f59c33
...
...
@@ -302,7 +302,7 @@ class GFSwarmData(DataGenerator):
return
(
n
,
e
,
source
.
depth
)
def
generate
(
self
):
sources
=
swarm
.
get_effective_sources
()
sources
=
self
.
swarm
.
get_effective_sources
()
self
.
tensor_shape
=
(
len
(
self
.
targets
),
self
.
n_samples_max
)
response
=
self
.
swarm
.
engine
.
process
(
...
...
@@ -322,8 +322,16 @@ class GFSwarmData(DataGenerator):
gf_engine
=
LocalEngine
(
use_config
=
True
,
store_superdirs
=
[
'/data/stores'
],
default_store_id
=
'vogtland_001'
)
return
cls
(
fn_stations
=
'stations.pf'
,
gf_engine
=
gf_engine
,
sample_length
=
10
)
# default_store_id='test_store'
)
example_swarm
=
source_region
.
Swarm
(
geometry
=
source_region
.
CuboidSourceGeometry
(),
timing
=
source_region
.
RandomTiming
(),
engine
=
gf_engine
)
return
cls
(
fn_stations
=
'stations.pf'
,
sample_length
=
10
,
swarm
=
example_swarm
,
)
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