Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

. #5

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

. #5

wants to merge 6 commits into from

Conversation

RohanBhattaraiNP
Copy link

No description provided.

I will continue adding the modules. Currently, It only has UI design.
Copy link
Owner

@Theodlz Theodlz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Rohan! Thanks a lot for opening the PR! I left a bunch of comments. Mostly things you need to address once and keep as good habits going forward whenever you write code. It will help you a lot in the future.

Also, there is no documentation explaining how to run this, and the dependencies you added (like tkinter for example) have not been added to the requirements.txt. Don't forget to also put a title to your PRs, and a short description. Otherwise, your reviewer has no idea what this is about!!!

@@ -0,0 +1 @@

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty file, please remove

GUI.py Outdated
Comment on lines 19 to 38
# Plotting histograms
ax1.clear()
ax1.hist(data[:, 0], color='skyblue', bins=10)
ax1.set_title('Histogram 1')
ax1.set_xlabel('Values')
ax1.set_ylabel('Frequency')
ax1.grid(True)

ax2.clear()
ax2.hist(data[:, 1], color='salmon', bins=10)
ax2.set_title('Histogram 2')
ax2.set_xlabel('Values')
ax2.set_ylabel('Frequency')
ax2.grid(True)

# Plotting corner plot
ax3.clear()
pair_plot = sns.pairplot(pd.DataFrame(data))
pair_plot.fig.suptitle('Corner Plot', y=1.02) # Set title
pair_plot.fig.set_size_inches(6, 6) # Adjust size
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worth splitting this plot_data method in 2 submethods (for each plot type) that you call here. Will keep the code readable going forward

GUI.py Outdated
Comment on lines 10 to 13
'''This is the basic code that I started for the UI design
It does not have any working feature, I will slowly start adding feature.
Currently I am trying to build the basic GUI where I will continue adding other
modules as told by Ashish.'''
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is open-source (i.e. visible by everyone who wants to run it), so no need to add things like "as told by Ashish" 😉

Comment on lines +1 to +8
import tkinter as tk
from tkinter import ttk
from datetime import date
import matplotlib.pyplot as plt
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
import seaborn as sns
import numpy as np
import pandas as pd
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep your imports PEP compliant, meaning classic imports (import ...) first (sorted alphabetical) and then from ... import ....

GUI.py Outdated
Currently I am trying to build the basic GUI where I will continue adding other
modules as told by Ashish.'''

def plot_data():
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add docstrings to your methods. Small effort now, but will pay longterm when you go back to your old code!


ax2.clear()
ax2.hist(data[:, 1], color='salmon', bins=10)
ax2.set_title('Histogram 2')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want the title to be an argument you pass to the plot_data() method or smth

GUI.py Outdated

canvas.draw()

# Creating main window
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please wrap everything below in a main method, that you call in if __name__ == "main":

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this is where you should add a docstring explaining what all this will do!

@RohanBhattaraiNP
Copy link
Author

.

@Theodlz
Copy link
Owner

Theodlz commented Mar 18, 2024

@RohanBhattaraiNP can you please add description and a title for your PR when you have the chance? Hard for everyone to keep track of things if you don't. Thanks

@RohanBhattaraiNP
Copy link
Author

I have tried updating the code based on your feedback.

@Theodlz
Copy link
Owner

Theodlz commented Mar 28, 2024

I have tried updating the code based on your feedback.

Thanks Rohan, but the pull request still has no title or description, so I can't really review something without knowing what it is about! Please address that comment too (which I left in the first review). Naming a PR with a dot isn't quite useful...

@RohanBhattaraiNP
Copy link
Author

RohanBhattaraiNP commented Mar 29, 2024 via email

@Theodlz
Copy link
Owner

Theodlz commented Apr 11, 2024

I will update the code today, with other improvements and with title and description. I apologize for the oversight. Best, Rohan Get Outlook for iOShttps://aka.ms/o0ukef

________________________________ From: Theophile du Laz @.> Sent: Thursday, March 28, 2024 11:57:10 PM To: Theodlz/frigate @.> Cc: Bhattarai, Rohan (Rohan) @.>; Mention @.> Subject: Re: [Theodlz/frigate] . (PR #5) I have tried updating the code based on your feedback. Thanks Rohan, but the pull request still has no title or description, so I can't really review something without knowing what it is about! Please address that comment too (which I left in the first review). Naming a PR with a dot isn't quite useful... — Reply to this email directly, view it on GitHub<#5 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BEOZFJQIDPLHOTI4J3A2NULY2RMPVAVCNFSM6AAAAABEMIHNKWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRVHAZDMMBVGU. You are receiving this because you were mentioned.Message ID: @.***>

Any updates @RohanBhattaraiNP?

@RohanBhattaraiNP
Copy link
Author

RohanBhattaraiNP commented Apr 12, 2024 via email

Added responsiveness and fitting properly in screen.
@RohanBhattaraiNP
Copy link
Author

Added Responsiveness and fitting properly on the screen. Added comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants