Repository navigation
Python Library revisions to be more compatible with the new data structure and other application changes. - #7
Conversation
This push includes creating a new firebase and testing pushing data to the firebase by loading the config from the .json data exported from GH.
This includes constructing the correct file path for the getting the correct file path to load the config .json in the realtime DB
Includes remapping to the proper modules from the folder and connecting to the proper elements. It also includes adding sample .json structures to the repo for testing uploads and structure.
This includes updating additional elements for firebase and further refinement of included files
Co-authored-by: Gonzalo Casas <[email protected]>
Updating compas_xr functions to a larger class structure
Writing RealtimeDatabase class and Storage Class and writing accessing them via proxy... Also writing different data structures for firebase upload
testing access of class from proxy.
Rename upload and download
Push to firebase storage worked, but froze gh. event needs to be refined with its implementation.
updating dependencies folder, and begining download function
set up of .ghx for download function
Updating storage download file and testing different threading options for returning download url
This push includes many different edits.... 1. Updating all proxy methods 2. Working event methods working through starting new thread and changing event waiting method (download file working) need to implement new functions for download data and etc. as well as testing event implementation with the upload.
Updating.ghx it was accidentally on the local version
upload file and download file working for compas_xr.Storage
Upload and download assembly for the new class working.
This push includes all working functions storage_cli and assembly works for both timber assembly, and updates gh components in t2_demo_model_testing.ghx 1. upload and download file 2. upload and download assembly 3. upload and download data
Upload to realtime database from json working
Update realtimeDB writing for individual paramaters in the class structure.
gonzalocasas
left a comment
There was a problem hiding this comment.
Sorry that this took forever and a bit more, in general it looks good to me, I added quite some feedback here and there but we can decide what needs to be tackled and what can be postponed
| @@ -0,0 +1,5 @@ | |||
| compas >=2.0.4 | |||
There was a problem hiding this comment.
Ideally, add an upper bound too, e.g. compas >=2.0.4,<3
| self.project_name, self.storage_folder, self.z_to_y_remap, self.storage_bucket | ||
| ) | ||
|
|
||
| def __data__(self): |
There was a problem hiding this comment.
This seems to half-way implement the data protocol of compas, it's not inheriting from compas.data.Data, and the __data__ property does not have the @property decorator
| self.api_key, self.auth_domain, self.database_url, self.storage_bucket | ||
| ) | ||
|
|
||
| def __data__(self): |
There was a problem hiding this comment.
Same thing with the data protocol
| current_data["priority"] = priority | ||
| self.database.upload_data_to_deep_reference(current_data, database_reference_list) | ||
|
|
||
| def visualize_project_state_timbers(self, timber_assembly, project_name): |
There was a problem hiding this comment.
I don't get this name.. why does it end with timbers?
There was a problem hiding this comment.
This is because I was planning on trying to use the BrepGeometryConsumer from timbers, but it didn't work out in the end. Since it only returns Box's, I think that it can be removed and simply use visualize_project_state method for all assembly types. :)
There was a problem hiding this comment.
This is because I originally I wanted to use the BrepGeometryConsumer from timbers so I can return the actually geometry, but It did not work very well, and this evolved to being almost the same as visualize_project_state. This method can be removed and simply use visualize_project_state for all Assemblies. :)
| assembly_element_id = step.element_ids[0] | ||
| # TODO: Tried to write like this, but find_by_key returns a NoneType object | ||
| """ | ||
| part = timber_assembly.find_by_key(assembly_element_id) |
There was a problem hiding this comment.
Needs to be checked with Chen
There was a problem hiding this comment.
I also had a problem with this in normal assemblies after checking later I believe :(
|
As a general one, please run |
The series of changes are primarily focused on the
realtimedatabaseandstoragemodules. The majority of the changes are focused in thepyrebase,cli, andinterface. Additionally, changes in theassembliesmodule for removal of unnecessary things, and the adjustment of old methods to match new data types & structures.What type of change is this?
Checklist
Put an
xin the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.CHANGELOG.mdfile in theUnreleasedsection under the most fitting heading (e.g.Added,Changed,Removed).invoke test).invoke lint).compas.datastructures.Mesh.