Skip to content

Conversation

@amandarichardsonn
Copy link
Contributor

No description provided.

Copy link
Member

@MattToast MattToast left a comment

Choose a reason for hiding this comment

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

Some more philosophy question I wanted to throw your way before I started looking at this too in depth. Let me know what you think!

Otherwise, I think this starting to look about ready to me!

"""
return self._dispatch(dispatch.DEFAULT_DISPATCHER, *jobs)
run_id = datetime.datetime.now().replace(microsecond=0).isoformat()
"""Create the run id"""
Copy link
Contributor

Choose a reason for hiding this comment

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

I think for function variables it may be more natural for the comments to come before the variable if they are going to be added. I'm not seeing in vscode that they render as a comment

Copy link
Member

Choose a reason for hiding this comment

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

If we are going to put these comments ahead of the variable as non-docstrings, can we make these look like traditional comments?

Suggested change
"""Create the run id"""
# Create the run id

In theory it makes saves us a no-op instruction at runtime, but in practice I just think it looks nicer, hahaha

"""
job_type = f"{job.__class__.__name__.lower()}s"
job_path = pathlib.Path(root) / f"{job_type}/{job.name}-{job_index}"
job_path.mkdir(exist_ok=True, parents=True)
Copy link
Contributor

@mellis13 mellis13 Aug 8, 2024

Choose a reason for hiding this comment

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

I think we need to make a ticket to inject a launcher in here. I think we want to use the entrypoints to enable remote jobs.

Copy link
Contributor

@mellis13 mellis13 left a comment

Choose a reason for hiding this comment

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

Thanks for working on this -- just a couple of questions/comments

Copy link
Member

@MattToast MattToast left a comment

Choose a reason for hiding this comment

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

A couple of small docstring nits, and one outstanding "TODO" style comment, but definitely nothing worth holding approval up over.

LGTM!! Thanks for all the hard work on this one!

"""
return self._dispatch(dispatch.DEFAULT_DISPATCHER, *jobs)
run_id = datetime.datetime.now().replace(microsecond=0).isoformat()
"""Create the run id"""
Copy link
Member

Choose a reason for hiding this comment

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

If we are going to put these comments ahead of the variable as non-docstrings, can we make these look like traditional comments?

Suggested change
"""Create the run id"""
# Create the run id

In theory it makes saves us a no-op instruction at runtime, but in practice I just think it looks nicer, hahaha

@amandarichardsonn amandarichardsonn merged commit 52cd8ec into CrayLabs:smartsim-refactor Aug 13, 2024
@amandarichardsonn amandarichardsonn deleted the path-injection branch August 13, 2024 22:39
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.

3 participants