New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do Not Merge, #945
Do Not Merge, #945
Conversation
Does someone know why it does not load the modules on linux?
it works on my local machine ?! |
src/Mod/Fem/Gui/DlgSettingsFemCcx.ui
Outdated
<string>sdfsdfsdfds</string> | ||
</property> | ||
<property name="text"> | ||
<string>Depreciated</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be Deprecated
?
Could it be that travis doesn't have pivy installed? It's only required by the GUI, not for the app tests. If so we have to guard the import with if App.GuiUp.
Looks like a python3 error?! |
ATM in Fem Gui modules are seperated from App modules, thus I did not need to guide it by a GuiUp test. Python3 needs print('hello') |
fixed al above ... |
28a09e2
to
fab58e9
Compare
damn I just guarded the imports, but we would need to guard the whole ViewProviderClass ?! To not have such problems was one of the reason for splitting all Python modules in GUI and nonGUI part in FEM. I would guard the whole viewprovider for now ?! bernd |
I do not really like it but I'm curious if it passes the tests thus I just implemented it. bernd |
c1e3647
to
9b15382
Compare
No we don't need to guard the whole view provider proxy. The arch workbench does it the same way, can't tell which way is better but splitting generates alot of modules with just 3-4 lines of code. |
IT was my misstake. The import FreeCAD was missing. It is all in here: See 63d38cb ATM py3 seams to fail here: https://github.com/berndhahnebach/FreeCAD_bhb/blob/d01289fa75383f1794d388a6563f4792c2e1f057/src/Mod/Fem/ObjectsFem.py#L348 do not know why? |
It's because in python3 print is a function, is it not? We could put |
sure, if there are prints without brackets py3 fails. But AFAIK I fixed all prints. Is there still an old print without brackets somewhere in your code? bernd |
c95c0e5
to
78470fd
Compare
passes py2 and py3 on linux :-) https://travis-ci.org/FreeCAD/FreeCAD/builds/273963271?utm_source=github_status&utm_medium=notification |
531d9f9
to
74b3272
Compare
:-) |
👍 is it ready to merge? |
587dcb7
to
f55628b
Compare
e5192ec
to
eeae296
Compare
src/Mod/Fem/ObjectsFem.py
Outdated
@@ -303,7 +303,7 @@ def makeMeshNetgen(doc, name="FEMMeshNetgen"): | |||
|
|||
|
|||
def makeMeshRegion(doc, base_mesh, element_length=0.0, name="FEMMeshRegion"): | |||
'''makeMeshRegion(document, base_mesh, [element_length] [name]): creates a FEM mesh region object to define properties for a regon of a FEM mesh''' | |||
'''makeMeshRegion(document, base_mesh, [element_length], [name]): creates a FEM mesh region object to define properties for a regon of a FEM mesh''' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@berndhahnebach regon->region
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c47ec30
to
a207bb8
Compare
…th objects fem modul
dccb89b
to
e6f97d3
Compare
We are in bug fixing for GSoC project FEM elmer and would like to run the Travis tests ...
cheers bernd