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

Func-y scripts #87

Merged
merged 17 commits into from
Feb 4, 2025
Merged

Func-y scripts #87

merged 17 commits into from
Feb 4, 2025

Conversation

ggmarshall
Copy link
Collaborator

No description provided.

@ggmarshall ggmarshall changed the title Funky scripts Func-y scripts Feb 3, 2025
else:
fk.channel = channel
return fk.get_path_from_filekey(get_pattern_log_channel(self.setup, name))[0]
return "/tmp/log.log"
Copy link
Member

Choose a reason for hiding this comment

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

uhmmmm.....

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

lol

)
argparser.add_argument("--output", help="output file", type=str, required=True)
argparser.add_argument(
"--in_db",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"--in_db",
"--in-db",

One general comment: we should only use dashes in command line options. ArgParser automatically promotes them to underscores.

@@ -60,19 +60,19 @@ def execenv_python(config, aslist=False):
return " ".join(cmdline), cmdenv


def execenv_smk_py_script(workflow, config, scriptname, aslist=False):
def execenv_smk_py_script(config, scriptname, aslist=False):
Copy link
Member

Choose a reason for hiding this comment

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

should we rename this to execenv_smk_pyexe()...?

@@ -84,14 +84,43 @@ docs = [

[project.scripts]
dataprod = "legenddataflow.execenv:dataprod"
create_chankeylist = "legenddataflow.scripts.create_chankeylist:create_chankeylist"
Copy link
Member

Choose a reason for hiding this comment

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

I prefer using dashes in command lines (see similar comment about command line options).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sure maybe add as an issue and can get to it sometime

Copy link
Member

Choose a reason for hiding this comment

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

i can also do it

@ggmarshall ggmarshall marked this pull request as ready for review February 4, 2025 19:50
@ggmarshall ggmarshall merged commit 515c028 into meta_refactor Feb 4, 2025
7 checks passed
@ggmarshall ggmarshall deleted the func_scripts branch February 4, 2025 19:53
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