Comments (4)
As it seems only IdiotenProof solution is to do smth like this
number_of_files = len(files_in_directory_with_extension)
odt_stages = len(odt_column)
if number_of_files < odt_stages:
file_skip = odt_stages/number_of_files
else:
file_skip = 0
from vism.
What exactly is happening can be found in multiprocessing_parse.py
if odt_file is not None:
odt_data, _ = getOdtData(odt_file[0]) <--- here the second arguments is stages
### stages in odt_data > number of files in directory
else:
odt_data = None
stages = glob.glob(os.path.join(directory, '*' + ext))
test_file = os.path.join(directory, stages[0])
stages = len(stages) <--- stages are overwritten and match number of files
This is done now so that it does not cause an error.
What should happen, is we can take
odt_data, stages1 = getOdtData(odt_file[0]) <----- here the second arguments is stages
...
stages = len(stages)
stages_skip = int(stages1/stages)
from vism.
Not argument, but returned value?
Yes, but using getOdtData(), requires path to odt file, if it doesn't exist, we can't prove it. It requires changes in getOdtData function to handle None path or something like this.
from vism.
If no path then stages should be as they are right now
no returned value, it is unused right now
from vism.
Related Issues (20)
- Can we get independent text boxes in different widgets? HOT 1
- Reloading data with Load File problems
- ValueError: Invalid Directory
- Arrow settings menu - invalid step for resolution and subsampling
- Precise dimension for cubic ergo cubes are not actually cubes
- Two Animation windows can be spawned
- Remove decimate from Performance Options for Cubes and Arrows
- Delete all windows breaks the app if a single window was deleted first
- Files with wrong format crash the app
- 3D Arrows crash
- Add widget button problems HOT 1
- Matplotlib does not change plot appearance if '1-1 synchronize' is checked
- Index out of bounds for maximum layer size
- Changing frame directory (still) does not work HOT 1
- "You may loose calculation"
- Black pixels after setting a color vector to [0 0 0] HOT 1
- OpenGl Arrows must effecitvely copy numpy array
- Better plot color picker
- Not all columns from odt are parsed
- Migrate to PyBind11
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 vism.