Skip to content

DM-37951: Allow PTC analysis to split each amp into subregions#171

Open
craiglagegit wants to merge 8 commits intomainfrom
tickets/DM-37951
Open

DM-37951: Allow PTC analysis to split each amp into subregions#171
craiglagegit wants to merge 8 commits intomainfrom
tickets/DM-37951

Conversation

@craiglagegit
Copy link
Copy Markdown
Collaborator

This is working, but I'm sure has things that need correcting. Summary of the status is in the Jira ticket.


# interpolate + smooth
itp = interp1d(x,y, kind='linear')
window_size, poly_order = 101, 3
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These should probably be config options. Was 101 chosen for a particular reason, or is just "an odd integer about 100"?

# Now split the region into subregions
xStep = int(region.width / nSubX)
yStep = int(region.height / nSubY)
for iSub in range(nSubX):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's probably not worth the effort now, but this could have used the cpCombine.CpCombineTask._subBBoxIter static method to chunk the image and reuse code.

continue
# Modifications here for the subregions to append new data to the old
for ampName in ampNames:
datasetPtc.inputExpIdPairs[ampName].append(partialPtcDataset.inputExpIdPairs[ampName])
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Doesn't this change the dimensionality? Previously the partial inputs were lists of tuples, appended into a list-of-list-of-tuples. Using += flattens it into a list-of-tuples again. I think this less of a problem below, as it looks like it was just selecting the first element of the input lists for those entries.

@plazas plazas changed the title Tickets/dm 37951 DM-37951: Allow PTC analysis to split each amp into subregions Feb 14, 2023
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