From c462c425dc8902130ac2e39bf129dd38e9526631 Mon Sep 17 00:00:00 2001 From: jessicasyu <15913767+jessicasyu@users.noreply.github.com> Date: Wed, 18 Sep 2024 21:10:17 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20bagheril?= =?UTF-8?q?ab/arcade-collection@186b2d5f00ac0096b2487e85179f4e0524a70799?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _coverage/d_0f042be92a388500___init___py.html | 40 +- ...42be92a388500_convert_to_colorizer_py.html | 174 ----- ...042be92a388500_convert_to_contours_py.html | 130 ++-- ...0f042be92a388500_convert_to_images_py.html | 317 ++++++--- ...0f042be92a388500_convert_to_meshes_py.html | 587 ++++++++++------ ...2be92a388500_convert_to_projection_py.html | 248 ++++--- ...8500_convert_to_simularium_objects_py.html | 181 +++-- ...2be92a388500_convert_to_simularium_py.html | 491 ++++++++----- ...88500_convert_to_simularium_shapes_py.html | 663 ++++++++++++------ .../d_0f042be92a388500_convert_to_tfe_py.html | 242 +++++++ _coverage/d_13bd5532628bc534___init___py.html | 4 +- ...bd5532628bc534_convert_model_units_py.html | 4 +- ...13bd5532628bc534_extract_tick_json_py.html | 4 +- ...bd5532628bc534_get_location_voxels_py.html | 4 +- ..._13bd5532628bc534_parse_cells_file_py.html | 4 +- ...13bd5532628bc534_parse_growth_file_py.html | 4 +- ...d5532628bc534_parse_locations_file_py.html | 4 +- _coverage/d_4b9978a34ae81dde___init___py.html | 4 +- _coverage/d_4b9978a34ae81dde___main___py.html | 4 +- _coverage/d_cb61a578c70eae7a___init___py.html | 8 +- ...a578c70eae7a_convert_to_cells_file_py.html | 4 +- ...c70eae7a_convert_to_locations_file_py.html | 4 +- ...61a578c70eae7a_generate_setup_file_py.html | 4 +- ...c70eae7a_group_template_conditions_py.html | 4 +- ...1a578c70eae7a_merge_region_samples_py.html | 4 +- _coverage/index.html | 64 +- _coverage/status.json | 2 +- 27 files changed, 2041 insertions(+), 1162 deletions(-) delete mode 100644 _coverage/d_0f042be92a388500_convert_to_colorizer_py.html create mode 100644 _coverage/d_0f042be92a388500_convert_to_tfe_py.html diff --git a/_coverage/d_0f042be92a388500___init___py.html b/_coverage/d_0f042be92a388500___init___py.html index 15ba1cd..e528111 100644 --- a/_coverage/d_0f042be92a388500___init___py.html +++ b/_coverage/d_0f042be92a388500___init___py.html @@ -62,10 +62,10 @@

« prev     ^ index     - » next + » next       coverage.py v7.1.0, - created at 2024-09-04 22:40 +0000 + created at 2024-09-18 21:10 +0000

-

- « prev     - ^ index     - » next -       - coverage.py v7.1.0, - created at 2024-09-04 22:40 +0000 -

- - - -
-

1import numpy as np 

-

2import pandas as pd 

-

3 

-

4from arcade_collection.output.convert_model_units import convert_model_units 

-

5 

-

6 

-

7def convert_to_colorizer( 

-

8 all_data: pd.DataFrame, 

-

9 features: list[str], 

-

10 frame_spec: tuple[int, int, int], 

-

11 ds: float, 

-

12 dt: float, 

-

13 regions: list[str], 

-

14) -> dict: 

-

15 frames = list(np.arange(*frame_spec)) 

-

16 manifest = get_manifest_data(features, frames) 

-

17 

-

18 convert_model_units(all_data, ds, dt, regions) 

-

19 frame_data = all_data[all_data["TICK"].isin(frames)] 

-

20 

-

21 outliers = get_outliers_from_data(frame_data) 

-

22 tracks = get_tracks_from_data(frame_data) 

-

23 times = get_times_from_data(frame_data) 

-

24 

-

25 colorizer_json = { 

-

26 "manifest": manifest, 

-

27 "outliers": outliers, 

-

28 "tracks": tracks, 

-

29 "times": times, 

-

30 } 

-

31 

-

32 for feature in features: 

-

33 colorizer_json[feature] = get_feature_from_data(frame_data, feature) 

-

34 

-

35 return colorizer_json 

-

36 

-

37 

-

38def get_manifest_data(features: list[str], frames: list[int]) -> dict: 

-

39 manifest = { 

-

40 "frames": [f"frame_{i}.png" for i in range(len(frames))], 

-

41 "features": { 

-

42 feature: f"feature_{feature_index}.json" 

-

43 for feature_index, feature in enumerate(features) 

-

44 }, 

-

45 "outliers": "outliers.json", 

-

46 "tracks": "tracks.json", 

-

47 "times": "times.json", 

-

48 } 

-

49 

-

50 return manifest 

-

51 

-

52 

-

53def get_outliers_from_data(data: pd.DataFrame) -> dict: 

-

54 outliers = [False] * len(data) 

-

55 outliers_json = {"data": outliers, "min": False, "max": True} 

-

56 return outliers_json 

-

57 

-

58 

-

59def get_tracks_from_data(data: pd.DataFrame) -> dict: 

-

60 tracks = data["ID"] 

-

61 tracks_json = {"data": list(tracks)} 

-

62 return tracks_json 

-

63 

-

64 

-

65def get_times_from_data(data: pd.DataFrame) -> dict: 

-

66 times = data["time"] 

-

67 times_json = {"data": list(times)} 

-

68 return times_json 

-

69 

-

70 

-

71def get_feature_from_data(data: pd.DataFrame, feature: str) -> dict: 

-

72 feature_values = data[feature] 

-

73 feature_min = float(np.nanmin(feature_values)) 

-

74 feature_max = float(np.nanmax(feature_values)) 

-

75 

-

76 feature_json = {"data": list(feature_values), "min": feature_min, "max": feature_max} 

-

77 return feature_json 

-
- - - diff --git a/_coverage/d_0f042be92a388500_convert_to_contours_py.html b/_coverage/d_0f042be92a388500_convert_to_contours_py.html index d8aee0a..2fdccb9 100644 --- a/_coverage/d_0f042be92a388500_convert_to_contours_py.html +++ b/_coverage/d_0f042be92a388500_convert_to_contours_py.html @@ -2,7 +2,7 @@ - Coverage for src/arcade_collection/convert/convert_to_contours.py: 27% + Coverage for src/arcade_collection/convert/convert_to_contours.py: 100% @@ -12,7 +12,7 @@

Coverage for src/arcade_collection/convert/convert_to_contours.py: - 27% + 100%

- 26 statements   - - + 28 statements   + +

- « prev     + « prev     ^ index     » next       coverage.py v7.1.0, - created at 2024-09-04 22:40 +0000 + created at 2024-09-18 21:10 +0000

- 50 statements   - - - + 73 statements   + + +

« prev     @@ -65,7 +65,7 @@

» next       coverage.py v7.1.0, - created at 2024-09-04 22:40 +0000 + created at 2024-09-18 21:10 +0000

- 95 statements   - - - + 100 statements   + + +

« prev     @@ -65,7 +65,7 @@

» next       coverage.py v7.1.0, - created at 2024-09-04 22:40 +0000 + created at 2024-09-18 21:10 +0000

- 26 statements   - - + 27 statements   + +

@@ -65,7 +65,7 @@

» next       coverage.py v7.1.0, - created at 2024-09-04 22:40 +0000 + created at 2024-09-18 21:10 +0000

- 61 statements   - - - + 67 statements   + + +

« prev     @@ -65,7 +65,7 @@

» next       coverage.py v7.1.0, - created at 2024-09-04 22:40 +0000 + created at 2024-09-18 21:10 +0000

- 93 statements   - - - + 112 statements   + + +

« prev     ^ index     - » next + » next       coverage.py v7.1.0, - created at 2024-09-04 22:40 +0000 + created at 2024-09-18 21:10 +0000