lmterryn / ITSMe

https://lmterryn.github.io/ITSMe/
40 stars 8 forks source link

Error in `[[<-.data.frame`(`*tmp*`, i, value = c(0, 1, 0, 1)) : #1

Closed liu-felix123 closed 1 year ago

liu-felix123 commented 1 year ago

Hi Louise,

i followed your step ,as below: step1 library(ITSMe) step2 pc_tree <- read_tree_pc(path = "path/to/point/cloud.txt") step3 out_dbh <- dbh_pc(pc = pc_tree, plot = TRUE)

step3 has a little problem, its show as below: "Error in [[<-.data.frame(*tmp*, i, value = c(0, 1, 0, 1)) :"

i used the cloud.txt which belong to your tests_point_cloud folder,named pc_tree.

when i add a new row to the cloud.txt,the step3 is pass. is it right do this? or other way to solve it

look foward to reply,thanks.

lmterryn commented 1 year ago

Hi Liu

Can you send me a screenshot of what you did and how the "pc_tree" variable looks in R? Which tree point cloud did you use specifically? Did you use one in the /tests/non_buttressed_trees folder?

Cheers Louise

Van: liu-felix123 @.> Verzonden: vrijdag 2 december 2022 10:01 Aan: lmterryn/ITSMe @.> CC: Subscribed @.**> Onderwerp: [lmterryn/ITSMe] Error in [[<-.data.frame(`tmp*`, i, value = c(0, 1, 0, 1)) : (Issue #1)

Hi Louise,

i followed your step ,as below: step1 library(ITSMe) step2 pc_tree <- read_tree_pc(path = "path/to/point/cloud.txt") step3 out_dbh <- dbh_pc(pc = pc_tree, plot = TRUE)

step3 has a little problem, its show as below: "Error in [[<-.data.frame(tmp, i, value = c(0, 1, 0, 1)) :"

i used the cloud.txt which belong to your tests_point_cloud folder,named pc_tree.

when i add a new row to the cloud.txt,the step3 is pass. is it right do this? or other way to solve it

look foward rto eply,thanks.

- Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flmterryn%2FITSMe%2Fissues%2F1&data=05%7C01%7Clouise.terryn%40ugent.be%7C28a7cbbc47f6404521d608dad443b738%7Cd7811cdeecef496c8f91a1786241b99c%7C1%7C0%7C638055684544604850%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=VlpQKdFRqDFPwKw7Ue4CI69XtYMyWcD1VlO26eGkWhA%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAPAT3O3H5SUHL22FDPUO5ATWLG3EHANCNFSM6AAAAAASRV4WIA&data=05%7C01%7Clouise.terryn%40ugent.be%7C28a7cbbc47f6404521d608dad443b738%7Cd7811cdeecef496c8f91a1786241b99c%7C1%7C0%7C638055684544604850%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=TAay6cC4bngANns2cQQdGhNREvkKur0XEKS%2B0Suko%2Bs%3D&reserved=0. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>

liu-felix123 commented 1 year ago

sorry, the error“Error in [[<-.data.frame(tmp, i, value = c(0, 1, 0, 1)) :" cannot recurrence.maybe something is fixed. but its show a new problem,the screenshoot,as below: 1ON73NU3QWHFVMOM{PLT03

lmterryn commented 1 year ago

Hi

I see you accidentally typed “pc_treepc_tree” instead of “pc_tree”. That explains why it doesn’t find “pc_tree”.

Cheers Louise

Van: liu-felix123 @.> Verzonden: vrijdag 2 december 2022 12:34 Aan: lmterryn/ITSMe @.> CC: Louise Terryn @.>; Comment @.> Onderwerp: Re: [lmterryn/ITSMe] Error in [[<-.data.frame(*tmp*, i, value = c(0, 1, 0, 1)) : (Issue #1)

sorry, the error“Error in [[<-.data.frame(tmp, i, value = c(0, 1, 0, 1)) :" cannot recurrence.maybe something is fixed. but its show a new problem,the screenshoot,as below: [1ON73NU3QWHFVMOM{PLT03]https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F100141618%2F205283247-f7eabf3c-a190-4c3f-9295-14a6a38f9d74.png&data=05%7C01%7Clouise.terryn%40ugent.be%7C1c4f703e092e47ed4e7a08dad4591e79%7Cd7811cdeecef496c8f91a1786241b99c%7C1%7C0%7C638055776481153050%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=dDSjifE7MKke6TIR5M5runwUr3qNBpR6NxOA4oxiY6c%3D&reserved=0

- Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flmterryn%2FITSMe%2Fissues%2F1%23issuecomment-1335111886&data=05%7C01%7Clouise.terryn%40ugent.be%7C1c4f703e092e47ed4e7a08dad4591e79%7Cd7811cdeecef496c8f91a1786241b99c%7C1%7C0%7C638055776481153050%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=XBhpEzMj9iVBbS8UIso%2FqKtpHZdsrV6sDAvqYZxGzXY%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAPAT3O3LQC3YK3XC6DZARNLWLHNCZANCNFSM6AAAAAASRV4WIA&data=05%7C01%7Clouise.terryn%40ugent.be%7C1c4f703e092e47ed4e7a08dad4591e79%7Cd7811cdeecef496c8f91a1786241b99c%7C1%7C0%7C638055776481153050%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7ut6FR56DTsn3mTRGud65XeHdelKBVk7SVPxl%2BTmut0%3D&reserved=0. You are receiving this because you commented.Message ID: @.**@.>>

liu-felix123 commented 1 year ago

a oh, thank you I entered it correctly,The error reappears U4 $EGGE_2HGX$NZUAV07KF

variable looks in R as belows: MRU9KUFC{YR`QNCAGX}6U@4

lmterryn commented 1 year ago

Hi

You are showing me the “pc_treepc_tree” variable which is not equal to to the “pc_tree” variable. If you read in the pc_tree.txt point cloud your variable should look like this: @.***

Cheers Louise

Van: liu-felix123 @.> Verzonden: zondag 4 december 2022 7:31 Aan: lmterryn/ITSMe @.> CC: Louise Terryn @.>; Comment @.> Onderwerp: Re: [lmterryn/ITSMe] Error in [[<-.data.frame(*tmp*, i, value = c(0, 1, 0, 1)) : (Issue #1)

a oh, thank you I entered it correctly,The error reappears

variable looks in R as belows:

刘芳宏 @.<mailto:@.>

 

------------------ 原始邮件 ------------------ 发件人: "lmterryn/ITSMe" @.&gt<mailto:@.&gt>;; 发送时间: 2022年12月2日(星期五) 晚上8:07 @.&gt<mailto:@.&gt>;; @.**@.&gtmailto:***@***.******@***.***&gt;; 主题: Re: [lmterryn/ITSMe] Error in [[<-.data.frame(*tmp*, i, value = c(0, 1, 0, 1)) : (Issue #1)

Hi

I see you accidentally typed “pc_treepc_tree” instead of “pc_tree”. That explains why it doesn’t find “pc_tree”.

Cheers Louise

Van: liu-felix123 @.&gt<mailto:@.&gt>; Verzonden: vrijdag 2 december 2022 12:34 Aan: lmterryn/ITSMe @.&gt<mailto:@.&gt>; CC: Louise Terryn @.&gt<mailto:@.&gt>;; Comment @.&gt<mailto:@.&gt>; Onderwerp: Re: [lmterryn/ITSMe] Error in [[<-.data.frame(*tmp*, i, value = c(0, 1, 0, 1)) : (Issue #1)

sorry, the error“Error in [[<-.data.frame(tmp, i, value = c(0, 1, 0, 1)) :" cannot recurrence.maybe something is fixed. but its show a new problem,the screenshoot,as below: [1ON73NU3QWHFVMOM{PLT03]<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F100141618%2F205283247-f7eabf3c-a190-4c3f-9295-14a6a38f9d74.png&amp;data=05%7C01%7Clouise.terryn%40ugent.be%7C1c4f703e092e47ed4e7a08dad4591e79%7Cd7811cdeecef496c8f91a1786241b99c%7C1%7C0%7C638055776481153050%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=dDSjifE7MKke6TIR5M5runwUr3qNBpR6NxOA4oxiY6c%3D&amp;reserved=0&gt;

- Reply to this email directly, view it on GitHub<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flmterryn%2FITSMe%2Fissues%2F1%23issuecomment-1335111886&amp;data=05%7C01%7Clouise.terryn%40ugent.be%7C1c4f703e092e47ed4e7a08dad4591e79%7Cd7811cdeecef496c8f91a1786241b99c%7C1%7C0%7C638055776481153050%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=XBhpEzMj9iVBbS8UIso%2FqKtpHZdsrV6sDAvqYZxGzXY%3D&amp;reserved=0&gt;, or unsubscribe<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAPAT3O3LQC3YK3XC6DZARNLWLHNCZANCNFSM6AAAAAASRV4WIA&amp;data=05%7C01%7Clouise.terryn%40ugent.be%7C1c4f703e092e47ed4e7a08dad4591e79%7Cd7811cdeecef496c8f91a1786241b99c%7C1%7C0%7C638055776481153050%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=7ut6FR56DTsn3mTRGud65XeHdelKBVk7SVPxl%2BTmut0%3D&amp;reserved=0&gt;. You are receiving this because you commented.Message ID: @.**@.>>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flmterryn%2FITSMe%2Fissues%2F1%23issuecomment-1336332953&data=05%7C01%7Clouise.terryn%40ugent.be%7C03f038f6e7554470e54608dad5c12ea2%7Cd7811cdeecef496c8f91a1786241b99c%7C1%7C0%7C638057322934091461%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=kceY9zRnsMopJpmz4MxNwOPp3jRGRW7KyfX4WpBx%2Fz8%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAPAT3O6XEDYOWHDEWGAVKHTWLQ3EDANCNFSM6AAAAAASRV4WIA&data=05%7C01%7Clouise.terryn%40ugent.be%7C03f038f6e7554470e54608dad5c12ea2%7Cd7811cdeecef496c8f91a1786241b99c%7C1%7C0%7C638057322934091461%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=KxewEyC4LA8S1joO480Kmlr%2BflQ7DTAH6W7F21m2w8Q%3D&reserved=0. You are receiving this because you commented.Message ID: @.**@.>>

liu-felix123 commented 1 year ago

like what? the screenshot seems to loss.could you send the screenshot again? ok ,iknow you mean, i indeed select wrong PC_Tree .txt

lmterryn commented 1 year ago

pc_tree

liu-felix123 commented 1 year ago


I2 {JP96YJF~4(~K32JTA ![
I2 {JP96YJF~4(~K32JTA](https://user-images.githubusercontent.com/100141618/205589440-715a3996-04ce-4e92-ba48-b5bafcbf87ae.png)
I2 {JP96YJF~4(~K32JTA

the error still exist

liu-felix123 commented 1 year ago

depend on error ,My understand is data.frame need 4 rows of data ,but the read .txt has three.so its conflict

lmterryn commented 1 year ago

I found that the problem was with updated packages ITSMe depends on. I think I fixed the problem. Try removing and installing the package again and let me know if you still get that error.

Cheers Louise

liu-felix123 commented 1 year ago

thank you, its passed. but the fit plot not show.

刘芳宏 @.***

 

------------------ 原始邮件 ------------------ 发件人: "lmterryn/ITSMe" @.>; 发送时间: 2022年12月6日(星期二) 凌晨4:01 @.>; @.**@.>; 主题: Re: [lmterryn/ITSMe] Error in [[<-.data.frame(*tmp*, i, value = c(0, 1, 0, 1)) : (Issue #1)

I found that the problem was with updated packages ITSMe depends on. I think I fixed the problem. Try removing and installing the package again and let me know if you still get that error.

Cheers Louise

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

lmterryn commented 1 year ago

Yes it does not automatically print the figure now. But you can see the figure by accessing the plot from the output: out_dbh <- dbh_pc(pc = pc_tree, plot = TRUE) out_dbh$plot

liu-felix123 commented 1 year ago

its worked. thanks for your carefully instructor

Best Regards Felix Liu

刘芳宏 @.***

 

------------------ 原始邮件 ------------------ 发件人: "lmterryn/ITSMe" @.>; 发送时间: 2022年12月6日(星期二) 晚上7:24 @.>; @.**@.>; 主题: Re: [lmterryn/ITSMe] Error in [[<-.data.frame(*tmp*, i, value = c(0, 1, 0, 1)) : (Issue #1)

Yes it does not automatically print the figure now. But you can see the figure by accessing the plot from the output: out_dbh <- dbh_pc(pc = pc_tree, plot = TRUE) out_dbh$plot

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>