Comments (4)
Right now, environment.yml
specifies python version to be 3.10, but I do not know if we need python 3.10.
We can downgrade python version to, for example, 3.8 and change the documentation to say that turtle works with python<3.9 instead of updating this function.
Line 7 in b4df373
What do you think, @johannesring @jorgensd ?
from turtlefsi.
Right now,
environment.yml
specifies python version to be 3.10, but I do not know if we need python 3.10. We can downgrade python version to, for example, 3.8 and change the documentation to say that turtle works with python<3.9 instead of updating this function.Line 7 in b4df373
What do you think, @johannesring @jorgensd ?
Python 3.7 is EOL (end of life) in June, so I wouldn't bother supporting it.
However, we should support Python3.8.
Thus I've made #47 that only enforces a min bound on the python env, and we can test it with anaconda.
from turtlefsi.
I ran into the same problem in Oasis not long ago and fixed it by using list(element)
instead of element.getchildren()
as written in the documentation. For turtleFSI this would be:
--- a/turtleFSI/problems/__init__.py
+++ b/turtleFSI/problems/__init__.py
@@ -419,14 +419,14 @@ def merge_xml_files(files):
# Get last timestep of first tree
base_tree = trees[indexes[0]]
last_node = base_tree.getroot()[0][0][-1]
- ind = 1 if len(last_node.getchildren()) == 3 else 2
+ ind = 1 if len(list(last_node)) == 3 else 2
last_timestep = float(last_node[ind].attrib["Value"])
# Append
for index in indexes[1:]:
tree = trees[index]
- for node in tree.getroot()[0][0].getchildren():
- ind = 1 if len(node.getchildren()) == 3 else 2
+ for node in list(tree.getroot()[0][0]):
+ ind = 1 if len(list(node)) == 3 else 2
if last_timestep < float(node[ind].attrib["Value"]):
base_tree.getroot()[0][0].append(node)
last_timestep = float(node[ind].attrib["Value"])
from turtlefsi.
solved #50
from turtlefsi.
Related Issues (20)
- Creating a mesh with markers HOT 2
- Suspended solid in a rotating fluid - dealing with finite rotations HOT 9
- Rotating a flap around a point on a aerofoil every timestamp HOT 2
- Strange numerical divergence in FSI example HOT 12
- Error in visualization of results in paraview (TF_fsi) HOT 11
- Pressure should not be part of save_deg >1 ? HOT 23
- checkpoint is only saving one time step, n-1
- Error in make_womersley_bcs due to numpy.complex removal HOT 2
- pytest missing laplace as mesh moving
- `configparser` convert all key names to lowercase HOT 4
- right hand side vector `b` newly created at every time step? HOT 1
- posssibility to extent the fluid solver to be turbulent HOT 2
- mesh_path is overwritten
- change from .pickle to .json?
- Does this open source project support the study of the effect of surface roughness on the deformation behavior of flexible plates in flow fields? HOT 2
- Remove parameterization over conda versions HOT 2
- accessing external files on docker HOT 16
- Issue new release of TurtleFSI to generate DOI for Nature Comms Paper HOT 11
- test_save_deg2 fails for FEniCS stable HOT 16
- Making a mesh HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from turtlefsi.