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

Add super elliptical fiducial volumes for testing in SR1 #100

Merged
merged 7 commits into from
Nov 27, 2017

Conversation

sanderbreur
Copy link
Contributor

This commit adds the code to test the 31 optimized super elliptical FV shapes for testing. The values and construction of the shapes can be found in: https://xe1t-wiki.lngs.infn.it/doku.php?id=xenon:xenon1t:analysis:sciencerun1:fiducial_volume:optimized_ellips

An analyst can now use LAX to do:
FiducialTestEllips1000().process(df) to add the Boolean row for a 1000 kg super ellips. Or do FiducialTestEllips1425().process(df) for the 1425 kg super ellips. All available fiducial volumes are between 1000-1700 kg in steps of 25 kg.

To keep the code clean I chose a method (thanks Jelle) that builds all classes from a single list of inputs instead of copy pasting 31 different classes with only different values. The class name is changed for every mass to make it clear to the analyst what they are using.

Enjoy!

This commit adds the code to test the 31 optimized super elliptical FV shapes for testing. The values and construction of the shapes can be found in: https://xe1t-wiki.lngs.infn.it/doku.php?id=xenon:xenon1t:analysis:sciencerun1:fiducial_volume:optimized_ellips

An analyst can now use LAX to do:
FiducialTestEllips1000().process(df) to add the Boolean row for a 1000 kg super ellips. Or do FiducialTestEllips1425().process(df) for the 1425 kg super ellips. All available fiducial volumes are between 1000-1700 kg in steps of 25 kg. 

To keep the code clean I chose a method (thanks Jelle) that builds all classes from a single list of inputs instead of copy pasting 31 different classes with only different values. The class name is changed for every mass to make it clear to the analyst what they are using.

Enjoy!
@pdeperio
Copy link
Contributor

pdeperio commented Nov 22, 2017

Thanks Sander. Could this be implemented in SR0 instead and inherited in SR1?

Please check codacy errors. You can check and fix locally now (or prior to committing next time) with:

flake8  --ignore E501 lax/lichens/sciencerun*.py
# check output here as next line will modify them all

autopep8 -i --ignore E501 lax/lichens/sciencerun*.py

@pdeperio pdeperio added this to the v1.3.0 milestone Nov 22, 2017
Changed name of fv_config into FvConfigs and removed the 5 trailing whitespaces  .
@sanderbreur
Copy link
Contributor Author

sanderbreur commented Nov 22, 2017 via email

@pdeperio
Copy link
Contributor

ok, how about duplicating the code in SR0 for now, and think about refactoring later?

@sanderbreur
Copy link
Contributor Author

Ok, done.

@sanderbreur
Copy link
Contributor Author

sanderbreur commented Nov 22, 2017 via email

@sreichard sreichard merged commit 2bbbaaf into master Nov 27, 2017
@sreichard sreichard deleted the sanderbreur-patch-FV-testellips branch November 27, 2017 15:10
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.

3 participants