v1.0.0-rc.36
This commit is contained in:
@@ -9,6 +9,7 @@ export enum PlotType {
|
||||
AZIM_INT,
|
||||
INDEXING_RATE,
|
||||
BKG_ESTIMATE,
|
||||
RES_ESTIMATE,
|
||||
ERROR_PIXELS,
|
||||
RECEIVER_DELAY,
|
||||
STRONG_PIXELS,
|
||||
@@ -57,11 +58,11 @@ function AxisTypeY(plot: PlotType) : string {
|
||||
case PlotType.SPOT_COUNT:
|
||||
return "Spot count";
|
||||
case PlotType.AZIM_INT:
|
||||
case PlotType.BKG_ESTIMATE:
|
||||
return "Arbitrary units";
|
||||
case PlotType.ROI_MAX_COUNT:
|
||||
case PlotType.ROI_SUM:
|
||||
case PlotType.ROI_MEAN:
|
||||
case PlotType.BKG_ESTIMATE:
|
||||
return "Photon count";
|
||||
case PlotType.INDEXING_RATE:
|
||||
return "Indexing rate";
|
||||
@@ -74,6 +75,8 @@ function AxisTypeY(plot: PlotType) : string {
|
||||
return "Free buffers";
|
||||
case PlotType.INDEXING_UNIT_CELL:
|
||||
return "Length [Å]";
|
||||
case PlotType.RES_ESTIMATE:
|
||||
return "Resolution [Å]";
|
||||
case PlotType.INDEXING_UNIT_CELL_ANGLE:
|
||||
return "Angle [deg]";
|
||||
case PlotType.MAX_VALUE:
|
||||
@@ -137,6 +140,13 @@ class DataProcessingPlot extends Component<MyProps, MyState> {
|
||||
this.setState({connection_error: true});
|
||||
});
|
||||
break;
|
||||
case PlotType.RES_ESTIMATE:
|
||||
DefaultService.getPlotResolutionEstimate(this.props.binning)
|
||||
.then(data => this.setState({plots: data, connection_error: false}))
|
||||
.catch(error => {
|
||||
this.setState({connection_error: true});
|
||||
});
|
||||
break;
|
||||
case PlotType.AZIM_INT:
|
||||
DefaultService.getPlotAzimInt()
|
||||
.then(data => this.setState({plots: data, connection_error: false}))
|
||||
|
||||
Reference in New Issue
Block a user