-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #346 from pixlise/feature/archive-optimiser-tool
Feature/archive optimiser tool
- Loading branch information
Showing
13 changed files
with
419 additions
and
38 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package piquant | ||
|
||
import "fmt" | ||
|
||
func Example_ReadFieldFromPIQUANTConfigMSA() { | ||
piquantMSA := `##INCSR : 0.0152 Solid angle from source in steradians (can include normalization for optic file - use this for tuning 0.00355) | ||
##INCANGLE : 90.00 Incident angle of primary X-ray beam in degrees (90 is normal incidence) | ||
#ELEVANGLE : 48.03 Elevation angle of detector, in degrees (90 is normal to surface) | ||
#AZIMANGLE : 180.0 Azimuth angle between incident beam plane and detected beam plane | ||
##GEOMETRY : 1.0 Geometric correction factor | ||
#SOLIDANGLE : 0.224 Solid angle collected by the detector in steradians` | ||
|
||
a, err := ReadFieldFromPIQUANTConfigMSA(piquantMSA, "ELEVANGLE") | ||
fmt.Printf("%v|%v", a, err) | ||
|
||
// Output: | ||
// 48.03|<nil> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.