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

events.py test_Data data files missing #215

Open
jllanfranchi opened this issue Nov 20, 2016 · 6 comments
Open

events.py test_Data data files missing #215

jllanfranchi opened this issue Nov 20, 2016 · 6 comments

Comments

@jllanfranchi
Copy link
Contributor

Unit test test_Data() fails due to missing data files. Since I'm in the process of removing test, data, and all but example settings files from the PISA "master" branch (i.e. cake) right now, don't add these in here, but I'll need to have access to them in order to add to e.g. a pisa_test directory I think I'll put on Wisconsin's servers that everyone can rsync when they want to run tests.

Preferably we get to the point that the pisa_test files are not proprietary at all (i.e. we don't mind sharing them publicly) but I'm not going to enforce that requirement right now, I'd much rather have working tests.

@ShiveshM
Copy link

The data files I use in that test function can also be found in the Wisconsin servers, so if you'd like I can change the paths so it'll work without needing to upload them ourselves to WIPAC.

@jllanfranchi
Copy link
Contributor Author

What is the location of these files? (apologies if you told me already and i forgot...)

@ShiveshM
Copy link

ShiveshM commented Dec 17, 2016

oh, sorry I made a change to my $PISA_RESOURCES folder structure (PR #277).
For this test to pass you need a directory that's contained in $PISA_RESOURCES called LEESARD and then inside that folder you link to the following directory (at WIPAC):
/data/user/terliuk/PRD_extend_finalLevel
This is consistent with the configuration file leesard.cfg for the sample.py stage (in PR #277). If you want to use the greco.cfg configuration file in the sample.py stage then you also need to a folder in $PISA_RESOURCES called GRECO and then link it to this folder in WIPAC:
/data/ana/LE/NBI_nutau_appearance/current_pickle_files/current/new_style_files/
I screwed up the greco paths, so this will be updated in PR #278

@jllanfranchi jllanfranchi modified the milestones: 3.1, 3.0 Jun 30, 2017
@LeanderFischer
Copy link
Collaborator

Hm, so this still exists, but isn't used in the testing funciton 🤔 I wonder if we can just get rid of this then..

@LeanderFischer LeanderFischer added the Outdated Ancient issues that can be discarded label May 7, 2024
@LeanderFischer LeanderFischer modified the milestones: 3.1, PISA 4.2 May 7, 2024
@thehrh thehrh removed the Outdated Ancient issues that can be discarded label Jul 30, 2024
@thehrh
Copy link
Contributor

thehrh commented Jul 30, 2024

I wouldn't remove the issue as long as the Data class still exists, since it should get a unit test in that case (740e061).

However, that class doesn't seem to be used by any other code than that intended unit test itself (https://github.com/search?q=repo%3Aicecube%2Fpisa+Data%28&type=code) - apart from an import (probably useless?) in

from pisa.core.events import Data

Maybe the better path forward would be to remove it completely (after some more research into its current and original use cases).

@thehrh
Copy link
Contributor

thehrh commented Jul 31, 2024

For context: #364

@thehrh thehrh removed this from the PISA 4.2 milestone Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants