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

Fix 22.06 style checks #249

Merged
4 commits merged into from
Jun 30, 2022
Merged

Conversation

mdemoret-nv
Copy link
Contributor

Fixes style checks preventing #237 from passing

@mdemoret-nv mdemoret-nv added non-breaking Non-breaking change feature request New feature or request labels Jun 30, 2022
@mdemoret-nv mdemoret-nv requested a review from a team as a code owner June 30, 2022 05:43
@mdemoret-nv mdemoret-nv requested a review from a team as a code owner June 30, 2022 05:43
Copy link
Contributor

@raykallen raykallen left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@dagardner-nv dagardner-nv left a comment

Choose a reason for hiding this comment

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

LGTM

@mdemoret-nv
Copy link
Contributor Author

@gpucibot merge

@ghost ghost merged commit 0030a1d into nv-morpheus:branch-22.06 Jun 30, 2022
Copy link
Contributor

@drobison00 drobison00 left a comment

Choose a reason for hiding this comment

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

Some suggestions/questions. Looks good overall.

"""

import argparse
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this on a line by itself?

#since inference is done, add the original columns back so the output will be the same as the input format
#X_val['ts_anomaly']=X_val_original['ts_anomaly']
# since inference is done, add the original columns back so the output will be the same as the input format
# X_val['ts_anomaly']=X_val_original['ts_anomaly']
Copy link
Contributor

Choose a reason for hiding this comment

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

delete?

timeobj = list(map(stript, timearr))
hs = list(map(date2min, timeobj))
n, bins = cp.histogram(cp.array(hs), bins = cp.arange(0, max(hs)))
n, _ = cp.histogram(cp.array(hs), bins=cp.arange(0, max(hs)))
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a nitpick, but I'd like to see all these stacked lines broken out a bit into blocks of logical steps or sub functions.

@mdemoret-nv mdemoret-nv deleted the mdd_22.06-style branch June 30, 2022 19:48
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants