Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WindEnergyToolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wtlib
WindEnergyToolbox
Commits
d1293d7b
Commit
d1293d7b
authored
8 years ago
by
David Verelst
Browse files
Options
Downloads
Patches
Plain Diff
prepost.simchunks: add optional non-zero offset when numbering chunks
parent
1946121b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wetb/prepost/simchunks.py
+3
-3
3 additions, 3 deletions
wetb/prepost/simchunks.py
with
3 additions
and
3 deletions
wetb/prepost/simchunks.py
+
3
−
3
View file @
d1293d7b
...
@@ -35,7 +35,7 @@ from wetb.prepost.Simulations import Cases
...
@@ -35,7 +35,7 @@ from wetb.prepost.Simulations import Cases
def
create_chunks_htc_pbs
(
cases
,
sort_by_values
=
[
'
[Windspeed]
'
],
ppn
=
20
,
def
create_chunks_htc_pbs
(
cases
,
sort_by_values
=
[
'
[Windspeed]
'
],
ppn
=
20
,
nr_procs_series
=
9
,
processes
=
1
,
queue
=
'
workq
'
,
nr_procs_series
=
9
,
processes
=
1
,
queue
=
'
workq
'
,
walltime
=
'
24:00:00
'
,
chunks_dir
=
'
zip-chunks-jess
'
,
walltime
=
'
24:00:00
'
,
chunks_dir
=
'
zip-chunks-jess
'
,
pyenv
=
'
wetb_py3
'
):
pyenv
=
'
wetb_py3
'
,
i0
=
0
):
"""
Group a large number of simulations htc and pbs launch scripts into
"""
Group a large number of simulations htc and pbs launch scripts into
different zip files so we can run them with find+xargs on various nodes.
different zip files so we can run them with find+xargs on various nodes.
"""
"""
...
@@ -405,8 +405,8 @@ def create_chunks_htc_pbs(cases, sort_by_values=['[Windspeed]'], ppn=20,
...
@@ -405,8 +405,8 @@ def create_chunks_htc_pbs(cases, sort_by_values=['[Windspeed]'], ppn=20,
df_ind
=
pd
.
DataFrame
(
columns
=
[
'
chnk_nr
'
],
dtype
=
np
.
int32
)
df_ind
=
pd
.
DataFrame
(
columns
=
[
'
chnk_nr
'
],
dtype
=
np
.
int32
)
df_ind
.
index
.
name
=
'
[case_id]
'
df_ind
.
index
.
name
=
'
[case_id]
'
for
ii
,
dfi
in
enumerate
(
df_iter
):
for
ii
,
dfi
in
enumerate
(
df_iter
):
fname
,
ind
=
make_zip_chunks
(
dfi
,
ii
,
sim_id
,
run_dir
,
model_zip
)
fname
,
ind
=
make_zip_chunks
(
dfi
,
i0
+
ii
,
sim_id
,
run_dir
,
model_zip
)
make_pbs_chunks
(
dfi
,
ii
,
sim_id
,
run_dir
,
model_zip
)
make_pbs_chunks
(
dfi
,
i0
+
ii
,
sim_id
,
run_dir
,
model_zip
)
df_ind
=
df_ind
.
append
(
ind
)
df_ind
=
df_ind
.
append
(
ind
)
print
(
fname
)
print
(
fname
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment