Giter Club home page Giter Club logo

Comments (3)

mwinkel-dev avatar mwinkel-dev commented on September 22, 2024

Investigation reveals that this is a bug in stable-7.132.0. And does not exist in alpha-7-140-68 (because it contains PR #2418 and PR #2723).

from mdsplus.

mwinkel-dev avatar mwinkel-dev commented on September 22, 2024

The following output is from experiments with alpha-7-140-68 showing that the "current shot" (i.e., shot=0) works.

=== TCL ===

$
$ export junk_path=<some_server>::
$
$ mdstcl
TCL> set current junk 1
TCL> show current junk
Current shot is 1
TCL> set current junk /inc
TCL> show current junk
Current shot is 2
TCL> edit junk /shot=0 /new
TCL> add node num2
TCL> write
TCL> close
TCL> set current junk /inc
TCL> edit junk /shot=0 /new
TCL> add node num3
TCL> write
TCL> close
TCL> set current junk /inc
TCL> edit junk /shot=0 /new
TCL> add node num4
TCL> write
TCL> close
TCL> quit
$
$ ls
junk_002.characteristics  junk_002.tree		    junk_003.datafile  junk_004.characteristics  junk_004.tree
junk_002.datafile	  junk_003.characteristics  junk_003.tree      junk_004.datafile	 shotid.sys


=== Python Objects ===

$ mdstcl
TCL> set current junk /inc
TCL> show current junk
Current shot is 5
TCL> quit
$ python3
Python 3.8.10 (default, Nov 22 2023, 10:22:35) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import MDSplus as mds
>>> t = mds.Tree('junk', 0, 'new')
>>> t.write()
>>> t.close()
>>> quit()
$ ls
junk_002.characteristics  junk_003.characteristics  junk_004.characteristics  junk_005.characteristics	shotid.sys
junk_002.datafile	  junk_003.datafile	    junk_004.datafile	      junk_005.datafile
junk_002.tree		  junk_003.tree		    junk_004.tree	      junk_005.tree


=== Python thin-client ===

$ mdstcl
TCL> set current junk /inc
TCL> show current junk
Current shot is 6
TCL> set tree junk /shot=2
TCL> create pulse 0
TCL> write
TCL> close
TCL> quit

$ python3
Python 3.8.10 (default, Nov 22 2023, 10:22:35) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import MDSplus as mds
>>> t = conn.openTree('junk', 0)
>>> conn.closeTree('junk', 0)
>>> quit()

from mdsplus.

mwinkel-dev avatar mwinkel-dev commented on September 22, 2024

Hi @kgerickson -- As mentioned above, this problem should vanish when you receive a stable that includes PR #2418 and PR #2723. Let me know if you want me to do any additional testing of this issue.

from mdsplus.

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.