Skip to content

Instantly share code, notes, and snippets.

View t20100's full-sized avatar

Thomas VINCENT t20100

View GitHub Profile
@t20100
t20100 / hdf5-dataset-to-sparse.ipynb
Last active March 14, 2024 08:09
[WIP] Convert a HDF5 compressed dataset to a stack of sparse representations - Binder: https://mybinder.org/v2/gist/t20100/13179e38d7d8b3058f0174435d674466/HEAD?labpath=hdf5-dataset-to-sparse.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@t20100
t20100 / filtergrid2d.ipynb
Last active November 4, 2019 11:16
numpy-based filtergrid2d function (useful to apply filters on images in pure numpy)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python3
# coding: utf-8
# /*##########################################################################
#
# Copyright (c) 2016 European Synchrotron Radiation Facility
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@t20100
t20100 / mpl_interaction.py
Created January 29, 2016 09:53
Pan and zoom interaction over a matplotlib Figure
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# /*##########################################################################
#
# Copyright (c) 2016 European Synchrotron Radiation Facility
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell