Giter Site home page Giter Site logo

Comments (4)

nick-falco avatar nick-falco commented on August 12, 2024

If all experiments have SEED Station Codes defined then we should remove the following lines:
https://github.com/PIC-IRIS/PH5/blob/master/kitchen/ph5tostationxml.py#L518-L519

If some experiments only have PH5 station-ids set, we should only check against the station-id for cases where there is no SEED Station Code. However, ideally all experiments should have a defined SEED Station Code even if it is the same as the Station ID

i.e.

if not station_list[deployment][0] ['seed_station_name_s'] and \
    fnmatch.fnmatch(str(station), str(pattern)):
    # no seed station code defined so compare against ph5 station-id
    l.append(station)
elif fnmatch.fnmatch((station_list[deployment][0]
                        ['seed_station_name_s']), pattern):
    l.append(station)

from ph5.

derick-hess avatar derick-hess commented on August 12, 2024

we can change that. In most cases they will be the same so just making it use seed station id for web service makes sense. I'll make those changes

from ph5.

nick-falco avatar nick-falco commented on August 12, 2024

Why not just set both the SEED Station Code and PH5 Station-ID to the same value when they are the same, and then always use the SEED Station Code?

If this is too much of an undertaking, I think it should use the Station-ID only when a SEED Station Code is not defined. For future experiments I would set both values however, even if they are the same.

from ph5.

nick-falco avatar nick-falco commented on August 12, 2024

we can change that. In most cases they will be the same so just making it use seed station id for web service makes sense. I'll make those changes

Can you push this to a separate branch an make a pull request so I can also look it over? We'll want to get into the habit of avoiding pushing directly to master since we are nearing a production release.

from ph5.

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.