Skip to content
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

Error in Saving the Project and in Exporting angles #15

Open
Micbut opened this issue Nov 22, 2022 · 12 comments
Open

Error in Saving the Project and in Exporting angles #15

Micbut opened this issue Nov 22, 2022 · 12 comments

Comments

@Micbut
Copy link

Micbut commented Nov 22, 2022

Hi,
let me first tell you that this software is amazing and so its potential.

I managed to easily upload my point cloud and reconstruct the topology.

As mentioned in the guide, the software often crash and it is advised to save often, however, when I try to save it gives me error. The both the Save Project and the Open Project option are not selectable.

I am using windows 10 and I launch plantscan3d from an environment dedicated to openalea in anaconda3.

Similarly, I cannot save the angles at the end of the reconstruction. When it try to create the file it crash

@fredboudon
Copy link
Owner

Thanks for this report. I will try to fix it for the next version of plantscan3d

@Micbut
Copy link
Author

Micbut commented Nov 24, 2022

Thank you, the following is the error log when I try to save
plantscan3d.log

@Micbut
Copy link
Author

Micbut commented Nov 24, 2022

And the following is the error log when I try to export the angles:
plantscan3d.log

@Micbut Micbut changed the title Error in Saving and in Exporting angles Error in Saving the Project, saving as .MTG and in Exporting angles Nov 24, 2022
@Micbut Micbut changed the title Error in Saving the Project, saving as .MTG and in Exporting angles Error in Saving the Project and in Exporting angles Nov 24, 2022
@Micbut
Copy link
Author

Micbut commented Nov 24, 2022

Could it be that I face these issues with saving because I have the version 1.2.2 of PlantScan3d?

I tryied to update to 1.2.3 and 1.3.0 (that seem to be available) but I get the following error:
Screenshot 2022-11-24 165924
Screenshot 2022-11-24 163806

@Micbut
Copy link
Author

Micbut commented Jan 23, 2023

This is what I find in the .log file

1.3.0

2023-01-23, 18:42:35

<class 'PermissionError'>:
[Errno 13] Permission denied: '/'

File "c:\users\buttu001.conda\envs\openale\lib\site-packages\openalea.plantscan3d-1.3.0-py3.9.egg\openalea\plantscan3d\main_viewer.py", line 2896, in angleEstimate
write_phylo_angles(str(fname[0]), phyangles, nodelength)
File "c:\users\buttu001.conda\envs\openale\lib\site-packages\openalea.plantscan3d-1.3.0-py3.9.egg\openalea\plantscan3d\angleanalysis.py", line 113, in write_phylo_angles
f = open(output_phy,'w')

@fredboudon
Copy link
Owner

Can you try to save your data into a file whose name has no space. For instance into C:/tmp. Just to check if the pb occurs because of bad filename management.

@Micbut
Copy link
Author

Micbut commented Jan 24, 2023

I tried, and it doesn't give me error, however the file is not created

@Micbut
Copy link
Author

Micbut commented Feb 2, 2023

Please let me know if you need other information

@Micbut
Copy link
Author

Micbut commented Feb 2, 2023

2 of my colleagues manage to solve the issue of exporting.

The find and error within main_viewer.py
before:
image

after:
image

However now I stuggle interpreting the content of the file

this is what I see:
image

how do I relate thi angle to the following structure?

image

@fredboudon
Copy link
Owner

In theory, there should be a main line representing the trunk and secondary lines representing the second order branches. They should have been displayed. The phyllotactic angles are then evaluated. They are given in absolute (relative to OX if I remember well) or in relative (difference of angle between 2 consecutives branches) either in clock wise order or in counter clock wise order. The internode length is also estimated (and not the node length). Hope it helps for the interpretation. I will check the visual representation of it.

@Micbut
Copy link
Author

Micbut commented Feb 3, 2023

Thank you: does it also provide inclination angles? With respect to the central vertical axis. That would be a very very valuable info

@Micbut
Copy link
Author

Micbut commented Feb 15, 2023

In theory, there should be a main line representing the trunk and secondary lines representing the second order branches. They should have been displayed. The phyllotactic angles are then evaluated. They are given in absolute (relative to OX if I remember well) or in relative (difference of angle between 2 consecutives branches) either in clock wise order or in counter clock wise order. The internode length is also estimated (and not the node length). Hope it helps for the interpretation. I will check the visual representation of it.

Unfortunately the output file generated misses some lines - I think there are few mistakes in the code that should be fixed.
One feature that would be extremely useful is to export the angles in an MTG format. Because now the MTG file is not that useful because it describes the topology of the nodes and not of the Internodes.

If we could export an MTG that describes the topology of the internodes AND for each internode (in the attributes columns) the angles and the length would be fantastic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants