Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dh4618
Copy link
Collaborator

@dh4618 dh4618 commented Dec 25, 2020

allow analyser to be run by specified dimension in configuration, create directory in generator when it does not exsit.

…ate directory in generator when it does not exsit.
@codecov-io
Copy link

Codecov Report

Merging #47 (62779e3) into master (9bee82c) will decrease coverage by 1.55%.
The diff coverage is n/a.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
...lgorithms/configuration/maps/occupancy_grid_map.py 55.81% <0.00%> (-29.67%) ⬇️
...hm/test_configuration/test_maps/test_sparse_map.py 99.05% <0.00%> (-0.01%) ⬇️
...thm/test_configuration/test_maps/test_dense_map.py 99.10% <0.00%> (-0.01%) ⬇️
.../test_configuration/test_maps/test_dense_map_3d.py 99.12% <0.00%> (-0.01%) ⬇️
src/maps.py 100.00% <0.00%> (ø)
src/algorithms/configuration/maps/sparse_map.py 89.24% <0.00%> (ø)
src/utility/utils.py
.../services/event_manager/events/map_update_event.py 72.72% <0.00%> (ø)
src/utility/misc.py 50.00% <0.00%> (ø)
src/algorithms/configuration/maps/dense_map.py 88.23% <0.00%> (+0.17%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9bee82c...62779e3. Read the comment docs.

@@ -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:
Copy link
Member

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.

judicaelclair
judicaelclair previously approved these changes Dec 26, 2020
Copy link
Collaborator

@Nabushika Nabushika left a 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

@judicaelclair judicaelclair dismissed their stale review December 29, 2020 02:43

PR needs cleaning up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants