fabrylab / pytfm Goto Github PK
View Code? Open in Web Editor NEW2 dimensional particle image velocimetry, traction force microscopy and monolayer stress microscopy
License: GNU General Public License v3.0
2 dimensional particle image velocimetry, traction force microscopy and monolayer stress microscopy
License: GNU General Public License v3.0
Hi,
we've updated to 0.23.6 that should work out of box. it has some important fix in the filters, especially for cases with different magnitudes of u,v, components.
I could realize that we break sometimes your software, so I'd like to see if it's something we can regulate better.
Regards
Alex
After much trial and error clickpoints was successfully installed. After pip installing pyTFM and opening click points, I went to import the pyTFM addon and received the error in the title.
import add-on path C:\Users\MECHANO3BIOLOGY Lab\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyTFM
import TFM_addon.TFM_addon
Traceback (most recent call last):
File "C:\Users\MECHANO3BIOLOGY Lab\AppData\Local\Programs\Python\Python311\Lib\site-packages\clickpoints\modules\ScriptLauncher.py", line 420, in add_script
self.script_launcher.activateScript(self.selected_script)
File "C:\Users\MECHANO3BIOLOGY Lab\AppData\Local\Programs\Python\Python311\Lib\site-packages\clickpoints\modules\ScriptLauncher.py", line 501, in activateScript
if script.activate(self, silent=silent):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\MECHANO3BIOLOGY Lab\AppData\Local\Programs\Python\Python311\Lib\site-packages\clickpoints\modules\ScriptLauncher.py", line 230, in activate
raise err
File "C:\Users\MECHANO3BIOLOGY Lab\AppData\Local\Programs\Python\Python311\Lib\site-packages\clickpoints\modules\ScriptLauncher.py", line 224, in activate
self.addon_module = import_module(folder + "." + basefilename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\MECHANO3BIOLOGY Lab\AppData\Local\Programs\Python\Python311\Lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1135, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'TFM_addon.TFM_addon'; 'TFM_addon' is not a package
resolution has not been found
Hello!
Thanks for uploading your code to github. This is not really an issue but more of a question. My name is Vivek Gupta, I'm a graduate student who was using your code. I used the example included in your python tutorial. The traction stresses from your code are outputting reasonable data. However, when I run the the monolayer stress microscopy the stress values I am seeing are on the order of 10^-8 Pa. I noticed when you calculate the mean stress you divide by the pixel size and 10^-6, which essentially gives stress values on the order of 10^-2 Pa, which are still very little. So I'm assuming I'm mis-interpretting the units somwhere. Would you be able to clarify? Or if the values you get are not what I mentioned above, what should the values be? I am not too familiar with coding in general, and Python as well, so just want to double check if I'm doing everything correctly.
Thanks for your your help.
Best,
Vivek
One of the files in the older openpiv version you use has np.float
and this fails with the new numpy > 1.24
one workaround we found was to uninstall the default numpy
and reinstall it
pip uninstall numpy
pip install numpy"<1.24"
A better solution is to update your use to a more recent version of openpiv-python which resolved this problem long ago.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.