Commit d397d46b authored by matthmey's avatar matthmey
Browse files

updated header

parent 932054cd
MIT License MIT License
Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich) Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich), Matthias Meyer
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
......
'''MIT License '''MIT License
Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich) Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich), Matthias Meyer
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
......
'''MIT License '''MIT License
Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich) Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich), Matthias Meyer
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
......
'''MIT License '''MIT License
Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich) Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich), Matthias Meyer
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
......
'''MIT License '''MIT License
Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich) Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich), Matthias Meyer
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
...@@ -125,6 +125,7 @@ class GSNDataSource(DataSource): ...@@ -125,6 +125,7 @@ class GSNDataSource(DataSource):
) )
def forward(self, data=None, request=None): def forward(self, data=None, request=None):
# code from Samuel Weber
#### 1 - DEFINE VSENSOR-DEPENDENT COLUMNS #### #### 1 - DEFINE VSENSOR-DEPENDENT COLUMNS ####
metadata = Path(get_setting("metadata_directory")).joinpath( metadata = Path(get_setting("metadata_directory")).joinpath(
"vsensor_metadata/{:s}_{:s}.csv".format( "vsensor_metadata/{:s}_{:s}.csv".format(
...@@ -666,7 +667,7 @@ class MHDSLRFilenames(DataSource): ...@@ -666,7 +667,7 @@ class MHDSLRFilenames(DataSource):
if config["store"] is not None: if config["store"] is not None:
if filename in config["store"]: if filename in config["store"]:
imglist_df = read_csv_with_store(config["store"],filename) imglist_df = read_csv_with_store(config["store"],filename)
sucess = True success = True
elif config['force_write_to_remote']: elif config['force_write_to_remote']:
# try to reload it and write to remote # try to reload it and write to remote
imglist_df = self.image_integrity_store(config["store"]) imglist_df = self.image_integrity_store(config["store"])
...@@ -699,7 +700,7 @@ class MHDSLRFilenames(DataSource): ...@@ -699,7 +700,7 @@ class MHDSLRFilenames(DataSource):
imglist_df = self.image_integrity(config["base_directory"]) imglist_df = self.image_integrity(config["base_directory"])
# imglist_df.to_parquet(imglist_filename) # imglist_df.to_parquet(imglist_filename)
imglist_df.to_csv(imglist_filename,index=False) imglist_df.to_csv(imglist_filename,index=False)
else: elif not success:
# if there is no tmp_dir we can load the image list but # if there is no tmp_dir we can load the image list but
# we should warn the user that this is inefficient # we should warn the user that this is inefficient
imglist_df = self.image_integrity(config["base_directory"]) imglist_df = self.image_integrity(config["base_directory"])
......
'''MIT License '''MIT License
Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich) Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich), Matthias Meyer
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
......
'''MIT License '''MIT License
Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich) Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich), Matthias Meyer
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
......
'''MIT License '''MIT License
Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich) Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich), Matthias Meyer
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
......
'''MIT License '''MIT License
Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich) Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich), Matthias Meyer
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
......
'''MIT License '''MIT License
Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich) Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich), Matthias Meyer
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
......
'''MIT License '''MIT License
Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich) Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich), Matthias Meyer
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
......
'''MIT License '''MIT License
Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich) Copyright (c) 2019, Swiss Federal Institute of Technology (ETH Zurich), Matthias Meyer
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment