Giter Club home page Giter Club logo

ggsipu_result's People

Contributors

ashutoshvarma avatar dependabot-preview[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ggsipu_result's Issues

DLL load failed: module not found

After doing pip install ggsipu-result
tried to run the following code:
from ggsipu_result import iter_pages, has_page_results, iter_results FILE="2015_032_B.TECH(CSE)_DECLARE_RESULT_DEC2019.pdf" results = [] for page in iter_pages(FILE): if has_page_results(page): results = results + [r for r in iter_results(page) if r.batch == 2018] results.sort(key=lambda x: x.cgpa, reverse=True) for i, result in enumerate(results[:-1]): print("{i}. {r}".format(i=i+1, r= result))

the following error came:

Traceback (most recent call last):
File "abc.py", line 1, in
from ggsipu_result import iter_pages, has_page_results, iter_results
File "C:\Users\JAIN\AppData\Local\Programs\Python\Python37\lib\site-packages\ggsipu_result_init_.py", line 1, in
from pyxpdf import xpdf
File "C:\Users\JAIN\AppData\Local\Programs\Python\Python37\lib\site-packages\pyxpdf_init_.py", line 3, in
from pyxpdf.xpdf import (
ImportError: DLL load failed: The specified module could not be found.

Problem in CGPA calculation

When parsing below pdf for batch 2018 and semester 3, cpga values are wrong
PDF - USICT ECE Dec 2019

from ggsipu_result import iter_pages, has_page_results, iter_results



FILE="~/2015_128_B.TECH(ECE)_DECLARE_RESULT_DEC2019.pdf"

results = []
for page in iter_pages(FILE):
    if has_page_results(page):
        results = results + [r for r in iter_results(page) if r.batch == 2018 and r.semester == 3]
        
results.sort(key=lambda x: x.cgpa, reverse=True)

for i, result in enumerate(results):
    print("{i}. {r}".format(i=i+1, r= result))
1. Result(Sem 3): [01216412818]AVINASH RAINA(2018) [CGPA: 9.0]  #Should be 8.9
2. Result(Sem 3): [40116412818]ABHAY MAURYA(2018) [CGPA: 9.0]
3. Result(Sem 3): [40416412818]HIMANSHU DUSEJA(2018) [CGPA: 9.0]
4. Result(Sem 3): [42116412818]MOHIT BORA(2018) [CGPA: 9.0]
5. Result(Sem 3): [41116412818]RATNESH MOHAN(2018) [CGPA: 8.5]  # Should be 8.8
......

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.