* Lookup Missing Census Facts question

For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in General Usage or an appropriate sub-forum.
Post Reply
User avatar
BillH
Megastar
Posts: 2245
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Lookup Missing Census Facts question

Post 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 12893 times
Am I doing something wrong?

Thanks
User avatar
tatewise
Megastar
Posts: 28341
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Lookup Missing Census Facts question

Post 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.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
BillH
Megastar
Posts: 2245
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Lookup Missing Census Facts question

Post by BillH »

Mike,

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

Thanks,
User avatar
tatewise
Megastar
Posts: 28341
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Lookup Missing Census Facts question

Post by tatewise »

Sorry Bill, it is on my 'to do list' but other activities keep getting in the way.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
BillH
Megastar
Posts: 2245
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Lookup Missing Census Facts question

Post by BillH »

Mike,

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

Thanks
User avatar
tatewise
Megastar
Posts: 28341
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Lookup Missing Census Facts question

Post 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.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
Tony Jones
Diamond
Posts: 65
Joined: 14 Oct 2016 09:27
Family Historian: V7
Location: Berkshire, England
Contact:

Re: Lookup Missing Census Facts question

Post 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!
Using an iMac Ventura Intel via Parallels v19 / Win 10 64-bit
User avatar
BillH
Megastar
Posts: 2245
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Lookup Missing Census Facts question

Post 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 12619 times
User avatar
tatewise
Megastar
Posts: 28341
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Lookup Missing Census Facts question

Post 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.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
BillH
Megastar
Posts: 2245
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Lookup Missing Census Facts question

Post 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!
User avatar
tatewise
Megastar
Posts: 28341
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Lookup Missing Census Facts question

Post 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.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
BillH
Megastar
Posts: 2245
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Lookup Missing Census Facts question

Post by BillH »

Mike,

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

Thanks!
User avatar
tatewise
Megastar
Posts: 28341
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Lookup Missing Census Facts question

Post 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.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
BillH
Megastar
Posts: 2245
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Lookup Missing Census Facts question

Post 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 12328 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
User avatar
tatewise
Megastar
Posts: 28341
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Lookup Missing Census Facts question

Post 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.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
Jane
Site Admin
Posts: 8508
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Lookup Missing Census Facts question

Post 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.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
User avatar
Jane
Site Admin
Posts: 8508
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Lookup Missing Census Facts question

Post by Jane »

I think this will fix it.
Check Installed Plugins Against the Store.fh_lua
(12.57 KiB) Downloaded 227 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.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
User avatar
johnmorrisoniom
Megastar
Posts: 901
Joined: 18 Dec 2008 07:40
Family Historian: V7
Location: Isle of Man

Re: Lookup Missing Census Facts question

Post by johnmorrisoniom »

That worked fine for me Jane.
User avatar
BillH
Megastar
Posts: 2245
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Lookup Missing Census Facts question

Post by BillH »

That fixed it.

Thanks!
User avatar
Jane
Site Admin
Posts: 8508
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Lookup Missing Census Facts question

Post by Jane »

Thanks both I have sent the plugin into the Store.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
Post Reply