Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pfobjects.py #25

Closed
wants to merge 7 commits into from
Closed

Update pfobjects.py #25

wants to merge 7 commits into from

Conversation

MarinaBeguin
Copy link

No description provided.

@cbernet
Copy link
Owner

cbernet commented Jul 20, 2016

coucou, tu me confirmes que c'est la bonne celle-la?

@MarinaBeguin
Copy link
Author

MarinaBeguin commented Jul 20, 2016

Coucou,

oui c'est le bon fichier

Marina

2016-07-20 15:05 GMT+02:00 Colin Bernet notifications@github.com:

coucou, tu me confirmes que c'est la bonne celle-la?


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#25 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ATXKN4SiG9pKDIKvz5wcXH2wuw7YHzoeks5qXh0KgaJpZM4JQsdY
.

@cbernet
Copy link
Owner

cbernet commented Jul 20, 2016

Salut Marina, je viens te tester et j'obtiens:

[test]$ ipython -i analysis_ee_ZH_cfg.py 0 
Python 2.7.11 (default, Jan 22 2016, 16:30:50) 
Type "copyright", "credits" or "license" for more information.

IPython 4.0.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.
  File "/Users/cbernet/Code/FCC/heppy/display/pfobjects.py", line 131
    super(GStraightTrajectory, self).__init__(description, linestyle=2, linecolor=1)
        ^
IndentationError: expected an indented block

Peux-tu essayer de ton cote et corriger?

Comme tu peux le voir, j'ai applique ces changements au-dessus de master :

* 02fff53 5 hours ago Mariiina (HEAD, Mariiina-patch-1)
|         Update pfobjects.py
|  
* 126ed7c 31 hours ago Colin (colin/master, tutorial, master)
|         sequence now accepts either iterable (e.g. other sequences) or non-iterable objects
...

for inner in inners:
inner.SetFillColor(color)
inner.SetFillStyle(3002)
if cluster.particle:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why moving the color definition inside the loop? I understand that you would like slightly different colors for photons and electons, but couldn't you just add them to the existing code?
in other words, please revive the code removed between lines 14-18 and modify it to suit your needs

@cbernet
Copy link
Owner

cbernet commented Jul 21, 2016

@Mariiina

I tested the code, it works, nice! The color chosen for the electrons is too close to the one used for the photons. as a result, it's quite difficult to see them in a busy environment. See the attached display, which contains 2 electrons.

Electrons and muons are very important, they must jump to our eyes.

Could you please choose a very bright and visible color, different from yellow, that stands out?

At some point we should implement a style configuration file for the display so that everybody can choose what they want. But that's low priority.

electrons_not_visible

@cbernet cbernet closed this Mar 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants