Giter Site home page Giter Site logo

Comments (18)

jwnigel avatar jwnigel commented on August 15, 2024

So basically a minimalistic application? Or just the minimal working data as mentioned yesterday?

from permaculture.

berteh avatar berteh commented on August 15, 2024

The second one please, so I can try working on other topics as the one you are in parallel.

from permaculture.

berteh avatar berteh commented on August 15, 2024

But not so much data, as data structure + basic access methods.

from permaculture.

jwnigel avatar jwnigel commented on August 15, 2024

Do you mean a way to select between different plants and view their data?

That would be pandas behind the scenes and python/kivy for the ui.

from permaculture.

jwnigel avatar jwnigel commented on August 15, 2024

This is our complete data from pfaf: "Family", "Genus", "Species", "CommonName", "GrowthRate", "HardinessZones",
"Height", "Width", "Type", "Leaf", "Flower", "Ripen", "Reproduction", "Soils",
"pH", "Preferences", "Tolerances", "Habitat", "HabitatRange",
"Edibility", "Medicinal", "OtherUses".

Our working data should include: Common Name, Height, Width, Growth Rate, Preferences, and maybe a combination of Edible / Medicinal Uses?

What do you think? Should we include more or less?

from permaculture.

jwnigel avatar jwnigel commented on August 15, 2024

Some combination of these will be pre-filtered when the design is initialized. Like hardiness zone, soil, maybe habitat and pH?

from permaculture.

jwnigel avatar jwnigel commented on August 15, 2024

So I think I will make a small data frame with these "essential" columns and using a few different plants to work on selecting and viewing them in the editor. Is that what you had in mind? Sorry, I do not completely understand.

from permaculture.

berteh avatar berteh commented on August 15, 2024

perfect.

I even just meant the first part, the pandas, for the 0.1 milestone, since that's the basics for the next steps... and I'd rather you do it than me so you'd be comfortable with its internal structure.

I can then use it as a pivot to contribute to other things while you work on a first UI prototype that you seem to prioritize (which makes sense, no critique, just a statement ;)

from permaculture.

jwnigel avatar jwnigel commented on August 15, 2024

Not a problem, I am working on it!

I am working on it in the notebooks directory to be able to see the dataframes.

from permaculture.

berteh avatar berteh commented on August 15, 2024

cool. never used jupyter notebooks before so that'll be new for me. just installed. what's the command line you use to run it ?

from permaculture.

jwnigel avatar jwnigel commented on August 15, 2024

Just jupyter notebook
or just jupyter notebook and then you can select which one to open

You run a cell using Shift + Enter or Control + Enter to add a cell beneath.

And you can use Shift + Tab to see the doc string

The only problem is that they can get messy quickly but as a beginner they are helpful

from permaculture.

berteh avatar berteh commented on August 15, 2024

That's what I tried but this leads me to an internal error, no log/explanation with further explanation on terminal.

likely some wrong lib version / dependency issue... I add #29 to consider using a dependency manager, but have no preference as to which.

In the meantime I'd like to try'n fix it locally. What do you run? I got ubuntu 20.04.5 + python3.8.10 + kv2.1.0 + kivyMD 1.1.1, all installed with latest pip3.

and jupyter notebook 6.5.2. but I guess/hope that last bit should not make a difference.

from permaculture.

jwnigel avatar jwnigel commented on August 15, 2024

I'm running python3.10.6 and the same kivy versions as you, on Ubuntu 22.04.1. Maybe I need to update Ubuntu?

I just updated jupyter and got this: jupyter-1.0.0 jupyter-console-6.4.4 nbclassic-0.5.1 notebook-6.5.2 qtconsole-5.4.0 qtpy-2.3.0

I had been running notebook 6.5.1

from permaculture.

jwnigel avatar jwnigel commented on August 15, 2024

My pip is 23.0, maybe that's the issue?

from permaculture.

berteh avatar berteh commented on August 15, 2024

Ok. I'll update my Ubuntu this weekend. Have been postponing it for some time. Hoping it fixes the issue.

You need not to change a thing, since it works 😜

from permaculture.

jwnigel avatar jwnigel commented on August 15, 2024

Sounds good, the class isn't ready to go yet so there's no rush. I just created a basic search function for our searchbar, and a MyDesign class to be used for each design. It will have an add_plant method for each plant that is dragged onto the grid (probably best called when the user presses "submit" or is ready to view their report, at which time a dataframe should be returned with x- and y-coords for plants, plant totals, etc.

I think the only necessary data here is the latin name as an identifier, the x- and y- coords, and the width and height.
Other info could be called from the main database when necessary.

from permaculture.

berteh avatar berteh commented on August 15, 2024

Seems perfect. We can then later add infos to that class when they become part of the core editor, such as the layer for a colour convention/ design filter to ease stratification / collision detection... if that ever gets on the roadmap.

from permaculture.

jwnigel avatar jwnigel commented on August 15, 2024

Basic structure is done. Not sure if it's what you were imagining. See notebooks/design_data_class.ipynb

from permaculture.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.