Comments (1)
The checker crashed in custom checks, in interlab.py at the part of the code screenshotted below
Below is the revised code. Before the revisions, there were datetime operations being done on the testdateendtime/starttime fields. However it is not safe to assume that those fields will be pandas time objects. 99% of the time, time fields are submitted to us as varchar fields, meaning those fields were strings.
Since we were trying to check the time difference between those two fields, that was why we got the error message “unsupported operand type(s) for -: 'str' and 'str'”
Below I convert the columns to pandas timestamps before checking the difference. Keep in mind this doesn’t permanently change the columns, but just temporarily to check the time difference
This revised code was able to solve the problem
from checker2.0.
Related Issues (20)
- Checker gives "index 1 is out of bounds for axis 0 with size 1" error HOT 1
- 'ascii' codec can't encode character '\u2019' in position 2217: ordinal not in range(128) HOT 2
- User's inputs have whitespace, lookup failures due to case-sensitivity HOT 1
- Application error HOT 2
- current_app maintainers gets modified HOT 1
- HTML not getting cleared out when user drags and drops a second time HOT 1
- Have to refresh page when clicking lookup list links
- Core checks fails when they put a bad datatype in a primary key column HOT 2
- core checks fails when two columns of the same name in table HOT 1
- CrabChecks - ProtocolMetadata HOT 2
- Core Checks - application failure when missing column for protocol_metadata HOT 2
- checkDuplicatesInProduction fails when primary key field is empty HOT 1
- CORE Check - Error occurs when "trying to merge on float64 and object columns"
- Core Check Error: "You are trying to merge on float64 and object columns" HOT 1
- application crashes when timestamp in date field HOT 1
- scraper doesn't work HOT 1
- custom checks - logic check flags incorrect/empty row of data HOT 1
- excel - dropped files with period occuring within filename before file extension does not return the marked excel file HOT 2
- coord.get('row_index') returns a float HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from checker2.0.