Skip to content

added batch19-28 filter - #38

Open
ta4tsering wants to merge 1 commit into
mainfrom
fix-batch19-batch30
Open

ta4tsering wants to merge 1 commit into
mainfrom
fix-batch19-batch30

Conversation

@ta4tsering

Copy link
Copy Markdown
Contributor

No description provided.

@ta4tsering
ta4tsering requested a review from tenzin3 July 26, 2024 05:33
add_row_to_csv(headers, csv_path)
for image_name in image_list:
id = image_name
group_id = "12"

@tenzin3 tenzin3 Jul 26, 2024

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

  • if you could put neccessary args this way, it would be more convenient when working with other group_ids, same for other args(state,..) as well.

  • if the argument value wont change at all, then import from config file

def get_csv(image_list, batch_id, group_id:str="12"):
......

from utils import get_image_name, add_row_to_csv


def get_csv_data(batch_id):

@tenzin3 tenzin3 Jul 26, 2024

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

add extension for function arguments. for other functions as well

def get_csv_data(batch_id:str):
......


def get_images(image_keys):
image_names = []
for image_key in image_keys[1:]:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

one line logical comment on why it is slicing from first element?

@tenzin3

tenzin3 commented Jul 26, 2024

Copy link
Copy Markdown
Member

@ta4tsering test case is failing

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