Page 1 of 1

Lookup Missing Census Facts question

Posted: 05 Apr 2018 03:38
by BillH
I am using the Lookup Missing Census Facts plugin and am seeing something a bit strange. I'm not sure if it supposed to work like this, but I thought not.

I have a person with no life dates. His children are born between 1697 and 1717 and they die between 1758 and 1766. The person in question shows on the report as having a Birth Year of 1666 +/- 20. His Family Date is listed as 1697?.

He shows up as missing census facts for every USA Census from 1790 thru 1940. If he was born in 1666 +/- 20 he might be expected to live until maybe 1766 +/- 20 or a bit later at the most. Why are these census facts showing up as being missing? I have quite a few others with this same anomaly.
image1.jpg
image1.jpg (95.35 KiB) Viewed 12402 times
Am I doing something wrong?

Thanks

Re: Lookup Missing Census Facts question

Posted: 05 Apr 2018 09:13
by tatewise
No, you are doing nothing wrong Bill, there is an error in my substitute EstimatedDeathDate(...) function.
The FH built-in function produces crazy estimates under some circumstances, but my substitute function, in attempting to improve matters, has got it wrong in other circumstances.
Let me look into what the best solution is and provide a fix - it is pity that Calico Pie have not improved their built-in estimation functions following my reports of 18 months ago.

Re: Lookup Missing Census Facts question

Posted: 07 May 2018 02:24
by BillH
Mike,

I was just wondering if you have had a chance to look into this yet? No hurry, just curious.

Thanks,

Re: Lookup Missing Census Facts question

Posted: 07 May 2018 10:00
by tatewise
Sorry Bill, it is on my 'to do list' but other activities keep getting in the way.

Re: Lookup Missing Census Facts question

Posted: 07 May 2018 15:25
by BillH
Mike,

No problem. It is a low priority, I can just ignore the extraneous entries. I was just curious.

Thanks

Re: Lookup Missing Census Facts question

Posted: 10 May 2018 13:18
by tatewise
Bill, try the attached Lookup Missing Census Facts Plugin Version 4.3.1 Date 10 May 2018.
[EDIT: Attachment deleted as V4.4 is now in Plugin Store.]

I believe this fixes the problem and adds a few minor refinements but only where the FH function estimates are deficient.

Let me know if you spot anything that is questionable.

Re: Lookup Missing Census Facts question

Posted: 10 May 2018 14:37
by Tony Jones
I had spotted similar problems running, which now seem fixed (on a quick comparison with a report from yesterday). Thanks very much!

Re: Lookup Missing Census Facts question

Posted: 10 May 2018 15:00
by BillH
Mike,

I'm still seeing some odd entries in the report. Here is a guy with life dates of 1670 +/- 58 who is shown as missing census records in the late 1700's and early 1800's. There are others like this as well.
image1.jpg
image1.jpg (26.88 KiB) Viewed 12128 times

Re: Lookup Missing Census Facts question

Posted: 10 May 2018 16:39
by tatewise
Bill, firstly does the Plugin cure the problem you originally reported?

Cowan, ? [6820] has no Life Dates listed at all, so any dates must be estimates.

1670 +/- 58 is the Birth Year and is clearly just an estimate.

If there is an estimated Death Year then it would be as late as 1670 + 58 + 110 = 1838 where 110 is your Tools > Preferences > Estimates > Maximum Life span: setting, but there may actually be no cutoff Death Year at all, and that should not have changed in this Plugin version. You can check by reverting to the Plugin Store version and invoking Cowan, ? [6820].

BTW: You can keep both versions of the Plugin by renaming them, as long as the change is only added to the core Plugin name, e.g. Lookup Missing Census Facts New or Lookup Missing Census Facts Store.

Re: Lookup Missing Census Facts question

Posted: 10 May 2018 19:29
by BillH
Mike,

Thanks for the explanation. I was confused. I was thinking it was going to add my value of 115 (not 110) to 1670 not to 1670 + 58. So 1670 + 58 + 115 = 1843.

As for the original person I reported, Snodgrass, ?, it does fix the problem. Now there are only two censuses showing in the report. One for 1790 and one for 1800. With the dates of 1666 +/- 20 the death date would be 1666 + 20 + 115 which would be 1801.

Thanks!

Re: Lookup Missing Census Facts question

Posted: 10 May 2018 19:43
by tatewise
Bill, you are correct that it will add 1670 and 115 to give 1785 but will have the same tolerance of ± 58.

My Plugin works from the earliest estimated Birth to the latest estimated Death to cater for all possibilities.

So in this case would be from 1670 - 58 = 1612 to 1785 + 58 = 1843.

Re: Lookup Missing Census Facts question

Posted: 10 May 2018 20:43
by BillH
Mike,

Sounds good. I looked through the results and don't see anything that looks odd.

Thanks!

Re: Lookup Missing Census Facts question

Posted: 01 Jun 2018 09:46
by tatewise
The following two Plugins have been updated in the Plugin Store with the new EstimatedDeathDates(...) function.
Lookup Missing Census Facts Plugin Version 4.4 Date 01 Jun 2018
Lookup Missing BMD Records Plugin Version 2.4 Date 01 Jun 2018
All prototype versions in the FHUG will be deleted shortly.

Re: Lookup Missing Census Facts question

Posted: 01 Jun 2018 15:52
by BillH
I tried to update my copies by using Check Installed Plugins Against the Store. I got the following error on both of your plugins.
image1.jpg
image1.jpg (20.94 KiB) Viewed 11837 times
I went to the FH website and downloaded them with no problem. I then went back and tried the plugin again and got the same error. Any idea what the problem might be?

Thanks

Re: Lookup Missing Census Facts question

Posted: 01 Jun 2018 15:57
by tatewise
I suspect the status being returned by Plugin Store to the Check Installed Plugins Against the Store Plugin has changed (again).
Please report that to Calico Pie and against that Plugin in another thread here.

Re: Lookup Missing Census Facts question

Posted: 01 Jun 2018 17:01
by Jane
I don't think it's a Calico problem, rather an issue with the change to https, I'll try and look at the plugin script to fix the problem when I get a chance.

Re: Lookup Missing Census Facts question

Posted: 01 Jun 2018 17:14
by Jane
I think this will fix it.
Check Installed Plugins Against the Store.fh_lua
(12.57 KiB) Downloaded 219 times

Code: Select all

function updatePlugin(id)
    -- Get Plugin down and upgrade it
    local http = luacom.CreateObject("winhttp.winhttprequest.5.1")
    local url = "https://www.family-historian.co.uk/lnk/fetchlatestpluginversion.php?id="..id
    http:Open("GET",url,false)
    http:Send()
    http:WaitForResponse(30)
    local status = http.StatusText
    print('Status = '..status)
    print(http:getAllResponseHeaders())
    if status == 'Moved Temporarily' then
       url = http:GetResponseHeader('Location')
       print(url)
       http:Open("GET",url,false)
       http:Send()
       http:WaitForResponse(30)
        status = http.StatusText
        print('Status = '..status)
    end
    if status == 'OK' then
        length = http:GetResponseHeader('Content-Length')
        print(http:GetResponseHeader('Content-Disposition'))
        filename = string.match(http:GetResponseHeader('Content-Disposition'),'="(.*)"')
        print(filename)
        data = http.ResponseBody
        data = data:gsub("\r\n","\n")  -- Remove CR characters at end of line
        SaveStringToFile(data,pluginDir..'\\'..filename)
        print('Data Size :'..#data)
        print('Content-Length:'..length)
        print(http:getAllResponseHeaders())
    else
        fhMessageBox('An error occurred in Download please try later')
    end
end

If not I'll try and have another look in the morning.

Re: Lookup Missing Census Facts question

Posted: 01 Jun 2018 17:28
by johnmorrisoniom
That worked fine for me Jane.

Re: Lookup Missing Census Facts question

Posted: 01 Jun 2018 17:33
by BillH
That fixed it.

Thanks!

Re: Lookup Missing Census Facts question

Posted: 02 Jun 2018 07:40
by Jane
Thanks both I have sent the plugin into the Store.