Code Monkey home page Code Monkey logo

medict's People

Contributors

aathish04 avatar deadman9 avatar naveen521kk avatar rajesh-kumar-s-1310 avatar

Watchers

 avatar  avatar  avatar

medict's Issues

Store list-type field entries as strings in Database.

Currently, list type field entries such as SYMPTOMS and TIMES are stored in the database in the format:

'["a","b","c"]'

It would be much better if these were changed to just strings:

"a,b,c"

By doing this, the parsing of the database entries at runtime is made much easier as a simple str.split() method can be called, instead of stripping the square brackets and making things unnecessarily complicated.

Stop using Multiple Folders; Use one folder, multiple files.

@naveen521kk

We need to make major changes to how imports work.

Currently, with folders arranged like they are, with one folder for each separate feature of manim, it is extremely unclean to import between packages.

For example, if I needed to use some method defined in one of your packages while inside my own package, I will be unable to do so.
I cannot do:

# I am in medict/csvmanager/csvwriter.py
from ..sqlmanager import SQLManager

The above code will NOT work.

Likewise, if you needed to import some CSV functionality (you have implemented this separately, which is not encouraged) from my scripts, you will be unable to do so.

THE MOST IMPORTANT REASON WHY OUR CURRENT SYSTEM IS TERRIBLE:

When we work on the Machine learning systems, we can neither use the SQL methods and code that you wrote, nor can we use the CSV manager methods that I wrote. It's absolutely horrible.

This is because we keep each separate script having the different functionality, in different folders.

When a module is imported, it is unable to go out of its current folder and import from it's parent directory because the __init__.py file is right next to it and it thinks it's in the highest directory possible.

There is a way to allow for such imports without changing the directory structure. However it is a very dangerous and bad method.

You can sys.path.append("/full/path/to/module/") but that is EXTREMELY bad practice.

For this reason, I suggest that we can make a single folder named features inside of which we can keep all the different files csvwriter.py, sqlmanager.py etc. This will allow easily importing between each other and would allow us to ACTUALLY work on ML.

Change type

[sg.Text("AGE:"), sg.Input(key="AGE")],

In these lines age is stored as STR. Change it to Number. I found it difficult while converting to MySql.

Remove usage of CSV module from sqlmain.py

def parseCSV(fp): #Why can't you use CSVManager.list_od_from_csv for this?

For the sake of code cleanliness, it is better to have a single module handling all of the CSV related issues. sqlmain.py should not have any csv related code at all.

The function defined at:

def parseCSV(fp): #Why can't you use CSVManager.list_od_from_csv for this?

Is the same as the function defined at:

def list_od_from_csv(self,datafile=None):

There is absolutely no need to repeat code again and again.

Obtain a viable DataSet of Patients.

  • Can be COVID-19 (Preferred)
  • Can be any disease etc.

The current dataset is the reports available at sirm.org.

They are detailed enough for us to use, but they do not state any information about the mortality of the patients, and I assume they all lived.

Any thoughts?

Database CSV Difference Highlighter

Let the user see the differences between the local CSV and the database (what fields have been changed etc).

Allow the user to merge from one data source to the other.

Unable to import sqlparser

On opening a Python Shell in the medict directory and running import sqlparser, an error is thrown, and has been pasted below.

Python 3.7.7 (default, Mar 10 2020, 15:43:33) 
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlparser
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/aathishs/Python/MedictEnv/medict/sqlparser/__init__.py", line 2, in <module>
    import main
ModuleNotFoundError: No module named 'main'

@naveen521kk I don't know how exactly you plan on allowing us to use the sql parser. Is this the correct way, or is this an actual bug?

Remove All Debug Statements

This is an issue to remove all the Debug statements like print for the code which is an absolute waste with no use to the user as well as to us.

Implement Data Plotting

When the user enters a particular parameter, a graph/plot should be displayed that visualises all the data with respect to that parameter.

Make a Basic User Interface

What can we use to make a UI? There are many options available. I prefer using something like HTML and JS and CSS for UI. But using Tkinter is also ok for me, so we should select wisely so that it doesn't become a big problem for us later on. What is your opinion about it @Aathish04 .

Text-to-speech

Allow the user to hear what the mouse is hovering over, if kept for over 2 seconds.

Combine sqlmain.py and sqlview.py into one file.

Many/All of the functions defined in sqlmain.py can be made into methods of SQLManager.

Once that is done, SQLManager can be imported, and will be the single place from which all SQL related methods, functions and objects can be taken.

Essentially, move all the functions and variables in sqlmain.py and convert them into methods and attributes of SQLManager.

Get some good Font

We want a good font for using in UI rather than default one. It should also look good. This issue deals what font to select.
We can get fonts from https://fonts.google.com or any font with commercial use.

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.