Skip to content

Commit 91a52e5

Browse files
committed
Preparing For 0.01
1 parent b143b17 commit 91a52e5

File tree

5 files changed

+35
-4
lines changed

5 files changed

+35
-4
lines changed

CHANGELOG.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Changelog
2+
3+
## [0.0.1] - 2019-11-14
4+
5+
I think these are the most important changes , I hope I didn't forget any!
6+
7+
### Added
8+
9+
* Improvements in the sub indexing of big regions of interest , among others the ability to select parts of comparisons and slicing/indexes
10+
11+
### Fixed
12+
13+
Various bug fixes most importantly in the following modules:
14+
15+
* big_roi
16+
17+
* repair: repaired the bug about repairing ".", empty compounds and more
18+
19+
* obtain, fixed the bug where the main result could appear in the alternatives!
20+
21+
* higher, correct error regarding await but not sure yet need to revisit!
22+

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Needless to say, while coding PythonVoiceCodingPlugin , PythonVoiceCodingPlugin
6262
The code is available on [github](https://github.com/mpourmpoulis/PythonVoiceCodingPlugin)
6363
along with its initial release (0.0.0)!
6464

65-
Update:
65+
Update: release 0.0.1 is out! please note but there aren't any changes in the bundles from the previous release!
6666

6767

6868

doc/SelectBigROI.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Once we have established which function we are to search, the command will then
144144
# SubIndexes
145145

146146
So far we have seen cases where we can select an entire region of interest.
147-
However,there are cases where you are interested in only a portion of this whole ROI. For instance there may be multiple targets in the left hand of an assignment and you want to select only one of them. Or your function may return multiple values. In those cases the
147+
However,there are cases where you are interested in only a portion of this whole ROI. For instance there may be multiple targets in the left hand of an assignment and you want to select only one of them. Or your function may return multiple values. or your right hand side contains a dictionary and you want a specific key-value pair. In those cases the
148148

149149
```python
150150
IntegerRefST("big_roi_sub_index",0,10),
@@ -176,5 +176,6 @@ Finally, we clarify one more thing! What about relative vertical offsets when us
176176
![](./gif/big9.gif)
177177

178178

179-
179+
please note however that there are limitations and sub indexes are more for solution to make the simplest case faster
180+
rather than a systematic way of handling complex code!
180181

doc/gif/big6.gif

225 KB
Loading

library/higher.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,15 @@ def filter_await(atok,m = None, timestamp = 0):
2525
m = m if m else ModificationHandler(atok.text)
2626
candidates = [x for x in atok.tokens if x.string=="await"]
2727
for c in candidates:
28-
m.modify_from(timestamp,(c.startpos,c.endpos),"yield from","await")
28+
y = previous_token(atok,c)
29+
z = next_token(atok,c)
30+
if y and not y.string.isspace():
31+
m.modify_from(timestamp,(c.startpos,c.endpos),"","await")
32+
else:
33+
if z:
34+
m.modify_from(timestamp,(c.startpos,z.startpos),"yield from ","await")
35+
else:
36+
m.modify_from(timestamp,(c.startpos,c.endpos),"","await")
2937
return m
3038

3139
def filter_fstrings(atok,m = None, timestamp = 0):

0 commit comments

Comments
 (0)