Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TurTLE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TurTLE
TurTLE
Commits
e826a79f
Commit
e826a79f
authored
Oct 31, 2015
by
Chichi Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
remove test_io from bfps itself
parent
8e57d0dc
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
bfps/__init__.py
+0
-1
0 additions, 1 deletion
bfps/__init__.py
bfps/test_io.py
+0
-47
0 additions, 47 deletions
bfps/test_io.py
tests/test_io.py
+16
-1
16 additions, 1 deletion
tests/test_io.py
with
16 additions
and
49 deletions
bfps/__init__.py
+
0
−
1
View file @
e826a79f
...
...
@@ -52,7 +52,6 @@ install_info = pickle.load(
'
r
'
))
from
.code
import
code
from
.test_io
import
test_io
from
.fluid_converter
import
fluid_converter
from
.fluid_resize
import
fluid_resize
from
.NavierStokes
import
NavierStokes
...
...
...
...
This diff is collapsed.
Click to expand it.
bfps/test_io.py
deleted
100644 → 0
+
0
−
47
View file @
8e57d0dc
#######################################################################
# #
# Copyright 2015 Max Planck Institute #
# for Dynamics and Self-Organization #
# #
# This file is part of bfps. #
# #
# bfps is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published #
# by the Free Software Foundation, either version 3 of the License, #
# or (at your option) any later version. #
# #
# bfps is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with bfps. If not, see <http://www.gnu.org/licenses/> #
# #
# Contact: Cristian.Lalescu@ds.mpg.de #
# #
#######################################################################
import
bfps
import
bfps.tools
import
numpy
as
np
import
pickle
import
os
class
test_io
(
bfps
.
code
):
def
__init__
(
self
,
name
=
'
test_io
'
,
work_dir
=
'
./
'
,
simname
=
'
test
'
):
super
(
test_io
,
self
).
__init__
(
work_dir
=
work_dir
,
simname
=
simname
)
self
.
name
=
name
self
.
parameters
[
'
string_parameter
'
]
=
'
test string
'
self
.
parameters
[
'
other_string_parameter
'
]
=
'
another test string
'
self
.
parameters
[
'
niter_todo
'
]
=
0
self
.
parameters
[
'
real_number
'
]
=
1.21
self
.
main_start
+=
self
.
cprint_pars
()
return
None
This diff is collapsed.
Click to expand it.
tests/test_io.py
+
16
−
1
View file @
e826a79f
...
...
@@ -27,9 +27,24 @@
from
test_base
import
*
class
test_io
(
bfps
.
code
):
def
__init__
(
self
,
name
=
'
test_io
'
,
work_dir
=
'
./
'
,
simname
=
'
test
'
):
super
(
test_io
,
self
).
__init__
(
work_dir
=
work_dir
,
simname
=
simname
)
self
.
name
=
name
self
.
parameters
[
'
string_parameter
'
]
=
'
test string
'
self
.
parameters
[
'
other_string_parameter
'
]
=
'
another test string
'
self
.
parameters
[
'
niter_todo
'
]
=
0
self
.
parameters
[
'
real_number
'
]
=
1.21
self
.
main_start
+=
self
.
cprint_pars
()
return
None
if
__name__
==
'
__main__
'
:
opt
=
parser
.
parse_args
()
c
=
bfps
.
test_io
(
work_dir
=
opt
.
work_dir
+
'
/io
'
)
c
=
test_io
(
work_dir
=
opt
.
work_dir
+
'
/io
'
)
c
.
write_src
()
c
.
write_par
()
c
.
set_host_info
({
'
type
'
:
'
pc
'
})
...
...
...
...
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
sign in
to comment