Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91338031
gen_fake_data.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Nov 10, 03:20
Size
589 B
Mime Type
text/x-python
Expires
Tue, Nov 12, 03:20 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22245471
Attached To
R11149 PDM-Nicola-Oulu
gen_fake_data.py
View Options
from
gen_master
import
*
from
gen_ch
import
*
from
gen_fi
import
*
from
gen_fr
import
*
from
gen_de
import
*
from
gen_it
import
*
import
os
homepath
=
os
.
getcwd
()
CH
=
GenDataCH
(
homepath
)
FI
=
GenDataFI
(
homepath
)
FR
=
GenDataFR
(
homepath
)
DE
=
GenDataDE
(
homepath
)
IT
=
GenDataIT
(
homepath
)
countries
=
[
CH
,
FI
,
FR
,
DE
,
IT
]
for
c
in
countries
:
c
.
load_real_data
()
for
c
in
countries
:
c
.
run_fakeGen
(
250
,
countries
)
print
(
"CH_part_"
*
10
)
CH
.
fill_schema
(
nb_keys
=
3
)
for
c
in
countries
:
print
()
print
(
"{}_full_"
.
format
(
c
.
_get_country
())
*
10
)
c
.
fill_schema
(
nb_keys
=
"all"
)
Event Timeline
Log In to Comment