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

Stitch1DMany 3 fold overlap. #10498

Closed
OwenArnold opened this issue Jun 13, 2014 · 3 comments
Closed

Stitch1DMany 3 fold overlap. #10498

OwenArnold opened this issue Jun 13, 2014 · 3 comments
Assignees
Labels
Reflectometry Issues and pull requests related to reflectometry

Comments

@OwenArnold
Copy link
Contributor

This issue was originally TRAC 9655

Tim is going to pass me a real life failure example. In the mean time I tried this out (see below) and it seemed to work OK for my test case:

import numpy as np

def createCosWorkspace(name,start,end):
        dataX = np.arange(start,end,0.1)
        dataY = np.cos(dataX)
        ws = CreateWorkspace(dataX, dataY, OutputWorkspace=name)
        ws = ConvertToHistogram(ws, OutputWorkspace=name)
        return ws

#create some histograms to test the algorithm with
ws1 = createCosWorkspace('left', 0, 12)
ws2 = createCosWorkspace('right', 3, 15)
ws3 = createCosWorkspace('right1', 6, 18)

ws4, sf = Stitch1D(ws1, ws2, Params=[0,0.1,18], StartOverlap=6.0, EndOverlap=12.0)
ws5, sf = Stitch1D(ws4, ws3, Params=[0,0.1,18], StartOverlap=6.0, EndOverlap=12.0)
plotSpectrum(['left', 'right', 'ws4', 'ws5'], 0)

ws6, sf = Stitch1DMany(InputWorkspaces='left,right,right1', Params=[0,0.1,18], StartOverlaps=[6.0, 6.0], EndOverlaps=[12.0,12.0])
plotSpectrum(ws6,0)

Example above has three identical cosine waves overlapping at x = 6 to x = 12.

@OwenArnold
Copy link
Contributor Author

@NickDraper (2014-06-23T08:01:13):
Moved to Backlog at the code freeze of release 3.2

@OwenArnold OwenArnold added the Reflectometry Issues and pull requests related to reflectometry label Jun 3, 2015
@OwenArnold OwenArnold self-assigned this Jun 3, 2015
KarlPalmen pushed a commit that referenced this issue Nov 26, 2015
@raquelalvarezbanos
Copy link
Contributor

I have to ask Tim about this.

@raquelalvarezbanos
Copy link
Contributor

I asked Tim about this, he had a look at the issue and was happy with the results from the script example in the description. We agreed to close this as it doesn't seem to be an issue anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reflectometry Issues and pull requests related to reflectometry
Projects
None yet
Development

No branches or pull requests

3 participants