@@ -27,7 +27,8 @@ export default function LightCurvePlot() {
2727 const {
2828 dataType, dataSelection, xAxis, errorBars, noOfBins, noOfDataPoint,
2929 plotType, pointSize, lineWidth, legendFontSize, labelFontSize, tooltipFontSize,
30- figure, rawFigure, avgPointRawMap, filterPercent, isFiltered, setSettings
30+ figure, rawFigure, avgPointRawMap, filterPercent, isFiltered, selectedSeries,
31+ setSettings
3132 } = usePlotSettings ( ) ;
3233
3334 const [ loading , setLoading ] = useState ( false ) ;
@@ -95,7 +96,8 @@ export default function LightCurvePlot() {
9596
9697 for ( const sel of dataSelection ) {
9798 const [ epoch , r1 , r2 ] = sel . split ( '_' ) ;
98- const makePath = ( wave : 'sw' | 'lw' ) => `${ process . env . BASE_PATH } /data/json/ZTF_J1539/rawdata/${ epoch } /${ wave } /${ r1 } /${ r2 } .json` ;
99+ // const makePath = (wave: 'sw' | 'lw') => `https://raw.githubusercontent.com/iDataVisualizationLab/jwst-data/main/data/json/ZTF_J1539/rawdata/${epoch}/${wave}/${r1}/${r2}.json`;
100+ const makePath = ( wave : 'sw' | 'lw' ) => `${ process . env . DATA_PATH } /data/json/${ selectedSeries } /rawdata/${ epoch } /${ wave } /${ r1 } /${ r2 } .json` ;
99101
100102 try {
101103 const [ swJson , lwJson ] = await Promise . all ( [
@@ -613,8 +615,10 @@ export default function LightCurvePlot() {
613615
614616 if ( ! exist ) {
615617 // const imgThumbnailsSrc = `https://raw.githubusercontent.com/iDataVisualizationLab/jwst-data/main/img/thumbnails/ZTF_J1539/${first.cd.filename}`;
616- const imgThumbnailsSrc = `https://raw.githubusercontent.com/iDataVisualizationLab/jwst-data/main/img/full-size/ZTF_J1539/${ first . cd . filename } ` ;
617- const imgSrc = `https://raw.githubusercontent.com/iDataVisualizationLab/jwst-data/main/img/full-size/ZTF_J1539/${ first . cd . filename } ` ;
618+ // const imgThumbnailsSrc = `https://raw.githubusercontent.com/iDataVisualizationLab/jwst-data/main/img/full-size/ZTF_J1539/${first.cd.filename}`;
619+ // const imgSrc = `https://raw.githubusercontent.com/iDataVisualizationLab/jwst-data/main/img/full-size/ZTF_J1539/${first.cd.filename}`;
620+ const imgThumbnailsSrc = `${ process . env . DATA_PATH } /img/full-size/${ selectedSeries } /${ first . cd . filename } ` ;
621+ const imgSrc = `${ process . env . DATA_PATH } /img/full-size/${ selectedSeries } /${ first . cd . filename } ` ;
618622
619623 setSelectedImages ( prev =>
620624 prev . map ( p => ( {
@@ -721,7 +725,7 @@ export default function LightCurvePlot() {
721725 // eslint-disable-next-line @typescript-eslint/no-explicit-any
722726 function handleHover ( e : any ) {
723727 const pt = e . points [ 0 ] ;
724- console . log ( 'Hover data:' , pt ) ;
728+ // console.log('Hover data:', pt);
725729 const cd = pt . customdata ?? { } ;
726730
727731 const hoverData = {
0 commit comments