Question about most kept species

A historical forum for issues reported in the suggestions and bugs forum that have been subsequently fixed or resolved.
Post Reply
Marc van Arc
Expert
Posts: 5038
Joined: 19 Dec 2004, 14:38
My articles: 20
My images: 61
My catfish: 9
Spotted: 35
Location 2: Eindhoven, The Netherlands

Question about most kept species

Post by Marc van Arc »

See title; wrt Auchenipteridae.

How come that the 25 most kept species include species that no-one keeps, like and ?
User avatar
Dave Rinaldo
Posts: 2178
Joined: 31 Dec 2002, 10:49
I've donated: $601.00!
My images: 238
My cats species list: 64 (i:0, k:0)
Spotted: 97
Location 2: Austin, Texas

Re: Question about most kept species

Post by Dave Rinaldo »

For reference to others, the list Mark refereed to can be found here.
Auchenipteridae
Contribute to Planet Catfish!

Use this Amazon.com link to benefit Planet Catfish!!
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 10 (i:8)
My BLogs: 4 (i:0, p:97)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Question about most kept species

Post by MatsP »

Hmm, I don't understand what's going on here.

I will have a look at the code when I have time.

Edit: Just scanned through the code, and the "title" of the section seem to not be the same as what it actually shows: It shows the most "hit" species (as in the species with most peiople viewing the page), not the ones with the most keepers.

@Jools: Do we want to "make this do what is says on the label" or "change the label to reflect the content"?

--
Mats
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 10 (i:8)
My BLogs: 4 (i:0, p:97)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Question about most kept species

Post by MatsP »

I have changed the code for this, and it's online, but still a bit broken, since the "percentage" number is calculated incorrectly (I wrote this "blind", as I was visiting Sweden and my local copy of PC is on my home machine, and I'd forgotten a configuration step when upgrading recently, so I could not test it before giving it to Jools for upload to the site).

I will try to fix the percentage calculation over the next few days, but have extra water changes due to being away...

--
Mats
dpm1
Posts: 95
Joined: 12 Dec 2014, 14:11
My cats species list: 13 (i:0, k:0)
My BLogs: 4 (i:0, p:129)
Location 1: Devon
Location 2: UK

Re: Question about most kept species

Post by dpm1 »

Wow...my woodcats dont even come under the most common family listing let alone top species!...better take more care of them...(actually only 6 keepers and little info anywhere so this isn't a surprise and far from likely error)

However the % on species is also wrong elsewhere
Eg Callichthyidae (no wonder I usually stick to 'Corys et al') (and a couple others I looked at


#1 C. Pygmaeus
#2 C. Habrosus (I know I have both but surely I don't swing the vote that much!)
#3 C.Julii - probably skewed anyway as 99% are trilineatus (again I've had both)
#11 C. Aeneus...bronze down at 11...would expect 1 or 2.
...and no place in the top 25 for C. paleautus everyone's favourite dumb as a bag of spanner peppered.

Just thought I would point it out as my unusual, though certainly not exactly rare, seem to have exploded in popularity... :d...whilst my BN is no longer 'common'... :-\
No longer active.
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 10 (i:8)
My BLogs: 4 (i:0, p:97)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Question about most kept species

Post by MatsP »

Ok, so should point out that it's (so far) only the subfamily pages that have the NEW code. The family pages don't.

--
Mats
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 10 (i:8)
My BLogs: 4 (i:0, p:97)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Question about most kept species

Post by MatsP »

And two sets of changes should make this work for family and the percentage calculation of "what percantage keeps this species" in the subfamily.

Changes are R1550 (percentage in subfamily, and some other tidy up), R1551 (same changes as in subfamily but for the family.php).

--
Mats
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 10 (i:8)
My BLogs: 4 (i:0, p:97)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Question about most kept species

Post by MatsP »

Just found an interesting feature, however. If two species has the exact same number of keepers, only one is being displayed.... ;)

Probably need to come up with a better way to maintain a "most kept" list. Will try to do this today.

--
Mats
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 10 (i:8)
My BLogs: 4 (i:0, p:97)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Question about most kept species

Post by MatsP »

R1552-1553 has an updated version that copes with "more than one species has the same number of keepers".

--
Mats
User avatar
Jools
Expert
Posts: 15978
Joined: 30 Dec 2002, 15:25
My articles: 197
My images: 944
My catfish: 238
My cats species list: 87 (i:13, k:1)
My BLogs: 7 (i:7, p:202)
My Wishlist: 23
Spotted: 447
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Question about most kept species

Post by Jools »

The update is now in place.

Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 10 (i:8)
My BLogs: 4 (i:0, p:97)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Question about most kept species

Post by MatsP »

So, Marc: Does this show what you expect, now?

--
Mats
User avatar
Jools
Expert
Posts: 15978
Joined: 30 Dec 2002, 15:25
My articles: 197
My images: 944
My catfish: 238
My cats species list: 87 (i:13, k:1)
My BLogs: 7 (i:7, p:202)
My Wishlist: 23
Spotted: 447
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Question about most kept species

Post by Jools »

Closed - think this all works fine.

Jools
Post Reply

Return to “All Resolved Issues”