node editor - pyflow

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: node editor - pyflow

Post by looo »

Is the latest version of pyflow (2.0.2) compatible with your work @microelly2? Or are there still patches needed?
microelly2 wrote:
Last edited by Kunda1 on Mon Mar 30, 2020 12:15 pm, edited 1 time in total.
Reason: fixed broken "mention"
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

looo wrote: Mon Mar 30, 2020 11:37 am Is the latest version of pyflow (2.0.2) compatible with your work @microelly2? Or are there still patches needed?
I have to check it and will update the instructions/code if needed.
give me some days.
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

I made a pyflow node using Euler method to simulate the SIR model.
The video is in German, it demonstrates the calculation of curves based on differential equations using parameters and data series generated from a sketcher curve.
I think this can be a way to implement other/more technical models based on differential equations too.
For me this has more priority than classical CAD because I want to know more about the future than the politicians' opinions and the news broadcasts.

phpBB [video]
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

curve fit node
phpBB [video]
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

Added two more nodes
Apply Function: calculates the fitting curve for a new set of x values
Image

Plot2D: plots the function into 2D Space as Polygon instead into a matplotlib window. So the result can reused for further CAD steps.
Image
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

The interface to csv data
How to load, filter and plot data from csv files
phpBB [video]
User avatar
ranska_
Posts: 13
Joined: Thu Apr 09, 2020 10:44 am

Re: node editor - pyflow

Post by ranska_ »

Hello @microelly2
first thanks for your awesome work. I watch lot of pyflow vidéo and I'm imprest. It look to offer so many possibility.

Sadly I encounter some issue during the installation.
I have try to install it with different way. So far the result I got was:

Code: Select all

freecad-daily 
OS: Linux Mint 19.3 (LXDE/Lubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
I also use conda with

Code: Select all

conda create -n freecad2 freecad=0.19.pre
I and follow your github instruction.
and check that the 3 git repo are clone on ~/.FreeCAD/Mod

and I test all the import and print

but when I open the the PyFlow Workbench
run the Script "create all Nodes for Test" from Menu tests
then the pyflow window close and I got In the report view this message.

Code: Select all

---------get FreeCADPyFlow------------------- getInstance @ .../home/ranska/.FreeCAD/Mod/NodeEditor/nodeeditor/pfwrap.py li: 46
<nodeeditor.freecad_pyflowapp.FreeCADPyFlow object at 0x7fb0eb65b508>
create instance getInstance @ .../home/ranska/.FreeCAD/Mod/NodeEditor/nodeeditor/pfwrap.py li: 72
Running the Python command 'Micro_createAllNodesforTests' failed:
Traceback (most recent call last):
  File "<string>", line 199, in Activated
  File "<string>", line 1, in <module>
  File "/home/ranska/.FreeCAD/Mod/NodeEditor/nodeeditor/Commands.py", line 1202, in createAllNodesforTests
    from PyFlow.Packages.PyFlowFreeCAD.Nodes.FreeCAD_Coin import nodelist

No module named 'PyFlow.Packages.PyFlowFreeCAD'
Did you have any Idea of what's going wrong.
I have try few hours but I run out of Idea of what to try to get the installation complete.

note I got the same result with

Code: Select all

freecad-daily
and

Code: Select all

conda run freecad-daily
If some one have any Idea of what can I do to solve it.
User avatar
saso
Veteran
Posts: 1924
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: node editor - pyflow

Post by saso »

microelly2 wrote: Fri Apr 10, 2020 9:17 pm How to load, filter and plot data from csv files
I would leave your node editor for cad stuff and suggest to have a look at https://www.knime.com/ for a more general data science/analytics ;)

https://www.youtube.com/user/KNIMETV/videos
https://hub.knime.com/search?q=covid
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

saso wrote: Sat Apr 11, 2020 12:13 am I would leave your node editor for cad stuff and suggest to have a look at https://www.knime.com/ for a more general data science/analytics ;)

https://www.youtube.com/user/KNIMETV/videos
https://hub.knime.com/search?q=covid
Thank you for the link. I wrote the nodes after my investigation of the corona data sets, but the nodes are not only useful for this kind of data.
I see here a way to use external tables( in this first stage only simple csv files) as parameter sets for cad models.
For example: write the parameters for screws and bolts or lege briggs into csv files and select them by the methods I demonstrated. At the end there in no plot but a configrured 3d part.
The methods will work for other interfaces too: the database interface to neo4j/cypher
and in future: interfaces to sql, json and xml.
My idea is to have more and more packages outside freecad:
csv(working name www) , cypher,
dp_04_11_001.png
dp_04_11_001.png (40.66 KiB) Viewed 2364 times
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: node editor - pyflow

Post by microelly2 »

ranska_ wrote: Fri Apr 10, 2020 9:38 pm
If some one have any Idea of what can I do to solve it.
You still have to register the package see:
https://forum.freecadweb.org/viewtopic. ... 40#p360762

One more remark:
I still have to publish the new packages cypher and www:

*add documentation
* refine code
*tests and make the nodes robust.

this will happen next days.
Post Reply