Skip to content
This repository has been archived by the owner on Mar 25, 2019. It is now read-only.

Needs positions for the new example images? #190

Closed
willettk opened this issue Mar 3, 2015 · 13 comments
Closed

Needs positions for the new example images? #190

willettk opened this issue Mar 3, 2015 · 13 comments

Comments

@willettk
Copy link
Contributor

willettk commented Mar 3, 2015

css/common.styl needs positions for the new example images, I think - not sure if these are manually or automatically generated. See pull request #187

@murraycu
Copy link
Contributor

murraycu commented Apr 2, 2015

Yes, either goods_full.coffee
( https://github.com/zooniverse/Galaxy-Zoo/blob/master/app/lib/goods_full_tree.coffee )
has incorrect "examples:" values, or the images (and their mentions in the .styl/css file)
( https://github.com/zooniverse/Galaxy-Zoo/blob/master/css/common.styl#L369 )
are missing. I guess that the "examples:" values are just wrong.

These images are not mentioned in the css file (generated from the .styl file) at all, though the decision tree's examples_count implies that they should exist. For instance, "goods_full-3_a-3_1" is for question 3 ("How many clumps are there"), answer 3 ("clump_4"), example 1 (the 2nd one).

goods_full-3_a-3_0
goods_full-3_a-3_1
goods_full-3_a-4_0
goods_full-3_a-4_1
goods_full-3_a-4_2

goods_full-4_a-3_0
goods_full-4_a-3_1

goods_full-14_a-3_0
goods_full-14_a-3_1
goods_full-14_a-4_0
goods_full-14_a-4_1

goods_full-18_a-0_0
goods_full-18_a-0_1
goods_full-18_x-0_0
goods_full-18_x-0_1
goods_full-18_x-1_0
goods_full-18_x-1_1
goods_full-18_x-2_0
goods_full-18_x-2_1
goods_full-18_x-3_0
goods_full-18_x-3_1
goods_full-18_x-4_0
goods_full-18_x-4_1
goods_full-18_x-5_0
goods_full-18_x-5_1
goods_full-18_x-6_0
goods_full-18_x-6_1
goods_full-18_x-6_2

And these files are mentioned in the .css/.styl file, but they don't exist on the server:
http://static.zooniverse.org/www.galaxyzoo.org/images/examples/goods_full-15_a-0_1.jpg
http://static.zooniverse.org/www.galaxyzoo.org/images/examples/goods_full-13_a-0_1.jpg
http://static.zooniverse.org/www.galaxyzoo.org/images/examples/goods_full-8_a-1_1.jpg
http://static.zooniverse.org/www.galaxyzoo.org/images/examples/goods_full-10_a-1_1.jpg

The web pages are trying to show these last few images which then appear as empty squares but luckily it's hard to see that the square is even there.

murraycu added a commit to murraycu/android-galaxyzoo that referenced this issue Apr 2, 2015
…to the CSS.

After commenting out the relevant code in IconsCache.
This adds the icons for the new decision trees.

Several icons are missing, but that's a problem with the web UI too:
zooniverse/Galaxy-Zoo#190
murraycu added a commit to murraycu/Galaxy-Zoo that referenced this issue Apr 3, 2015
All these newly-mentioned files are in public/images/examples/goods_full*.

See zooniverse#190
@murraycu
Copy link
Contributor

murraycu commented Apr 3, 2015

My merge request (see above) adds entries for most files - because most exist in public/images/examples/. I very much doubt that this file is generated, though maybe it should be.

It's not quite all the missing images. I also notice that goods_full-18 ("What are the odd features?") has much fewer examples than the equivalent question (sloan-6) in the sloan tree, used previously. Is this intentional?

murraycu added a commit to murraycu/Galaxy-Zoo that referenced this issue Apr 3, 2015
All these newly-mentioned files are in public/images/examples/goods_full*.

Note that the goods_full-18-x* files should probably be
goods_full-18_x* to be consistent with the other files.

See zooniverse#190
murraycu added a commit to murraycu/Galaxy-Zoo that referenced this issue Apr 3, 2015
Because it makes no sense to have example images on this.
This line for "Done" now matches the same one in sloan_tree.coffee.

See zooniverse#190
@willettk
Copy link
Contributor Author

willettk commented Apr 3, 2015

Not intentional by explicit design, but more due to the fact that it was harder to find reliable examples of those "rare" categories in past GOODS imaging.

If merge #192 looks acceptable to you, @chrissnyder, it'd be useful to deploy so that users can continue with the mobile app.

@willettk
Copy link
Contributor Author

willettk commented Apr 3, 2015

Also - we have even more sets of images in the coming months. Are there changes we need to make in advance to make sure new images will work with the mobile app?

@chrissnyder
Copy link
Contributor

I scripted up creation of the CSS for the examples, but clearly I had a bug in there somewhere. Thanks for the corrections.

It's worth mentioning that I heard people speak of moving Galaxy Zoo to Panoptes in the coming months. I don't know what that means for the current site (if we'll be keeping it and just swapping out the API, or doing something more major), but until there is a better idea of what is going on, I don't think it would an effective use of time to add more groups into the current system.

@willettk
Copy link
Contributor Author

willettk commented Apr 3, 2015

Very fair. I'll ask specifically about GZ/Panoptes when I'm in Oxford next
week.

On Fri, Apr 3, 2015 at 2:39 PM Chris Snyder notifications@github.com
wrote:

I scripted up creation of the CSS for the examples, but clearly I had a
bug in there somewhere. Thanks for the corrections.

It's worth mentioning that I heard people speak of moving Galaxy Zoo to
Panoptes in the coming months. I don't know what that means for the current
site (if we'll be keeping it and just swapping out the API, or doing
something more major), but until there is a better idea of what is going
on, I don't think it would an effective use of time to add more groups into
the current system.


Reply to this email directly or view it on GitHub
#190 (comment)
.

murraycu added a commit to murraycu/Galaxy-Zoo that referenced this issue Apr 4, 2015
Based on the images that actually exist in
public/images/examples/goods_full*.jpg.

See zooniverse#190
@murraycu
Copy link
Contributor

murraycu commented Apr 4, 2015

OK, so assuming that the list of example images in public/images/examples/ is what's correct then merge #193 should be the last correction necessary to make the examples counts in the decision tree correct.

it'd be useful to deploy so that users can continue with the mobile app.

These corrections are not just for the app - they are necessary so that users of the regular web UI see the example images and don't see odd effects (such as repeated wrong images as placeholders, for some reason). However, for boring technical reasons it would be helpful for me if it was deployed - my code grabs the icons from the server rather than from the github checkout.

Is there any particular reason that you are using the full images as the icons instead of smaller 100x100 versions, such as the ones that were put in the one examples.jpg file for the sloan tree?
https://github.com/zooniverse/Galaxy-Zoo/blob/master/public/images/examples.jpg
(Or is it just that nobody can remember how that file was created?)

@murraycu
Copy link
Contributor

murraycu commented Apr 4, 2015

Also - we have even more sets of images in the coming months. Are there changes we need to
make in advance to make sure new images will work with the mobile app?

Just let me know and I'll take care of it. For each new set/group/survey I generally have to:

  • discover the group ID.
  • get the new decision tree (CoffeeScript code in app/lib/*_tree.coffee, which I convert into an XML file),
    using my eccentric branch of GalaxyZoo.
  • get the new answer icons and example icons, by enabling some java code in my android app which parses the CSS file to discover what images to use. I should really do tihs in CoffeeScript or javascript instead, but I'm lazy.

@murraycu
Copy link
Contributor

By the way, the new questions aren't being translated:
zooniverse/Translator#11
I guess someone needs to trigger something somewhere.

@murraycu
Copy link
Contributor

It would be nice if this could be merged:
#193

I've already made the changes in the Android app.

@willettk
Copy link
Contributor Author

I know @bumishness is out of town for a few more days, and I don't feel
comfortable authorizing merges myself. Hopefully it can be done when he
gets back, or by @edpaget if that's possible.

On Wed, Apr 15, 2015 at 7:40 AM Murray Cumming notifications@github.com
wrote:

It would be nice if this could be merged:
#193 #193

I've already made the changes in the Android app.


Reply to this email directly or view it on GitHub
#190 (comment)
.

@murraycu
Copy link
Contributor

I've added some documentation for the (rather hacky) things that I would do when changing the active surveys in the Android app next time, in case anyone else ever needs to do it:
https://github.com/murraycu/android-galaxyzoo/blob/master/README_changing_surveys.md

murraycu added a commit to murraycu/android-galaxyzoo that referenced this issue Apr 20, 2015
This fails currently because these fixes have not yet been applied:
zooniverse/Galaxy-Zoo#190

But this test will be useful next time to find similar problems.
murraycu added a commit to murraycu/android-galaxyzoo that referenced this issue Apr 20, 2015
This fails currently because these fixes have not yet been applied:
zooniverse/Galaxy-Zoo#190

But this test will be useful next time to find similar problems.
@chrissnyder
Copy link
Contributor

Merged.

murraycu added a commit to murraycu/Galaxy-Zoo that referenced this issue May 9, 2015
All these newly-mentioned files are in public/images/examples/goods_full*.

See zooniverse#190
murraycu added a commit to murraycu/Galaxy-Zoo that referenced this issue May 14, 2015
Based on the images that actually exist in
public/images/examples/goods_full*.jpg.

See zooniverse#190
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants