-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow analyser to be run by specified dimension in configuration #47
base: master
Are you sure you want to change the base?
Conversation
…ate directory in generator when it does not exsit.
Codecov Report
@@ Coverage Diff @@
## master #47 +/- ##
==========================================
- Coverage 82.55% 81.00% -1.56%
==========================================
Files 50 51 +1
Lines 2345 2437 +92
==========================================
+ Hits 1936 1974 +38
- Misses 409 463 +54
Continue to review full report at Codecov.
|
@@ -565,10 +565,15 @@ def generate_maps(self, nr_of_samples: int, dimensions: Size, gen_type: str, fil | |||
} | |||
dimensions_path = '_3d' if num_dim == 3 else '' | |||
if json_save: | |||
if not os.path.isdir(self.__services.resources.maps_dir._full_path() + atlas_name + dimensions_path): | |||
os.mkdir(self.__services.resources.maps_dir._full_path() + atlas_name + dimensions_path) | |||
|
|||
with open(self.__services.resources.maps_dir._full_path() + atlas_name + dimensions_path + '/' + str(_) + dimensions_path + '.json', 'w') as outfile: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These file paths are dodgy, prevents portability across platforms.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please clean this up, 400+ files changed? Take care of what you commit
allow analyser to be run by specified dimension in configuration, create directory in generator when it does not exsit.