Skip to content

Instantly share code, notes, and snippets.

@carueda
carueda / tracking_output_1000m_600s_0.3C.svg
Created March 22, 2016 18:10
Temperature front tracking (w=1000m d=600s t=0.3^oC)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@carueda
carueda / gist:74a646f726e61e878b23
Last active August 29, 2015 14:25
bin/LRAUV -r -x "run Engineering/sample.xml" -- a complete run with simulators using tethyssim and bufflehead
(note, with the trick of setting true for isDataRequested so the sampling can start promptly in this test)
[carueda@tethyssim LRAUV3]$ bin/LRAUV -r -x "run Engineering/sample.xml"
2015-07-15T21:50:41.770Z,1436997041.770 [ESPComponent](INFO): start simulateHardware()=0
2015-07-15T21:50:41.770Z,1436997041.770 [ESPComponent](INFO): ESPComm: ESPComm::open: opening server socket on port 9998
2015-07-15T21:50:41.770Z,1436997041.770 [ESPComponent](INFO): Powering up
2015-07-15T21:50:41.770Z,1436997041.770 [ESPComponent](INFO): ESPComponent::start: powering up ESP
2015-07-15T21:50:41.770Z,1436997041.770 [ESPComponent](IMPORTANT): Starting PPPD with command:/sbin/pppd xonxoff asyncmap A0000 linkname esp noauth local lock 115200 134.89.10.51:134.89.10.60 persist maxfail 0 holdoff 10 lcp-echo-interval 60 lcp-echo-failure 3 proxyarp ktune deflate 12 ms-dns 134.89.10.32 ms-dns 134.89.10.10
@carueda
carueda / gist:dbe669959e86cfd14c60
Last active August 29, 2015 14:02
issues with int tests without pycc
(coi)➜ coi-services-carueda git:(master) ✗ bin/nosetests -sv ion/agents/platform/test/
pyon: pyon.bootstrap (bootstrap_pyon) executing...
store_interfaces: Created 3 datastores: ['events', 'state', 'objects']
store_interfaces: Storing 17 entries in directory...
store_interfaces: Storing 604 resources in registry...
store_interfaces: Storing interfaces successful
oms_simulator: setting log level to: logging.WARN
pyon: pyon.bootstrap (bootstrap_pyon) executing...
pyon: WARNING -- bootstrap_pyon() called again!
test_verify_service ( ion.agents.platform.test.test_mission_executive:PyonTestCase.test_verify_service ) ... SKIP: Not implementing an Ion Service
@carueda
carueda / elapsed.py
Created June 11, 2014 23:04
Generates an HTML document with an ng-grid table reporting test elapsed times from a builbot build
#!/usr/bin/env python
"""
Generates an HTML document with an ng-grid table reporting test elapsed times from a builbot build.
Uses the text version of a build output, eg.,
$ ./elapsed.py http://buildbot.oceanobservatories.org:8010/builders/coi_pycc/builds/2223/steps/sa/logs/stdio/text
$ open _elapsed_coi_pycc_2223_sa.html
@author Carlos Rueda
@carueda
carueda / gist:5754711
Created June 11, 2013 05:51
test_platform_status_terminate_and_restart_instrument_1_1
logging.local.yml:
ion.agents.platform.platform_agent_stream_publisher:
level: DEBUG
ion.agents.platform.status_manager:
level: DEBUG
ion.agents.platform.test.base_test_platform_agent_with_rsn:
level: DEBUG
ion.services.sa.observatory.test:
level: DEBUG
@carueda
carueda / gist:5241853
Created March 25, 2013 23:29
AgentConfigurationBuilder.prepare failing to complete in a test involving a multi-level platform hierarchy
2013-03-25 16:23:52,506 WARNING bochica_shore_mbari_org_14767.31-target pyon.ion.process:230 Heartbeat failed: (False, True, True), stacktrace:
File "/Users/carueda/workspace/coi-services-carueda/eggs/gevent-0.13.7-py2.7-macosx-10.8-intel.egg/gevent/greenlet.py", line 390, in run
result = self._run(*self.args, **self.kwargs)
File "/Users/carueda/workspace/coi-services-carueda/extern/pyon/pyon/ion/process.py", line 345, in _control_flow
res = call(*callargs, **callkwargs)
File "/Users/carueda/workspace/coi-services-carueda/ion/services/sa/instrument/instrument_management_service.py", line 972, in start_platform_agent_instance
config = configuration_builder.prepare()
File "/Users/carueda/workspace/coi-services-carueda/ion/services/sa/instrument/agent_configuration_builder.py", line 116, in prepare
return self.generate_config()
File "/Users/carueda/workspace/coi-services-carueda/ion/services/sa/instrument/agent_configuration_builder.py", line 248, in generate_config