ocean-tracking-network / glatos

9 stars 4 forks source link

Nov2020 otn features - [merged] #161

Closed jdpye closed 2 years ago

jdpye commented 2 years ago

In GitLab by @ryangosse on Dec 2, 2020, 13:08

Merges nov2020-otn-features -> dev

These are all the features I want to be added to the new version of glatos

jdpye commented 2 years ago

In GitLab by @ryangosse on Dec 2, 2020, 13:33

unmarked as a Work In Progress

jdpye commented 2 years ago

In GitLab by @ryangosse on Dec 2, 2020, 13:33

assigned to @chrisholbrook and unassigned @ryangosse

jdpye commented 2 years ago

In GitLab by @ryangosse on Dec 7, 2020, 20:06

added 1 commit

Compare with previous version

jdpye commented 2 years ago

In GitLab by @chrisholbrook on Dec 8, 2020, 18:05

@ryangosse this errors because only one sheet in hfx_deploy_simplified.xlsx If that's the correct file, then should be this?

#' deploy <- prepare_deploy_sheet(deploy_path, 5, 1)
jdpye commented 2 years ago

In GitLab by @chrisholbrook on Dec 8, 2020, 18:06

added 2 commits

Compare with previous version

jdpye commented 2 years ago

In GitLab by @chrisholbrook on Dec 8, 2020, 18:33

@ryangosse Two issues here.

  1. in read_excel, skip is applied before anything is read, so it will omit the header. In the example above (when start = 5), the data on the 4th row will become header. So if you really want start row flexibility, then maybe read in the column names first, then specify those, as suggested below.

  2. Since skip includes the header, if we want the first record to be the 5th data record, then we need to set skip = start instead of skip = 1, as suggested below.

    #get row names to skipping when start > 1
    col_names <- names(readxl::read_excel(path, n_max = 1))
    sheet <- readxl::read_excel(path, sheet = sheet, skip = start,
                                col_names = col_names)
jdpye commented 2 years ago

In GitLab by @ryangosse on Dec 16, 2020, 15:52

changed this line in version 4 of the diff

jdpye commented 2 years ago

In GitLab by @ryangosse on Dec 16, 2020, 15:52

added 1 commit

Compare with previous version

jdpye commented 2 years ago

In GitLab by @ryangosse on Dec 16, 2020, 15:55

resolved all threads

jdpye commented 2 years ago

In GitLab by @ryangosse on Dec 16, 2020, 15:55

changed this line in version 5 of the diff

jdpye commented 2 years ago

In GitLab by @ryangosse on Dec 16, 2020, 15:55

added 1 commit

Compare with previous version

jdpye commented 2 years ago

In GitLab by @ryangosse on Dec 16, 2020, 16:12

added 1 commit

Compare with previous version

jdpye commented 2 years ago

In GitLab by @ryangosse on Dec 16, 2020, 16:22

Yes, that's the correct file, I just messed up when copying and pasting.

jdpye commented 2 years ago

In GitLab by @chrisholbrook on Apr 23, 2021, 21:14

Default value start = 1 does not work with the example file otn_nsbs_tag_metadata.xls. If the example file is a standard format, then the default value should be start = 5.

jdpye commented 2 years ago

In GitLab by @chrisholbrook on Apr 23, 2021, 21:15

Default value sheet = 1 does not work with example file otn_nsbs_tag_metadata.xls. If the example file is a standard format, then the default value should be sheet = 2.

jdpye commented 2 years ago

In GitLab by @chrisholbrook on Apr 23, 2021, 21:49

added 3 commits

Compare with previous version

jdpye commented 2 years ago

In GitLab by @chrisholbrook on Apr 23, 2021, 22:31

I would prefer if object sheet here were not named the same as argument sheet.

jdpye commented 2 years ago

In GitLab by @chrisholbrook on Apr 23, 2021, 22:31

This breaks if start is not equal to the line number with headers. Is that intended? If so, describe that here. If this is intended to provide some other flexibility (skipping first n rows of data), then it breaks; e.g., try tags <- prepare_tag_sheet(tag_path, start = 6, 2)

jdpye commented 2 years ago

In GitLab by @chrisholbrook on Apr 23, 2021, 22:31

Note that this returns a list, not a vector, result is complex structure of return object... run the example and then str(tags)... est_tag_life is a list of 20, should be integer vector.

jdpye commented 2 years ago

In GitLab by @chrisholbrook on Apr 23, 2021, 22:31

Bunch of issues in the doc here where detection was used in place of deployment; obviously carryover from earlier copy-paste. Fixed in commit 0299fba8d7baf371c84ad4c886982f4482d22eb9.

jdpye commented 2 years ago

In GitLab by @chrisholbrook on Apr 23, 2021, 22:33

added 2 commits

Compare with previous version

jdpye commented 2 years ago

In GitLab by @chrisholbrook on Apr 23, 2021, 22:53

@ryangosse Fix issues in R/load-prepare_tag_sheet.R (described in today's comments) and this is good to join chicken-and-waffles in dev.

jdpye commented 2 years ago

In GitLab by @ryangosse on Apr 26, 2021, 10:12

I'll fix these up today! Thanks Chris

jdpye commented 2 years ago

In GitLab by @ryangosse on Apr 26, 2021, 21:49

changed this line in version 9 of the diff

jdpye commented 2 years ago

In GitLab by @ryangosse on Apr 26, 2021, 21:49

changed this line in version 9 of the diff

jdpye commented 2 years ago

In GitLab by @ryangosse on Apr 26, 2021, 21:49

changed this line in version 9 of the diff

jdpye commented 2 years ago

In GitLab by @ryangosse on Apr 26, 2021, 21:49

changed this line in version 9 of the diff

jdpye commented 2 years ago

In GitLab by @ryangosse on Apr 26, 2021, 21:49

changed this line in version 9 of the diff

jdpye commented 2 years ago

In GitLab by @ryangosse on Apr 26, 2021, 21:49

added 1 commit

Compare with previous version

jdpye commented 2 years ago

In GitLab by @ryangosse on Apr 26, 2021, 21:51

Oops, didn't mean to do that

jdpye commented 2 years ago

In GitLab by @ryangosse on Apr 26, 2021, 21:51

Fixed it in prepare_deploy_sheet too

jdpye commented 2 years ago

In GitLab by @ryangosse on Apr 26, 2021, 21:52

I renamed the args for this and prepare_deploy_sheet to better reflect what the arg does

jdpye commented 2 years ago

In GitLab by @ryangosse on Apr 26, 2021, 21:53

added 5 commits

Compare with previous version

jdpye commented 2 years ago

In GitLab by @ryangosse on Apr 26, 2021, 21:55

@chrisholbrook All fixed up and merged