We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60a28b9 commit 35c2c8bCopy full SHA for 35c2c8b
proplot/styletools.py
@@ -2848,8 +2848,11 @@ def _warn_or_raise(msg):
2848
# NOTE: This appears to be biggest import time bottleneck! Increases
2849
# time from 0.05s to 0.2s, with numpy loadtxt or with this regex thing.
2850
delim = re.compile(r'[,\s]+')
2851
- data = [delim.split(line.strip())
2852
- for line in open(filename).readlines() if line.strip()]
+ data = [
+ delim.split(line.strip())
2853
+ for line in open(filename).readlines()
2854
+ if line.strip() and line.strip()[0] != '#'
2855
+ ]
2856
try:
2857
data = [[float(num) for num in line] for line in data]
2858
except ValueError:
0 commit comments