Commit df4082d
authored
Update image.py (#140)
This commit solves the following issues:
- The second argument of method read_band() of ImageArray is now consistent with that of SpyFile classes, which otherwise was producing warnings or errors.
- read_datum() method of ImageArray class used a deprecated call (np.asscalar), which was giving errors. It is now replaced by the "self" call itself which returns what is supposed to be returned by the method.1 parent 2606503 commit df4082d
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
0 commit comments