Comments (1)
I found out that if your files do not begin with CSC that you can change this function in combinato/util/tools.py
You can uncomment some lines if you want to make sure the code is working for you or just delete them.
def h5files(path):
"""
highly specific tool to find all relevant h5 files
if their names follow the CSC?, CSC?? naming convention
"""
def sort_function(fname):
# This function sorts files based on patterns data_CSC?????? and removes .h5 from the end
# Why is it necessary?
try:
# a = int(os.path.basename(fname)[8:-3]) # For data_CSC????
a = int(os.path.basename(fname)) # DF added: For anything
print(a)
return a
except ValueError:
return fname
# channel_dirs = glob(os.path.join(path, 'CSC?')) # Why was this commented?
# channel_dirs += glob(os.path.join(path, 'CSC??'))
channel_dirs = [] # Get patterns based on the options file
for pat in options['folder_patterns']:
channel_dirs += glob(os.path.join(path, pat))
# print(path)
# print(channel_dirs)
ret = []
for chd in channel_dirs:
basename = os.path.basename(chd)
h5cand = os.path.join(chd, 'data_{}.h5'.format(basename))
# print(h5cand, os.path.exists(h5cand))
if os.path.exists(h5cand):
# print(h5cand, os.stat(h5cand).st_size)
if os.stat(h5cand).st_size > 0:
# print('yes', os.stat(h5cand).st_size)
ret.append(h5cand)
# print(ret)
# print(sort_function)
# print(sorted(ret, key=sort_function))
return sorted(ret, key=sort_function)****
from combinato.
Related Issues (20)
- python setup_options.py giving error HOT 1
- no plots in `overview` folder HOT 13
- Tutorial data is no longer available HOT 2
- TypeError when loading clustering results into the GUI HOT 2
- Broken link in Tutorial Data Part I HOT 1
- css-gui axes update error with matplotlib >3.4
- Clarification question on the GUI: spike counts HOT 2
- supplying the stimulus information for raster_plot.py HOT 2
- css-overview-gui crashes everytime
- css-gui won't open processed files HOT 2
- Number of classes is less than number of spikes and waveforms HOT 1
- What is the last plot in css-plot-extracted? HOT 1
- css-gui doesn't updated h5 files HOT 2
- Unable to Install on Mac, bad CPU type HOT 4
- Sorting parameters HOT 1
- drop_artifacts in old_format_output not passed as input variable HOT 3
- packaging for pip or poetry HOT 2
- use logging api HOT 2
- Issues with inferring / managing sampling rate
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from combinato.