fact-project / aict-tools

Reproducible Artificial Intelligence for Cherenkov Telescopes
MIT License
6 stars 6 forks source link

Cta dl1 support #142

Closed LukasNickel closed 3 years ago

LukasNickel commented 4 years ago

So, this is kinda huge and also not really finished. Try it out, find bugs, whatever. There are some things, that we could consider refactoring, like putting some code from the apply scripts into functions in the IO part (writing predictions for example). The IO code is somewhat messy, because you need to perform some merges on different dataframes to get all of the information and chunkwise reading is a bit tricky.

An overview of the status:

LukasNickel commented 4 years ago

I'm still learning to work with pytables/h5py, maybe some things can be implemented more efficiently. split_data and apply_cuts should work now, but there is no support for chunkwise reading. For the apply scripts it should work, but for now I would advise to just avoid it altogether.

Tests are not failing, I will test the results next.

LukasNickel commented 4 years ago

Adressed most comments and fixed some bugs.

ToDo:

LukasNickel commented 4 years ago

Apart from the apply_cuts issue everything should now be functional with cta files.

maxnoe commented 3 years ago

@LukasNickel Would be nice if we could have it for next week. Can you resolve conflicts? I will make a review.

LukasNickel commented 3 years ago

Adressed most things and also fixed some minor bugs, most notably missing user attributes. ToDo:

maxnoe commented 3 years ago

I tried this locally and had a look a the code again. Some more comments:

LukasNickel commented 3 years ago

The test is now failing because the dropping of columns before applying the model does not work in the case of the apply dxdy script.