Skip to content

Conversation

@ncatolico
Copy link
Contributor

No description provided.

Bobby Hensley and others added 30 commits April 9, 2025 11:52
Merge branch 'master' into suna
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
Merge branch 'master' into suna
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
Merge branch 'master' into suna
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
Merge branch 'master' into suna

# Conflicts:
#	pipe/sunav2/sunav2_calibration_assignment.json
#	pipe/sunav2/sunav2_location_active_dates_assignment.json
#	pipe/sunav2/sunav2_location_asset_assignment.json
#	pipe/sunav2/sunav2_merge_data_by_location.json
#	pipe/sunav2/sunav2_structure_repo_by_location.json
Merge branch 'master' into suna
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
Bobby Hensley and others added 11 commits December 18, 2025 11:40
Merge branch 'master' into suna

# Conflicts:
#	pipe/sunav2/sunav2_location_active_dates_assignment.json
#	pipe/sunav2/sunav2_location_asset_assignment.json
Merge branch 'master' into suna
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
ncatolico and others added 17 commits January 21, 2026 15:13
Merge branch 'master' into suna
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
Reverting minor change from master
bring base image to current
bring base image to current
bring base image to current
bring base image to current
bring qaqc image to current
bring base image to current
bring cal image to current
Copy link
Contributor

@covesturtevant covesturtevant left a comment

Choose a reason for hiding this comment

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

Overall looks great. A few moderate bits of work to address, but I don't think they'll be too much work. Please also create unit tests for new modules. Recommend feeding Copilot one of our unit tests as a template and asking it to create the ones for the new modules.

Please let me know if any comments could use clarification.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good, but please update the header to reflect that regularization is not performed. There is some conflicting language in a few places, likely from using flow.rglr as a template.

Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as above - there remains documentation in the header that indicates regularization is performed.

Copy link
Contributor

Choose a reason for hiding this comment

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

For security, please run as non-root user. See the Dockerfile for flow.gap.fill.nonrglr for these components.

log=log
),
error = function(err) {
call.stack <- base::sys.calls() # is like a traceback within "withCallingHandlers"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why non-standard error handling?

#' revert the insufficient data quality flag (default is to apply it).
qmData$insufficientDataQF=1
minPoints<-as.numeric(minPoints)
for(i in 1:nrow(statsData)){
Copy link
Contributor

Choose a reason for hiding this comment

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

vectorize this for-loop

log=log
),
error = function(err) {
call.stack <- base::sys.calls() # is like a traceback within "withCallingHandlers"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why non-standard error-routing?

humidityThreshold<-sunaThresholds[(sunaThresholds$threshold_name=="Nitrates Maximum Internal humidity"),]
maxHumidity<-humidityThreshold$number_value
sensorFlags$nitrateHumidityQF<-NA
for(i in 1:nrow(sunaData)){
Copy link
Contributor

Choose a reason for hiding this comment

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

Please vectorize these for-loops throughout the code. When a simple, base-r vectorization exists, it is much preferable. Recommend putting into MS Copilot chat for help. For example, Copilot suggested the following to replace this block:

rh <- sunaData$relative_humidity
qf <- integer(length(rh))         # default 0
qf[is.na(rh)] <- -1L
qf[!is.na(rh) & rh > maxHumidity] <- 1L
sensorFlags$nitrateHumidityQF <- qf

Copy link
Contributor

Choose a reason for hiding this comment

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

This change seems out of place. Intentional? Tested? If not, please revert.

Copy link
Contributor

Choose a reason for hiding this comment

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

This does not look intentional. Please revert.

Copy link
Contributor

Choose a reason for hiding this comment

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

Note for Cove to merge in the kafka loader to the main DAG

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