@@ -33,7 +33,7 @@ def filetable_to_firefly(
3333 Instance of FireflyClient connected to a Firefly server
3434
3535 topdir: "str"
36- pathname for directory to search
36+ pathname for directory to search, must be an absolute path.
3737
3838 pattern: "str"
3939 filename pattern to search for, e.g. "*.fits"
@@ -159,15 +159,17 @@ def main():
159159 if printurl :
160160 input ("Press Enter after you have opened the Firefly URL printed above..." )
161161
162- # TODO: figure out how to activate data products (meta) tab in Bi-View
163- # if "slate" not in html_file:
164- # fc.change_triview_layout(firefly_client.FireflyClient.BIVIEW_T_IChCov)
165- # fc.dispatch('layout.updateLayout', {'images':{'selectedTab':'meta'}})
162+ if "slate" not in html_file :
163+ fc .change_triview_layout (firefly_client .FireflyClient .BIVIEW_T_IChCov )
164+ fc .dispatch ('layout.updateLayout' , {'rightSide' : {'selectedTab' : 'meta' }})
166165 r = fc .add_cell (0 , 0 , 1 , 2 , "tables" , "main" )
167166 fc .show_table (tbl_val , meta = metainfo )
168167 r = fc .add_cell (0 , 1 , 1 , 2 , "tableImageMeta" , "image-meta" )
169168 fc .show_image_metadata (viewer_id = r ["cell_id" ])
170169
171170
172171if __name__ == "__main__" :
172+ # Test example:
173+ # python filetable.py '/Users/jsinghal/dev/cm/__test_data' '*.*' --firefly_url http://localhost:8080/firefly/
174+
173175 main ()
0 commit comments