Coder Social home page Coder Social logo

Comments (2)

briochh avatar briochh commented on July 23, 2024

@wkitlasten this seems like something that should be supported. I would vote for using index_col=None but specifying use_col=0 for the headerless single column list file type.

The main thing to look out for is that (I think) the presence of a non None index_col is what triggers a lot of assumptions about the input file structure (ie list rather than array style). This could be switched over to use_cols being the trigger and the index that is required for the parameter name being derived from the dataframe index.

There maybe a bit of chasing it through required. Give a shout if you get stuck.

from pyemu.

briochh avatar briochh commented on July 23, 2024

The option here is to support single col inputs as either list-like or array-like.
For list-like, we would need to support passing to add_parameters() without index_cols argument and move the list-like setup trigger to use_cols. May just need chasing through methods a bit.
For array-like, we would need to circumvent the automatic get_xy trigger.
The array option might actually be easier to implement but for me it feels better to set these up list-like. Obviously supporting spatial definition for inputs like this is tricky and we might need to look at allowing more granular specification of arguments at add_pars time to support mixed model input format types (i.e. specification of input specific get_xy function/spatial mapping rather than relying on what is on the parent object).

from pyemu.

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.