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

DM-29627: Update config/column names for source injection #522

Merged
merged 2 commits into from Jun 9, 2021

Conversation

jmeyers314
Copy link
Contributor

No description provided.

dtype=bool,
default=True,
default=False
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you changing the default value here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, I think github (or diff) just had a hard time figuring out which two lines to compare. The "before" side is for doCleanCat, which is still True, and the "after" side is for doSubSelectSources, which is still False.

"half-light ellipse.",
dtype=str,
default="bulge_pa",
)
Copy link
Contributor

Choose a reason for hiding this comment

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

North and East? Might be worth spelling that out.

cfg.disk_axis_ratio_col: 'disk_axis_ratio',
},
copy=False
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there anyway to make this syntax easier to read?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you clarify? Which syntax could be improved?

Copy link
Contributor

Choose a reason for hiding this comment

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

I find everything being on different lines very hard to follow. If other people find this spread out format easy to read though then stick with it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think the indentation style is probably okay. (FWIW, black seems to mostly agree.)

But would more intermediate variables help maybe?

Let me know if you like this or something else better.

and cfg.aBulge in fakeCat.columns
and cfg.bBulge in fakeCat.columns
):
fakeCat['bulge_axis_ratio'] = \
Copy link
Contributor

Choose a reason for hiding this comment

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

@jmeyers314 jmeyers314 merged commit ec24388 into master Jun 9, 2021
@jmeyers314 jmeyers314 deleted the tickets/DM-29627 branch June 9, 2021 16:47
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.

None yet

2 participants