Coder Social home page Coder Social logo

csvqa's People

Contributors

amcmahon01 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

regnans

csvqa's Issues

Add error handling to skip alt data files that don't exist

2021-01-08 12:12:20,944 [INFO]: [Chamber 1 - Blue_Min1.dat] Checking for duplicates in ['TIMESTAMP', 'RECORD']...
2021-01-08 12:12:21,016 [INFO]: [Chamber 1 - Blue_Min1.dat] Found 8216 duplicates
2021-01-08 12:12:21,250 [INFO]: [Chamber 1 - Blue_Min1.dat] Dropped duplicates, kept last.
2021-01-08 12:12:21,250 [INFO]: [Chamber 1 - Blue_Min1.dat] Checking for duplicates in TIMESTAMP...
2021-01-08 12:12:21,281 [INFO]: [Chamber 1 - Blue_Min1.dat] No duplicates found.
2021-01-08 12:12:21,281 [INFO]: [Chamber 1 - Blue_Min1.dat] Checking record order...
2021-01-08 12:12:21,281 [INFO]: [Chamber 1 - Blue_Min1.dat] No out of order timestamps found.
2021-01-08 12:12:21,281 [INFO]: [Chamber 1 - Blue_Min1.dat] Checking for missings rows...
2021-01-08 12:12:21,547 [INFO]: [Chamber 1 - Blue_Min1.dat] Filled 384815 missing rows
2021-01-08 12:12:52,828 [INFO]: [Chamber 1 - Blue_Min1.dat] Loading ../Raw\Chamber 1 - Blue_Min1_alt.dat...
2021-01-08 12:12:52,828 [WARNING]: [Chamber 1 - Blue_Min1_alt.dat] Problem while loading Chamber 1 - Blue_Min1_alt.dat: [Errno 2] No such file or directory: '../Raw\Chamber 1 - Blue_Min1_alt.dat'
2021-01-08 12:12:52,828 [INFO]: [Chamber 1 - Blue_Min1_alt.dat] Checking for duplicates in TIMESTAMP...
2021-01-08 12:12:52,966 [INFO]: [Chamber 1 - Blue_Min1_alt.dat] No duplicates found.
2021-01-08 12:12:52,969 [INFO]: [Chamber 1 - Blue_Min1_alt.dat] Checking record order...
Traceback (most recent call last):
File "T:\Projects\NGEE-Arctic\ZPW\2019\Data\QA\Level0to1.py", line 359, in
d_dev = calcAltDevs(d, fname, **opts["Level 1"], **opts["Input"])
File "T:\Projects\NGEE-Arctic\ZPW\2019\Data\QA\Level0to1.py", line 211, in calcAltDevs
checkOrder(d_alt)
File "T:\Projects\NGEE-Arctic\ZPW\2019\Data\QA\Level0to1.py", line 184, in checkOrder
if df[ts].is_monotonic:
TypeError: 'NoneType' object is not subscriptable[
Level0to1_2021-01-08_121217.log
](url)

Records are out of order, cannot continue.

Chamber 1 and 2 ran, Level0to1, but then it failed on Chamber 3. Could this be catching an error in the recording of the data, where the timestamp has been messed up? (BTW, the status messages for every line are really instructive. Nice one.)

2021-01-10 20:09:34,639 [INFO]: [Chamber 3 - Black_Min1.dat]    Checking record order...
2021-01-10 20:09:34,654 [INFO]: [Chamber 3 - Black_Min1.dat]            Records are out of order, cannot continue.

Make all config parameters a dict

Rather then using individual global vars, use a config dict. Then when logging the config parameters they don't have to be redundantly rebuilt as a dict.

Need to add requirements/dependencies section to readme

  1. pandas is required (I had to get my "IT man" to help me here. He set up a venv to put this in)
  2. I'd followed the 2018 example and renamed the conf file to zpw_2019.conf. Duh. Changed name back to default.conf and it worked.
    Then I was successful in executing Level0to1.py until it found problems with the alt data. Will put that in next Issue.

clarify location of source_characteristics.csv

Working through the README, Step 1.

Took me a while to find this file - should there be a template copy in an easy to find place on the repo?
Then, unclear if I should create a data/2019 folder in the repo to store the updated source_characteristics file in.

Implement parallel processing

Parallel processing should be added particularly to the resampling process. The custom agg functions are very likely the major time sink.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.