* Lookup Missing Census Facts question

Writing and using plugins for Version 5 and above.
Post Reply
User avatar
BillH
Megastar
Posts: 1404
Joined: 31 May 2010 03:40
Family Historian: V6.2
Location: Washington State, USA

Lookup Missing Census Facts question

Post by BillH » 05 Apr 2018 03:38

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

Thanks

User avatar
tatewise
Megastar
Posts: 16306
Joined: 25 May 2010 11:00
Family Historian: V6.2
Location: Torbay, Devon, UK
Contact:

Re: Lookup Missing Census Facts question

Post by tatewise » 05 Apr 2018 09:13

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: 1404
Joined: 31 May 2010 03:40
Family Historian: V6.2
Location: Washington State, USA

Re: Lookup Missing Census Facts question

Post by BillH » 07 May 2018 02:24

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: 16306
Joined: 25 May 2010 11:00
Family Historian: V6.2
Location: Torbay, Devon, UK
Contact:

Re: Lookup Missing Census Facts question

Post by tatewise » 07 May 2018 10:00

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: 1404
Joined: 31 May 2010 03:40
Family Historian: V6.2
Location: Washington State, USA

Re: Lookup Missing Census Facts question

Post by BillH » 07 May 2018 15:25

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: 16306
Joined: 25 May 2010 11:00
Family Historian: V6.2
Location: Torbay, Devon, UK
Contact:

Re: Lookup Missing Census Facts question

Post by tatewise » 10 May 2018 13:18

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

avatar
Tony Jones
Platinum
Posts: 33
Joined: 14 Oct 2016 09:27
Family Historian: V6.2
Location: Berkshire, England
Contact:

Re: Lookup Missing Census Facts question

Post by Tony Jones » 10 May 2018 14:37

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 via Parallels/Win 10 64-bit and a MacBook via WINE

User avatar
BillH
Megastar
Posts: 1404
Joined: 31 May 2010 03:40
Family Historian: V6.2
Location: Washington State, USA

Re: Lookup Missing Census Facts question

Post by BillH » 10 May 2018 15:00

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 3135 times

User avatar
tatewise
Megastar
Posts: 16306
Joined: 25 May 2010 11:00
Family Historian: V6.2
Location: Torbay, Devon, UK
Contact:

Re: Lookup Missing Census Facts question

Post by tatewise » 10 May 2018 16:39

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: 1404
Joined: 31 May 2010 03:40
Family Historian: V6.2
Location: Washington State, USA

Re: Lookup Missing Census Facts question

Post by BillH » 10 May 2018 19:29

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: 16306
Joined: 25 May 2010 11:00
Family Historian: V6.2
Location: Torbay, Devon, UK
Contact:

Re: Lookup Missing Census Facts question

Post by tatewise » 10 May 2018 19:43

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: 1404
Joined: 31 May 2010 03:40
Family Historian: V6.2
Location: Washington State, USA

Re: Lookup Missing Census Facts question

Post by BillH » 10 May 2018 20:43

Mike,

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

Thanks!

User avatar
tatewise
Megastar
Posts: 16306
Joined: 25 May 2010 11:00
Family Historian: V6.2
Location: Torbay, Devon, UK
Contact:

Re: Lookup Missing Census Facts question

Post by tatewise » 01 Jun 2018 09:46

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: 1404
Joined: 31 May 2010 03:40
Family Historian: V6.2
Location: Washington State, USA

Re: Lookup Missing Census Facts question

Post by BillH » 01 Jun 2018 15:52

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 2844 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: 16306
Joined: 25 May 2010 11:00
Family Historian: V6.2
Location: Torbay, Devon, UK
Contact:

Re: Lookup Missing Census Facts question

Post by tatewise » 01 Jun 2018 15:57

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: 7694
Joined: 01 Nov 2002 15:00
Family Historian: V6.2
Location: Somerset, England
Contact:

Re: Lookup Missing Census Facts question

Post by Jane » 01 Jun 2018 17:01

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: 7694
Joined: 01 Nov 2002 15:00
Family Historian: V6.2
Location: Somerset, England
Contact:

Re: Lookup Missing Census Facts question

Post by Jane » 01 Jun 2018 17:14

I think this will fix it.
Check Installed Plugins Against the Store.fh_lua
(12.57 KiB) Downloaded 70 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: 766
Joined: 18 Dec 2008 07:40
Family Historian: V6.2
Location: Isle of Man

Re: Lookup Missing Census Facts question

Post by johnmorrisoniom » 01 Jun 2018 17:28

That worked fine for me Jane.

User avatar
BillH
Megastar
Posts: 1404
Joined: 31 May 2010 03:40
Family Historian: V6.2
Location: Washington State, USA

Re: Lookup Missing Census Facts question

Post by BillH » 01 Jun 2018 17:33

That fixed it.

Thanks!

User avatar
Jane
Site Admin
Posts: 7694
Joined: 01 Nov 2002 15:00
Family Historian: V6.2
Location: Somerset, England
Contact:

Re: Lookup Missing Census Facts question

Post by Jane » 02 Jun 2018 07:40

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